Consider a sequence { a i } of positive integers defined by a 1 = 1 , a 2 = 2 , and for all integers n > 2 , a n = 3 a n − 1 + 5 a n − 2 Consider the set S = { a 1 , a 2 , ⋯ , a 1 2 0 0 } Sam randomly picks an element from this set. The probability that this element is a multiple of 8 can be expressed as b a , where a , b are coprime positive integers. Find a + b .
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.
As reluctant to look for a shorter solution as ever, I see! Good to see you on here, Pranav. This was a thorough solution, as always.
(It's Mandelbroth from Physics Forums, if you don't recognize my avatar. :P )
Nicely done, Pranav! :D
Please explain to me where n is defined
lame and uninteresting question
By examining the sequence modulo 8, we see it is periodic with period 12: 1 , 2 , 3 , 3 , 0 , 7 , 5 , 2 , 7 , 7 , 0 , 3 , 1 , 2 , … Out of 12 elements in any period, 2 are 0 modulo 8. Since the set consists of 1 2 ⋅ 1 0 0 consecutive elements, exactly 2 / 1 2 = 1 / 6 of them will be 0 modulo 8, and so the answer is 1 + 6 = 7 .
Problem Loading...
Note Loading...
Set Loading...
As we have to find the elements that are a multiple of 8, we work with modulo 8.
a 1 ≡ 1 ( m o d 8 )
a 2 ≡ 2 ( m o d 8 )
a 3 ≡ 3 × 2 + 5 × 1 ≡ 1 1 ≡ 3 ( m o d 8 )
a 4 ≡ 3 × 3 + 5 × 2 ≡ 1 9 ≡ 3 ( m o d 8 )
a 5 ≡ 3 × 3 + 5 × 3 ≡ 2 4 ≡ 0 ( m o d 8 )
a 6 ≡ 3 × 0 + 5 × 2 ≡ 7 ( m o d 8 )
a 7 ≡ 3 × 7 + 5 × 0 ≡ 5 ( m o d 8 )
a 8 ≡ 3 × 5 + 5 × 7 ≡ 2 ( m o d 8 )
a 9 ≡ 3 × 2 + 5 × 5 ≡ 7 ( m o d 8 )
a 1 0 ≡ 3 × 7 + 5 × 2 ≡ 7 ( m o d 8 )
a 1 1 ≡ 3 × 7 + 5 × 7 ≡ 0 ( m o d 8 )
a 1 2 ≡ 3 × 0 + 5 × 7 ≡ 3 ( m o d 8 )
a 1 3 ≡ 3 × 3 + 5 × 0 ≡ 1 ( m o d 8 )
a 1 4 ≡ 3 × 1 + 5 × 3 ≡ 2 ( m o d 8 )
We notice that the residues of a n ( m o d 8 ) repeat with periodicity 12.
There are two multiples of 8 in a period of 12. hence there are 200 multiples of 8 in { a 1 , a 2 , a 3 . . . . . . a 1 2 0 0 } .
Hence, the probability is 1 2 0 0 2 0 0 = 6 1
Therefore, a = 1 , b = 6 ⇒ a + b = 7 .