Divisibility Puzzle

What is the largest integer n n such that 2 n 2^{n} divides 3 1024 1 3^{1024} - 1 ?


The answer is 12.

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.

5 solutions

Mathh Mathh
Sep 3, 2015

Apply Lifting The Exponent Lemma (LTE):

υ 2 ( 3 1024 1 ) = υ 2 ( 3 1 ) + υ 2 ( 3 + 1 ) + υ 2 ( 1024 ) 1 \upsilon_2\left(3^{1024}-1\right)=\upsilon_2(3-1)+\upsilon_2(3+1)+\upsilon_2(1024)-1

= 1 + 2 + 10 1 = 12 =1+2+10-1=\boxed{12}

The reason LTE works is (basically its proof):

3 1024 1 = ( 3 512 1 ) ( 3 512 + 1 ) = ( 3 256 1 ) ( 3 256 + 1 ) ( 3 512 + 1 ) 3^{1024}-1=\left(3^{512}-1\right)\left(3^{512}+1\right)=\left(3^{256}-1\right)\left(3^{256}+1\right)\left(3^{512}+1\right)

= = ( 3 1 ) ( 3 + 1 ) ( 3 2 + 1 ) ( 3 4 + 1 ) ( 3 512 + 1 ) =\cdots=(3-1)(3+1)\left(3^{2}+1\right)\left(3^{4}+1\right)\cdots\left(3^{512}+1\right)

3 2 + 1 3 4 + 1 3 512 + 1 2 ( m o d 4 ) 3^{2}+1\equiv 3^{4}+1\equiv \cdots\equiv 3^{512}+1\equiv 2\pmod{4} ,

because 3 2 k + 1 ( 1 ) 2 k + 1 1 + 1 2 ( m o d 4 ) 3^{2^k}+1\equiv (-1)^{2^k}+1\equiv 1+1\equiv 2\pmod{4} .

Therefore υ 2 ( 3 1024 1 ) = υ 2 ( 3 1 ) + υ 2 ( 3 + 1 ) + υ 2 ( 3 2 + 1 ) + \upsilon_2\left(3^{1024}-1\right)=\upsilon_2(3-1)+\upsilon_2(3+1)+\upsilon_2\left(3^2+1\right)+

+ υ 2 ( 3 4 + 1 ) + + υ 2 ( 3 512 + 1 ) +\upsilon_2\left(3^4+1\right)+\cdots+\upsilon_2\left(3^{512}+1\right)

= 1 + 2 + 1 + 1 + + 1 9 times = 12 =1+2+\underbrace{1+1+\cdots+1}_{9 \text{ times}}=12

Akshat Sharda
Sep 2, 2015

We can observe a pattern ,

3 2 1 3^{2}-1 \Rightarrow divisible by 2 3 2^{3} .

3 4 1 3^{4}-1 \Rightarrow divisible by 2 4 2^{4} .

3 8 1 3^{8}-1 \Rightarrow divisible by 2 5 2^{5} .

.

.

.

So 3 2 n 1 3^{2^{n}}-1\Rightarrow divisible by 2 n + 2 2^{n+2} when n > 0 n>0 .

So 3 2 10 1 3^{2^{10}}-1 is divisible by 2 10 + 2 = 2 12 2^{10+2}=2^{12}

Answer : 12 \boxed{12}


Applying LTE \text{Applying LTE}\rightarrow

= υ 2 ( 3 1024 1 ) =\upsilon_{2}(3^{1024}-1)

= υ 2 ( 3 1 ) + υ 2 ( 3 + 1 ) + υ 2 ( 1024 ) 1 =\upsilon_{2}(3-1)+\upsilon_{2}(3+1)+\upsilon_{2}(1024)-1

= 1 + 2 + 10 1 = 12 =1+2+10-1=\boxed{12}

nice observation...

Dev Sharma - 5 years, 9 months ago

Log in to reply

Thanks....^_^

Akshat Sharda - 5 years, 9 months ago

You need to prove that it works for small n n . How do you that it's true for n = 1000 n=1000 as well?

Pi Han Goh - 5 years, 9 months ago
Otto Bretscher
Sep 2, 2015

We can show by induction that the highest power of 2 dividing 3 2 n 1 3^{2^n}-1 is n + 2 n+2 , for n > 0 n>0 . The case n = 1 n=1 is trivial. For the induction step, write 3 2 n + 1 1 3^{2^{n+1}}-1 = ( 3 2 n 1 ) ( 3 2 n + 1 ) =(3^{2^n}-1)(3^{2^n}+1) . The highest power of 2 dividing the first factor is assumed to be n + 2 n+2 , and for the second factor it's 1 since 3 2 n + 1 2 ( m o d 4 ) 3^{2^n}+1\equiv2\pmod{4} .

For n = 10 n=10 the highest power is 12 \boxed{12}

I suppose that by similar reasoning we can say that the highest power of 2 2 that divides m 2 n 1 m^{2^{n}} - 1 for a given odd integer m 3 m \ge 3 is n + α ( m ) 1 , n + \alpha(m) - 1, where α ( m ) \alpha(m) is the highest power of 2 2 that divides m 2 1 = ( m 1 ) ( m + 1 ) . m^{2} - 1 = (m - 1)(m + 1). Just curious, but is there any pattern to α ( m ) \alpha(m) ? Since m 2 1 ( m o d 8 ) m^{2} \equiv 1 \pmod{8} for odd m 3 m \ge 3 we know that α ( m ) 3 , \alpha(m) \ge 3, and for m = 2 k ± 1 , k 2 m = 2^{k} \pm 1, k \ge 2 we have α ( m ) = k + 1. \alpha(m) = k + 1.

Brian Charlesworth - 5 years, 9 months ago

Log in to reply

Great point, Brian! Your function α ( m ) \alpha(m) is pretty "transparent": α ( m ) \alpha(m) is 1 plus the highest power of 2 that divides a "neighbor" of m m .

Otto Bretscher - 5 years, 9 months ago

Log in to reply

Ah, yes, one of ( m 1 ) , ( m + 1 ) (m - 1), (m + 1) will be congruent to 2 ( m o d 4 ) 2 \pmod{4} and the other to 0 ( m o d 4 ) , 0 \pmod{4}, yielding the result you mention. For this latter term, the highest power of 2 2 that divides it will be the lowest power of 2 2 when it is expressed as a sum of powers of 2 , 2, e.g., α ( 47 ) = α ( 49 ) = 1 + 4 = 5 \alpha(47) = \alpha(49) = 1 + 4 = 5 since 48 = 2 5 + 2 4 . 48 = 2^{5} + 2^{4}.

Brian Charlesworth - 5 years, 9 months ago

Log in to reply

@Brian Charlesworth Indeed! So, if the numbers are written in binary, no computation is needed: α ( m ) \alpha{(m)} is 1 plus the higher number of trailing zeros of the two neighbours. Neat!

Otto Bretscher - 5 years, 9 months ago

Brilliant explanation but those mods passed away from my head ! :D

Sir, Could you elaborate more about those MOD, why 3^2^n +1 = 2 mod 4

Syed Baqir - 5 years, 9 months ago

Log in to reply

Note that 3 1 ( m o d 4 ) , 3 \equiv -1 \pmod{4}, and so

3 2 n ( 1 ) 2 n 1 ( m o d 4 ) , 3^{2^{n}} \equiv (-1)^{2^{n}} \equiv 1 \pmod{4}, since 1 -1 is being raised to an even power.

Thus 3 2 n + 1 ( 1 + 1 ) ( m o d 4 ) 2 ( m o d 4 ) . 3^{2^{n}} + 1 \equiv (1 + 1) \pmod{4} \equiv 2 \pmod{4}.

This in turn implies that 3 2 n + 1 , 3^{2^{n}} + 1, while divisible by 2 , 2, is not also divisible by 4. 4.

Brian Charlesworth - 5 years, 9 months ago
Shravan Kumar
Sep 2, 2015

3^1024 - 1 = 9^512 - 1 = (8 + 1)^512 - 1 = 8^512 + .... + C(512, 2) 8^2 + (512)8 + 1 - 1 = 2^1536 + ... + 511 2^14 + 2^12 = 2^12(4k + 1).

Hence 12 is the highest power of 2

Joshua Wijaya
Sep 2, 2015

using the LTE lemma, v2(3^1024 - 1) = v2(9^512 - 1) = v2(9 - 1) + v2(512) = 3 + 9 = 12. Therefore, 4096|(3^1024 - 1) but 8192 didn't, so 12 is the answer.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...