What is the largest integer n such that 2 n divides 3 1 0 2 4 − 1 ?
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.
We can observe a pattern ,
3 2 − 1 ⇒ divisible by 2 3 .
3 4 − 1 ⇒ divisible by 2 4 .
3 8 − 1 ⇒ divisible by 2 5 .
.
.
.
So 3 2 n − 1 ⇒ divisible by 2 n + 2 when n > 0 .
So 3 2 1 0 − 1 is divisible by 2 1 0 + 2 = 2 1 2
Answer : 1 2
Applying LTE →
= υ 2 ( 3 1 0 2 4 − 1 )
= υ 2 ( 3 − 1 ) + υ 2 ( 3 + 1 ) + υ 2 ( 1 0 2 4 ) − 1
= 1 + 2 + 1 0 − 1 = 1 2
nice observation...
You need to prove that it works for small n . How do you that it's true for n = 1 0 0 0 as well?
We can show by induction that the highest power of 2 dividing 3 2 n − 1 is n + 2 , for n > 0 . The case n = 1 is trivial. For the induction step, write 3 2 n + 1 − 1 = ( 3 2 n − 1 ) ( 3 2 n + 1 ) . The highest power of 2 dividing the first factor is assumed to be n + 2 , and for the second factor it's 1 since 3 2 n + 1 ≡ 2 ( m o d 4 ) .
For n = 1 0 the highest power is 1 2
I suppose that by similar reasoning we can say that the highest power of 2 that divides m 2 n − 1 for a given odd integer m ≥ 3 is n + α ( m ) − 1 , where α ( m ) is the highest power of 2 that divides m 2 − 1 = ( m − 1 ) ( m + 1 ) . Just curious, but is there any pattern to α ( m ) ? Since m 2 ≡ 1 ( m o d 8 ) for odd m ≥ 3 we know that α ( m ) ≥ 3 , and for m = 2 k ± 1 , k ≥ 2 we have α ( m ) = k + 1 .
Log in to reply
Great point, Brian! Your function α ( m ) is pretty "transparent": α ( m ) is 1 plus the highest power of 2 that divides a "neighbor" of m .
Log in to reply
Ah, yes, one of ( m − 1 ) , ( m + 1 ) will be congruent to 2 ( m o d 4 ) and the other to 0 ( m o d 4 ) , yielding the result you mention. For this latter term, the highest power of 2 that divides it will be the lowest power of 2 when it is expressed as a sum of powers of 2 , e.g., α ( 4 7 ) = α ( 4 9 ) = 1 + 4 = 5 since 4 8 = 2 5 + 2 4 .
Log in to reply
@Brian Charlesworth – Indeed! So, if the numbers are written in binary, no computation is needed: α ( m ) is 1 plus the higher number of trailing zeros of the two neighbours. Neat!
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
Log in to reply
Note that 3 ≡ − 1 ( m o d 4 ) , and so
3 2 n ≡ ( − 1 ) 2 n ≡ 1 ( m o d 4 ) , since − 1 is being raised to an even power.
Thus 3 2 n + 1 ≡ ( 1 + 1 ) ( m o d 4 ) ≡ 2 ( m o d 4 ) .
This in turn implies that 3 2 n + 1 , while divisible by 2 , is not also divisible by 4 .
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
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.
Problem Loading...
Note Loading...
Set Loading...
Apply Lifting The Exponent Lemma (LTE):
υ 2 ( 3 1 0 2 4 − 1 ) = υ 2 ( 3 − 1 ) + υ 2 ( 3 + 1 ) + υ 2 ( 1 0 2 4 ) − 1
= 1 + 2 + 1 0 − 1 = 1 2
The reason LTE works is (basically its proof):
3 1 0 2 4 − 1 = ( 3 5 1 2 − 1 ) ( 3 5 1 2 + 1 ) = ( 3 2 5 6 − 1 ) ( 3 2 5 6 + 1 ) ( 3 5 1 2 + 1 )
= ⋯ = ( 3 − 1 ) ( 3 + 1 ) ( 3 2 + 1 ) ( 3 4 + 1 ) ⋯ ( 3 5 1 2 + 1 )
3 2 + 1 ≡ 3 4 + 1 ≡ ⋯ ≡ 3 5 1 2 + 1 ≡ 2 ( m o d 4 ) ,
because 3 2 k + 1 ≡ ( − 1 ) 2 k + 1 ≡ 1 + 1 ≡ 2 ( m o d 4 ) .
Therefore υ 2 ( 3 1 0 2 4 − 1 ) = υ 2 ( 3 − 1 ) + υ 2 ( 3 + 1 ) + υ 2 ( 3 2 + 1 ) +
+ υ 2 ( 3 4 + 1 ) + ⋯ + υ 2 ( 3 5 1 2 + 1 )
= 1 + 2 + 9 times 1 + 1 + ⋯ + 1 = 1 2