Remainder of $3^{2^n}-1$ Divided by $2^{n+3}$

  • MHB
  • Thread starter kaliprasad
  • Start date
  • Tags
    Remainder
In summary, the conversation discusses finding the remainder when $3^{2^n}-1$ is divided by $2^{n+3}$ and presents a proof by induction to show that it is an odd multiple of $2^{n+2}$. A different approach is also suggested by another participant.
  • #1
kaliprasad
Gold Member
MHB
1,335
0
find the remainder when $3^{2^n}-1$ is divided by $2^{n+3}$
 
Mathematics news on Phys.org
  • #2
kaliprasad said:
find the remainder when $3^{2^n}-1$ is divided by $2^{n+3}$
[sp]Claim: $3^{2^n}-1$ is an odd multiple of $2^{n+2}$.

Proof by induction: Base case ($n=1$) is true because $3^{2^1}-1 = 3^2-1 = 8$, which is an odd multiple of $2^{1+2} = 2^3 = 8.$ For the inductive step, $3^{2^{n+1}} - 1 = (3^{2^n}-1) (3^{2^n}+1)$ (difference of two squares). By the inductive hypothesis, the first factor is an odd multiple of $2^{n+2}$. The second factor is $(3^{2^n}-1) + 2$ which, again by the inductive hypothesis, is an odd multiple of $2$. Therefore the product $3^{2^{n+1}} - 1$ of the two factors is an odd multiple of $2^{n+3}$, which completes the inductive step.

It follows that the remainder when $3^{2^n}-1$ is divided by $2^{n+3}$ is $2^{n+2}$.[/sp]
 
  • #3
It's been over a decade since I've done these kinds of problems on a regular basis - and I can't top Opalg's delicious proof above (nicely done! (Sun) ) - but I'm just wondering, would it not be easier if you were to...

write \(\displaystyle 3^{2^n}-1\) as \(\displaystyle 9^n-1\) and \(\displaystyle 2^{n+3}\) as \(\displaystyle 8\cdot 2^n\)

?
 
  • #4
DreamWeaver said:
It's been over a decade since I've done these kinds of problems on a regular basis - and I can't top Opalg's delicious proof above (nicely done! (Sun) ) - but I'm just wondering, would it not be easier if you were to...

write \(\displaystyle 3^{2^n}-1\) as \(\displaystyle 9^n-1\) and \(\displaystyle 2^{n+3}\) as \(\displaystyle 8\cdot 2^n\)

?

[sp]$$3^{2^n} = 3^{(2^n)} \ne (3^2)^n = 3^{2n} = 9^n$$[/sp]
 
  • #5
Bacterius said:
[sp]$$3^{2^n} = 3^{(2^n)} \ne (3^2)^n = 3^{2n} = 9^n$$[/sp]

Egg on face! Ha ha! Thanks for that... I don't know what I was thinking there... :eek::eek::eek:
 
  • #6
good solution by opalg
here is another
$3^{2^n} - 1 = (3^{2^{n-1}} +1) (3^{2^{n-1}} -1)$
= $(3^{2^{n-1}} +1) (3^{2^{n-2}} +1)(3^{2^{n-2}} -1$
= $(3^{2^{n-1}} +1) (3^{2^{n-2}} +1)\cdots(3^2+1)(3^2-1)$

now there are 1st n-1 terms of the form $3^{2^k} + 1 $ where k = n-1 to 1

$3^{2^ k} - 1 = 3^{2x} - 1 = 9^x - 1$ as $2^k$ is even so

$3^{2^k} -1 \mod 4 = 0$

$3^{2^k} +1 \mod 4 = 2$

so $3^{2^k} +1 = 4 m + 2 = 2(2m+ 1)$

there are n-1 numbers of the form 2(2m+1) and last number is 8.
so product = $8 * 2^{n-1} * (2y + 1) = y . 2^{n+3} + 2 ^{n+2}$

so $product \mod 2^{n+3} = 2 ^{n+2}$

hence $2^{n+2}$ is the desired remainder
 
Last edited:

FAQ: Remainder of $3^{2^n}-1$ Divided by $2^{n+3}$

What is the formula for calculating the remainder of $3^{2^n}-1$ divided by $2^{n+3}$?

The formula for calculating the remainder is $3^{2^n}-1 \equiv 2^{n+2} \pmod{2^{n+3}}$.

What is the significance of $2^{n+3}$ in the formula?

The number $2^{n+3}$ represents the divisor or the number that we are dividing the original expression, $3^{2^n}-1$, by. It is important because it determines the size of the remainder and plays a crucial role in the calculation.

How can we prove that the remainder of $3^{2^n}-1$ divided by $2^{n+3}$ always equals $2^{n+2}$?

We can prove this using mathematical induction. The base case, when $n=0$, is trivial as both the remainder and $2^{n+2}$ equal 2. For the inductive step, assume that the formula holds for $n=k$, then we can show that it also holds for $n=k+1$. This can be done by substituting $n=k+1$ into the formula and using the fact that $3^{2^{k+1}}-1 = (3^{2^{k}}-1)(3^{2^{k}}+1)$. By the inductive hypothesis, we know that the remainder of $3^{2^{k}}-1$ divided by $2^{k+3}$ is $2^{k+2}$, which when multiplied by 3, gives us $2^{k+3}$, the desired remainder.

Can we generalize this formula to any base number instead of 3?

Yes, this formula can be generalized for any base number. In general, the remainder of $a^{2^n}-1$ divided by $2^{n+3}$ is $2^{n+2}$, where a is any positive integer greater than 1.

How is this formula used in real-world applications?

This formula has various applications in computer science and cryptography. In computer science, it is used in programming languages to efficiently compute large powers of numbers. In cryptography, it is used in the RSA encryption algorithm to calculate the private key from the public key. It also has applications in number theory and modular arithmetic.

Similar threads

Replies
1
Views
920
Replies
1
Views
1K
Replies
5
Views
2K
Replies
6
Views
2K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
1
Views
2K
Back
Top