Towers of 2

Define a sequence T k T_{k} such that T 1 = 2 {T_{1} = 2} and T n = 2 T n 1 {T_n = 2^{T_{n-1}}} .

Find the remainder when T 1 + T 2 + T 3 + + T 256 {T_1 + T_2 + T_3 +\ldots + T_{256}} is divided by 255.

This is not an original problem.


The answer is 20.

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

Sagnik Saha
Apr 20, 2014

We have

T 1 = 2 T_1 = 2

T 2 = 4 T_2 = 4

T 3 = 16 T_3 = 16

Now, all terms after T 3 T_3 is a power of 2 8 = 256 2^8 = 256 . And 256 1 m o d 255 256 \equiv 1 \mod{255} .

Therefore all of T 4 , T 5 , . . . T 256 T_4 , T_5 , ... T_{256} leave a remainder 1 1 when divided by 255 255 .

So the required remainder is T 1 + T 2 + T 3 + 1 × 253 T_1 + T_2 + T_3 + 1 \times 253 = 2 + 4 + 13 + 253 m o d 255 2 + 4 + 13 + 253 \mod{255} = 20 m o d 255 20 \mod{255} . Hence our answer is 20 \boxed{20}

Small typo at the end: 16 not 13

Xuming Liang - 7 years, 1 month ago

Can you explain clearly why "Therefore all of T 4 , T 5 , . . . T 256 T_4 , T_5 , ... T_{256} leave a remainder 1 1 when divided by 255 255 ."? While the statement is true, I do not see any justification as yet.

Calvin Lin Staff - 7 years, 1 month ago

Because all the T i T_i where i 4 i \geq 4 is a power of 256 256 and 256 1 m o d 255 256 \equiv 1 \mod{255} so any power of 256 256 is also 1 m o d 255 1 \mod{255}

Sagnik Saha - 7 years, 1 month ago

Log in to reply

Ah, why is it a power of 256? If we had T n = T n 1 2 T_n = T_{n-1} ^ 2 , then it's clear that if T i = 256 T_i = 256 then any higher term will be a power of 256. However, because T n = 2 T n 1 T_n = 2^{T_n-1} , this is not immediately obvious. That is the justification that I am asking for. Why do we know that T n = 25 6 S n T_n = 256^{S_n} ?

Calvin Lin Staff - 7 years, 1 month ago

Log in to reply

Isn't this a simple induction? Let T n 1 = 25 6 a T_{n-1}=256^a . Then T n = 2 25 6 a = 2 25 6 a 1 32 8 = ( 2 8 ) 32.25 6 a 1 = 25 6 32.25 6 a 1 T_n=2^{256^a}=2^{256^{a-1}*32*8}={(2^8)}^{32.256^{a-1}}=256^{32.256^{a-1}}

ww margera - 6 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...