Find "n" Given p=s and m=4,541,160 | Integer Solution

  • Context: MHB 
  • Thread starter Thread starter Wilmer
  • Start date Start date
  • Tags Tags
    Integers
Click For Summary
SUMMARY

The discussion focuses on finding the integer value of n given the product p of two consecutive integers and the sum s of m consecutive integers. Specifically, when m equals 4,541,160, the equation derived is n^2 - (m + 1)n - (m(m + 1)/2) = 0. The positive root of this quadratic equation yields n = 6,203,341, while the negative root is -1,662,180. The discussion also highlights that both solutions are valid under different conditions.

PREREQUISITES
  • Understanding of quadratic equations and their roots
  • Familiarity with arithmetic operations involving large integers
  • Knowledge of consecutive integers and their properties
  • Basic experience with mathematical problem-solving techniques
NEXT STEPS
  • Study quadratic equations and their applications in problem-solving
  • Explore integer arithmetic and handling large numbers in programming
  • Learn about the properties of consecutive integers and their sums
  • Investigate the use of computational tools like Wolfram Alpha for solving complex equations
USEFUL FOR

Mathematicians, educators, students studying algebra, and anyone interested in solving integer equations and exploring properties of numbers.

Wilmer
Messages
303
Reaction score
0
p = product of 2 consecutive integers n-1 and n.
s = sum of m consecutive integers, the first being n+1.
s = p
Example (n = 12, m = 8):
p = 11 * 12 = 132
s = 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 = 132

If m = 4,541,160 then what's n ?
 
Mathematics news on Phys.org
Wilmer said:
p = product of 2 consecutive integers n-1 and n.
s = sum of m consecutive integers, the first being n+1.
s = p
Example (n = 12, m = 8):
p = 11 * 12 = 132
s = 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 = 132

If m = 4,541,160 then what's n ?

You have the problem: given \(m\) solve:

\( n \times m+ \frac{m(m+1)}{2}=n^2-n\)

or:

\( n^2 -(m+1)n-\frac{m(m+1)}{2}=0\)

and you want the positive root of this.

This does involve arithmetic with nice long integers by Dr Wolfram's Alpha can handle it

CB
 
Last edited:
Agree. n = [m + 1 +- SQRT(3m^2 + 4m + 1)] / 2

So n = 6,203,341 or -1,662,180

The negative solution is also valid; using m = 8, then n = -3:
-4 * -3 = 12
-2 + -1 + 0 + 1 + 2 + 3 + 4 + 5 = 12
 
Last edited:

Similar threads

  • · Replies 68 ·
3
Replies
68
Views
12K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K