Puzzle – Consecutive integers 1, 2
January 30, 2007 pm31 4:35 pm
Two little puzzles for today:
1) Find nine conscutive integers whose sum is 6.
2) How many ways can 1000 be written as the sum of consecutive integers?
10 Comments
leave one →

I must be missing something…
If n is the first of the nine consecutive integers, then the sum of those nine integers is 9n+36, and neither 9n+36=6 nor 9n+36=1000 have integer solutions for n.
I should have clearly separated the two problems.
The second problem doesn’t specify how many consecutive integers. For example:
7+8 = 15, but also 4+5+6 = 15
For the first question:
n + (n + 1) + (n + 2) + (n + 3) + (n + 4) + (n + 5) + (n + 6) + (n + 7) + (n + 8) = 9n +36 = 6.
That doesn’t have any integral solutions. I’ll have to check in later to see whether I miscalculated or missed a gimmick.
On the second one, there’s 198, 199, 200, 201, 202. There’s one from 28 to 52, one from -54 to 70. And I’ll try to find time to generalize it and check for other solutions. That’s the hard part, of course.
My late lunch is over, back to work.
Problem 1, as rdt says, is a wild goose chase.
Problem 2 is great.
For any number N, I believe the answer is twice the number of distinct odd factors of N (including 1).
So, doing the correct version of the second problem… The sum of k consecutive integers starting at n is k(n-1)+k(k+1)/2.
So the problem is to find the pairs (n,k) which satisfy 1000= k(n-1)+k(k+1)/2. John’s (198,5), (28,25) and (-54, 125) all work…
The expression for k turns into the quadratic k^2+k(2n-1)-2000=0.
More later… This is much too good a way to avoid tidying the house…
#1 can be nice for kids to demonstrate (w/o algebra) that there is no integer solution
-3 + -2 + -1 + 0 + 1 + 2 + 3 + 4 + 5 = 9, too big
-4 + -3 + -2 + -1 + 0 + 1 + 2 + 3 + 4 = 0, too small
This was not going to be a stumper for you guys.
#2 is trickier, I think.
Picking up my train of thought, though only briefly…
The quadratic K^2+k(2n-1)-2000 has integer solutions only if 4n^2-4n+8001 is the square of an odd number (for n=198, it’s the square of 405).
Which means 4n^2-4n+8001 = (2j+1)^2… I’m thinking that’s either going to have 4 integer solutions, or infinitely many…
Oops, no, I didn’t properly absorb Clueless’s comment — it’s twice the number of odd factors…
4n^2-4n+8001 = (2j+1)^2 can be re-written (n+j)(1+j-n)=2000, which, substituting r=n+j can be written r(1+r-2n)=2000. Or for the general case, r(1+r-2n)=2C
This has integer solutions for r,n if, and only if r is odd. All the odd factors of 2C are odd factors of C, and r can be either positive or negative.
In the case of 1000=2^3 x 5^3, the odd factors are 5, 25 and 125, so there should be 6 solutions.
Ack, no, the odd factors of 1000 are 1, 5, 25 and 125 so there should be 8 solutions.
So there are 8 solutions for 15?
(first integer,number of integers)
[15,1]
[7,2]
[4,3]
[1,5]
[0,6]
[-3,10]
[-6,15]
[14,30]
OK, that works. When I’ve run this problem, we’ve generalized a solution for powers of 10 only. I like your (both of you) more general approach.