View Single Post
Old 01-22-2004, 02:08 AM   #7 (permalink)
KnifeMissile
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
I'm sorry I didn't get to this earlier but all those thirty second mystery posts have totally ruined this forum. It didn't look like there were any intersting threads in here.

Anyway, for your first problem, onionmon is correct and the number of terms you have will be n(n+1)/2. It just so happens that n is the number in the series you are looking for! So, the equation now becomes:

n(n+1)/2 = 1,000,000

...so isolate for n and you get...

n = (sqrt(1 + 8,000,000) - 1) / 2

...or 1413.71

Now, round this up because this formula assumes we get to sum the end of the n'th line and you discover that the millionth number is 1414...


Now, the second one is also not too hard. You just have to generalize the quadratic expansion. So, let me formulate some notation 'cause I can't just scribble into the TFP...

Let SC(a-z,2) be the sum of all possible products of 2 element subsets of the variables a through z. Furthermore, define SC(a-z,0) = 1, since the null set has no elements to create a sum of products.
For example, SC(a-z,2) would look like ab + ac + ... + az + bc + bd + ... + bz + ... + yz.

Let S(i,n)f(i) denote the sum f(0) + f(1) + ... + f(i) + ... + f(n).
This will be our sigma notation.

So, the product of (x + a)(x + b)...(x + z) is equal to:

S(i,26)( SC(a-z,i) * x^(26-i) )

Pretty simple, eh?
KnifeMissile is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76