d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Sum Of Consecutive Integers
Prev12
Add Reply New Topic New Poll
Member
Posts: 9,099
Joined: Nov 23 2002
Gold: 2,911.26
Jan 12 2015 06:51pm
Quote (brigadier @ Jan 12 2015 06:55pm)
not entirely

consider 100

we want every set of consecutive whole numbers that add to 100

it has 1  |  2  |  4  |  5  |  10  |  20  |  25  |  50  |  100  (9 divisors) of which its prime factorization is 2^2 5^2

looking at the divisor 5 we have one set of consecutive whole numbers that add to 100 in which the average is 20 or 18+19+20+21+22

fibonnaci only added the previous two numbers to get the next --unless there is some generalized formula I am not aware of-- im looking for some kind of formula that I can just put some number in and it will tell me how many different sets of consecutive integers I can have to equal that number

if there isn't im stuck with prime factorization and odd factors


I don't think there is an analytical solution to the number of these sets in a number, meaning that if you give me a number that there is no generic formula that will give you the number of these sets.

Try doing this for perhaps 1-100000 and seeing if any patterns persist via plotting.
Go Back To Homework Help Topic List
Prev12
Add Reply New Topic New Poll