Recurrences and Divisors

Given that a 0 = b 0 = 0 \mathrm{a_0 = b_0 = 0}
a i , b i 0 \mathrm{a_i , b_i \geq 0} .......... i 0 \forall i\geq 0
a 1 : b 1 = 6 : 61 \mathrm{a_1 : b_1 = 6:61}
b 1 2 a 1 2 = 3685 \mathrm{b_1^2-a_1^2 = 3685}
a n = 8 a n 1 7 a n 2 \mathrm{a_n = 8a_{n-1} - 7a_{n-2}}
b n = 65 b n 1 126 b n 2 b_n = 65b_{n-1}- 126 b_{n-2}

Find the Greatest Common Divisor of

the numbers formed by last 5 digits of a 2560 \mathrm{\text{a}_{2560}} and b 1000 \mathrm{b_{1000}}

Details And Assumptions :-

The last five digits are taken in order as they appear i.e.

number formed by last 5 digits of the number 67865783658 is 83658 .


The answer is 125.

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.

1 solution

Aditya Raut
Apr 9, 2014

Solution

a 1 : b 1 = 6 : 61 a_1:b_1=6:61 , let a 1 = 6 k , b 1 = 61 k a_1= 6k , b_1=61k

b 1 1 a 1 2 = 6 1 2 k 2 6 2 k 2 = 3685 b_1^1-a_1^2= 61^2k^2- 6^2 k^2 = 3685 .....given

Thus k 2 ( 6 1 2 6 2 ) = k 2 3685 = 3685 k^2(61^2-6^2) = k^23685 = 3685

Hence k= ± 1 \pm1 but as given that a i , b i 0 \forall a_i,b_i \geq 0 , k 1 k\neq -1

Hence a 1 = 6 a_1= 6 , b 1 = 61 b_1 = 61

We have recurrence for a n a_n with characteristic equation x 2 8 x + 7 = 0 x^2-8x+7=0 which has roots 7 and 1

Hence a n = A 1 × 7 n + B 1 × 1 n a_n= A_1\times 7^n +B_1 \times 1^n ....from initial conditions a 0 = 0 a_0=0 and a 1 = 6 a_1=6 we can calculate A 1 = 1 , B 1 = 1 A_1=1 , B_1= -1

Hence a n = 7 n 1 a_n=7^n-1

Similarly recurrence for b n b_n has characteristic equation with roots 63 and 2 hence

b n = A 2 × 6 3 n + B 2 × 2 n b_n=A_2\times63^n + B_2\times 2^n

and from initial conditions , A 2 = 1 , B 2 = 1 A_2= 1 , B_2=-1

Hence b n = 6 3 n 2 n b_n=63^n-2^n

Now we need the last 5 digits of a 2 560 a_2560 which are last five digits of 7 2560 1 7^{2560}-1 and they are 36000 .( 7 2560 36001 ( m o d 1 0 5 ) 7^{2560}\equiv 36001 \pmod {10^5} )

Last five digits of b 1000 b_{1000} will be last five digits of 6 3 1000 2 1000 63^{1000}-2^{1000} which are 70625 ... ( 6 3 1000 2 1000 70625 ( m o d 1 0 5 ) 63^{1000}-2^{1000}\equiv 70625 \pmod {10^5} )

GCD of 36000 and 70625 is 125 \boxed{125} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...