Take two positive integers and and define the following sequence where each term is the average of the previous two terms: The sequence will converge towards where and are positive integers and is prime.
Submit
Bonus: Can you generalize for the sequence that averages the previous terms?
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.
For the general case of k terms, U n = k U n − k + U n − k + 1 + ⋯ + U n − 1 .
Then U n − k + 1 + 2 U n − k + 2 + … k U n = U n − k + 1 + 2 U n − k + 2 + ⋯ + k ⋅ k U n − k + U n − k + 1 + ⋯ + U n − 1 = U n − k + 2 U n − k + 1 + ⋯ + k U n − 1 .
Since U n − k + 1 + 2 U n − k + 2 + ⋯ + k U n = U n − k + 2 U n − k + 1 + ⋯ + k U n − 1 , n is independent, so U n − k + 1 + 2 U n − k + 2 + ⋯ + k U n = U 0 + 2 U 1 + ⋯ + k U k − 1 .
If L = lim n → ∞ U n , then U 1 + 2 U 2 + ⋯ + k U k = L + 2 L + ⋯ + k L = ( 1 + 2 + ⋯ + 3 ) L = 2 k ( k + 1 ) L . Therefore, L = k ( k + 1 ) 2 ( U 0 + 2 U 1 + ⋯ + k U k − 1 ) , which means:
n → ∞ lim U n = k ( k + 1 ) 2 ( U 0 + 2 U 1 + ⋯ + k U k − 1 )
For the specific case when k = 2 and U 0 = m and U 1 = n , lim n → ∞ U n = 2 ( 2 + 1 ) 2 ( m + 2 n ) = 3 m + 2 n , which means a = 1 , b = 2 , and c = 3 , and a + b + c = 1 + 2 + 3 = 6 .