A sequence { p n } is defined by p 0 = 5 , p 1 = 5 , p 2 = − 2 0 and the following relationship:
2 0 p n + 3 + 3 7 p n + 2 + 3 7 p n + 1 + 1 9 p n = 0 for all n ≥ 0
Find the sum of all terms of this sequence, that is S = n = 0 ∑ ∞ p n , and give your answer as ⌊ 1 0 0 0 0 0 0 0 S ⌋ , where ⌊ ⋅ ⌋ denotes the floor function .
Hint: the next term of the sequence is p 3 = 2 3 .
Inspiration (the original version)
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Thank you for your solution and methodology.
I had the answer. Then, the Brilliant system decided that I had looked at the answer. I do not like being cheated in this manner.
I summed 50 million term to get a total of 3.14159292035401.
Log in to reply
Great solution! A small typo - your 1 3 3 should be 1 1 3 .
Your guess is also correct. It's enough that all three roots have absolute value less than 1 . If the roots of that cubic are t , u , v , then p n = A t n + B u n + C v n for some constants A , B , C , and the sum of this converges termwise.
As it happens, the absolute values of the roots were chosen to be close to 1 , so the convergence is slow.
The roots α , β γ of the cubic F ( X ) = 2 0 X 3 + 3 7 X 2 + 3 7 X + 1 9 = 0 all have modulus less than 1 . To see this note that F ( − 1 ) = − 1 < 0 < F ( − 0 . 9 5 ) , so that − 1 < α < − 0 . 9 5 . The other two roots of F ( X ) are complex, and hence ∣ β ∣ 2 = ∣ γ ∣ 2 = 2 0 ∣ α ∣ 1 9 < 2 0 × 0 . 9 5 1 9 = 1 . This means that the series S = ∑ n ≥ 0 p n converges.
We can find constants A , B , C such that p n = A α n + B β n + C γ n n ≥ 0 and hence S = 1 − α A + 1 − β B + 1 − γ C Since X 3 + 3 7 X 2 + 3 7 X + 1 9 = ( X − 1 ) ( 2 0 X 2 + 5 7 X + 9 4 ) + 1 1 3 we deduce that 1 − α 1 = 1 1 3 1 ( 2 0 α 2 + 5 7 α + 9 4 ) with similar identities for ( 1 − β ) − 1 and ( 1 − γ ) − 1 . Thus S = 1 1 3 1 [ A ( 2 0 α 2 + 5 7 α + 9 4 ) + B ( 2 0 β 2 + 5 7 β + 9 4 ) + C ( 2 0 γ 2 + 5 7 γ + 9 4 ) ] = 1 1 3 1 ( 2 0 p 2 + 5 7 p 1 + 9 4 p 0 ) = 1 1 3 3 5 5 making ⌊ 1 0 7 S ⌋ = 3 1 4 1 5 9 2 9 .
Provided that this sum converges, (and if it doesn't, there is no finite answer) we can sum the whole expression: n = 0 ∑ ∞ ( 2 0 p n + 3 + 3 7 p n + 2 + 3 7 p n + 1 + 1 9 p n ) = 0
2 0 n = 3 ∑ ∞ p n + 3 7 n = 2 ∑ ∞ p n + 3 7 n = 1 ∑ ∞ p n + 1 9 n = 0 ∑ ∞ p n = 0
2 0 ( S − p 0 − p 1 − p 2 ) + 3 7 ( S − p 0 − p 1 ) + 3 7 ( S − p 0 ) + 1 9 S = 0
S = 1 1 3 3 5 5 = 3 . 1 4 1 5 9 2 9 2 . . .
⌊ 1 0 7 S ⌋ = 3 1 4 1 5 9 2 9
That's how I did it.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
It's not π ! But it's close. (Check the units digit of the answer)
Some follow-up questions (These seem best handled with coding, so I'm going to defer to you, or any other interested programmer)
How many terms are needed to guarantee the required accuracy?
Within "reasonable constraints" on the parameters (ie the initial terms and coefficients - these constraints could be, say, all of them are integers and none is greater than 5 0 in absolute value), what's the worst case for the number of terms needed?
To answer that first one, how many terms until we guarantee required accuracy: I reworked my code and got 6010. Need someone to double check that though. I kept adding terms until floor(10000000*$sum)==31415929.
I dont understand the second one though?
Log in to reply
Thanks for the reply! The question is, is 6 0 0 9 the largest number of terms that doesn't give a rounded total of 3 1 4 1 5 9 2 9 ? The values of the partial sums S n oscillate above and below the eventual value of S ∞ = 1 1 3 3 5 5 .
The second question is somewhat harder - basically, if your aim is to make convergence to the limit 1 1 3 3 5 5 as slow as possible (but still have the series converge), how should you tweak the parameters?
By summing the recurrance relation from n=0 to infinity we get p 3 + p 4 +....=1485/113=13.141592920354. Therefore the required sum is 13.14159292035+5+5-20=3.141592920354.
Problem Loading...
Note Loading...
Set Loading...
If the sum converges to S , then summing both sides from 0 to ∞ yields 2 0 ( S + 1 0 ) + 3 7 ( S − 1 0 ) + 3 7 ( S − 5 ) + 1 9 S = 0 , which gives S = 3 5 5 / 1 1 3 , so the answer is 3 1 4 1 5 9 2 9 .
It is not obvious to me that the series converges, but a computer check shows that the roots of the characteristic equation 2 0 r 3 + 3 7 r 2 + 3 7 r + 1 9 = 0 all have complex absolute value less than 1 , so I guess it does.