Find all series of consecutive positive integers whose sum is exactly 10,000.
__________________________________
What if we don't require the consecutive integers to (all) be positive?
(In reply to
Brute force answer to first bit by fwaff)
Started brute forcing again, but then the lightbulb came on and it was obvious. The negatives are:
-9999, -9998,..., 10000
-1997, -1996,..., 2002
-387, -386,..., 412
-296, -295,..., 328
-17, -16,..., 142
|
Posted by fwaff
on 2004-07-21 09:29:13 |