Christmas Streak 26/88: Disgraceful Size

A sequence { a n } \{a_n\} satisfies the below recurrence relation for all natural numbers n n :

{ a 1 = 32 , a 2 = 24 ; a n + 2 = a n + 1 13 a n 37 . \cases{a_1=32,~a_2=24; \\ \\ a_{n+2}={a_{n+1}}^{13}\cdot {a_{n}}^{37}.}

Find the value of 1000 ( a 2017 1000 a 2017 1000 ) . 1000\left(\dfrac{a_{2017}}{1000}-\left\lfloor\dfrac{a_{2017}}{1000}\right\rfloor\right).


Notation: \lfloor\cdot\rfloor denotes the floor function .

This problem is a part of <Christmas Streak 2017> series .


The answer is 32.

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

Boi (보이)
Oct 24, 2017

Firstly before we start anything, a 2017 1000 a 2017 1000 \dfrac{a_{2017}}{1000}-\left\lfloor\dfrac{a_{2017}}{1000}\right\rfloor expresses the fractional part of a 2017 1000 . \dfrac{a_{2017}}{1000}.

And cause a 2017 a_{2017} is a natural number, we see that what we're trying to get is the remainder when a 2017 a_{2017} is divided by 1000. 1000.

Since a 1 a_1 is already divisible by 8 , 8, we can all know that a 2017 0 ( m o d 8 ) . a_{2017}\equiv 0 \pmod{8}.

Then all we need to know is the remainder of a 2017 a_{2017} when it's divided by 125. 125.


Let 2 b n a n ( m o d 125 ) , 2^{b_n}\equiv a_n \pmod{125}, and then we see that a 1 = 2 5 a_1=2^5 and a 2 2 10 ( m o d 125 ) . a_2\equiv 2^{10}\pmod{125}.

Therefore we can set b 1 = 5 , b 2 = 10 , b n + 2 = 13 b n + 1 + 37 b n . b_1=5,~b_2=10,~b_{n+2}=13b_{n+1}+37b_{n}.

Since 2 100 = 2 ϕ ( 125 ) 1 ( m o d 125 ) , 2^{100}=2^{\phi(125)}\equiv 1 \pmod{125}, we can see that all we need is the remainder when b 2017 b_{2017} is divided by 100. 100.

Let's study about b 2017 b_{2017} with mod 4 and mod 25 then.


b n + 2 = b n + 1 + b n ( m o d 4 ) , b_{n+2}=b_{n+1}+b_{n} \pmod{4}, and since

( b 1 , b 2 , b 3 , b 4 , b 5 , b 6 , b 7 , b 8 , b 9 , ) = ( 1 , 2 , 3 , 1 , 0 , 1 , 1 , 2 , 3 , ) , (b_1,~b_2,~b_3,~b_4,~b_5,~b_6,~b_7,~b_8,~b_9,~\cdots)=(1,~2,~3,~1,~0,~1,~1,~2,~3,~\cdots), we can see that b n + 6 b n ( m o d 4 ) . b_{n+6}\equiv b_{n}\pmod{4}.

Therefore b 2017 b 1 = 1 ( m o d 4 ) . b_{2017}\equiv b_{1}=1 \pmod{4}.


We all know that b n b_{n} is always divisible by 5 , 5, since b 1 b 2 0 ( m o d 5 ) . b_1\equiv b_2\equiv 0\pmod{5}.

So we'll set b n = 5 c n , b_n=5c_n, and all we need is the remainder when c 2017 c_{2017} is divided by 5. 5.

c n + 2 3 c n + 1 + 2 c n ( m o d 5 ) . c_{n+2}\equiv 3c_{n+1}+2c_n\pmod{5}.

( c 1 , c 2 , c 3 , c 4 , , c 23 , c 24 , c 25 , ) = ( 1 , 2 , 3 , 3 , 0 , 1 , 3 , 1 , 4 , 4 , 0 , 3 , 4 , 3 , 2 , 2 , 0 , 4 , 2 , 4 , 1 , 1 , 0 , 2 , 1 , 2 , 3 , ) ( m o d 5 ) . (c_1,~c_2,~c_3,~c_4,~\cdots,~c_{23},~c_{24},~c_{25},~\cdots) \\ =(1,~2,~3,~3,~0,~1,~3,~1,~4,~4,~0,~3,~4,~3,~2,~2,~0,~4,~2,~4,~1,~1,~0,~2,~1,~2,~3,~\cdots) \pmod{5}.

Therefore c n + 24 c n ( m o d 5 ) , c_{n+24}\equiv c_n\pmod{5}, and c 2017 c 1 = 1 ( m o d 5 ) . c_{2017}\equiv c_1=1 \pmod{5}.

And so b 2017 5 ( m o d 25 ) . b_{2017}\equiv 5\pmod{25}.


From above we see that b 2017 5 ( m o d 100 ) , b_{2017}\equiv 5\pmod{100}, by the Chinese Remainder Theorem .

Then a 2017 2 b 2017 32 ( m o d 125 ) . a_{2017}\equiv 2^{b_{2017}}\equiv 32 \pmod{125}.

Therefore, using the Chinese Remainder Theorem again, we get a 2017 32 ( m o d 1000 ) . a_{2017}\equiv \boxed{32} \pmod{1000}.

The first line is missing a negative sign, right? It's always true that x x \lfloor x \rfloor - x is negative (or zero), so the answer as written should be 32 , -32, no?

Patrick Corn - 3 years, 7 months ago

Log in to reply

Oh right, sorry, I'll edit the question. Thank you!

Boi (보이) - 3 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...