Find the reminder of $2^{62}$ with 85 [duplicate]
This question already has an answer here:
How do I compute $a^b,bmod c$ by hand?
8 answers
As title, how do you find the reminder of $2^{62}$ with 85?
Since (85,2) = 1, from FLT I know that $2^{84} equiv 1 mod(85)$, but after this I don't know how to proceed because 62 < 85 and I don't know how to use this theorem.
elementary-number-theory modular-arithmetic
marked as duplicate by Jyrki Lahtonen, Brahadeesh, José Carlos Santos, amWhy, Lord_Farin Nov 28 '18 at 22:19
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How do I compute $a^b,bmod c$ by hand?
8 answers
As title, how do you find the reminder of $2^{62}$ with 85?
Since (85,2) = 1, from FLT I know that $2^{84} equiv 1 mod(85)$, but after this I don't know how to proceed because 62 < 85 and I don't know how to use this theorem.
elementary-number-theory modular-arithmetic
marked as duplicate by Jyrki Lahtonen, Brahadeesh, José Carlos Santos, amWhy, Lord_Farin Nov 28 '18 at 22:19
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2
Probably easiest to solve it $pmod 5$ and $pmod {17}$, and then use the Chinese Remainder Theorem.
– lulu
Nov 26 '18 at 14:01
1
How about considering that $a^{phi (n)} equiv 1 pmod n$ when $gcd (a,n)=1?$
– Mohammad Zuhair Khan
Nov 26 '18 at 14:09
add a comment |
This question already has an answer here:
How do I compute $a^b,bmod c$ by hand?
8 answers
As title, how do you find the reminder of $2^{62}$ with 85?
Since (85,2) = 1, from FLT I know that $2^{84} equiv 1 mod(85)$, but after this I don't know how to proceed because 62 < 85 and I don't know how to use this theorem.
elementary-number-theory modular-arithmetic
This question already has an answer here:
How do I compute $a^b,bmod c$ by hand?
8 answers
As title, how do you find the reminder of $2^{62}$ with 85?
Since (85,2) = 1, from FLT I know that $2^{84} equiv 1 mod(85)$, but after this I don't know how to proceed because 62 < 85 and I don't know how to use this theorem.
This question already has an answer here:
How do I compute $a^b,bmod c$ by hand?
8 answers
elementary-number-theory modular-arithmetic
elementary-number-theory modular-arithmetic
asked Nov 26 '18 at 14:00
Alessar
21113
21113
marked as duplicate by Jyrki Lahtonen, Brahadeesh, José Carlos Santos, amWhy, Lord_Farin Nov 28 '18 at 22:19
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Jyrki Lahtonen, Brahadeesh, José Carlos Santos, amWhy, Lord_Farin Nov 28 '18 at 22:19
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2
Probably easiest to solve it $pmod 5$ and $pmod {17}$, and then use the Chinese Remainder Theorem.
– lulu
Nov 26 '18 at 14:01
1
How about considering that $a^{phi (n)} equiv 1 pmod n$ when $gcd (a,n)=1?$
– Mohammad Zuhair Khan
Nov 26 '18 at 14:09
add a comment |
2
Probably easiest to solve it $pmod 5$ and $pmod {17}$, and then use the Chinese Remainder Theorem.
– lulu
Nov 26 '18 at 14:01
1
How about considering that $a^{phi (n)} equiv 1 pmod n$ when $gcd (a,n)=1?$
– Mohammad Zuhair Khan
Nov 26 '18 at 14:09
2
2
Probably easiest to solve it $pmod 5$ and $pmod {17}$, and then use the Chinese Remainder Theorem.
– lulu
Nov 26 '18 at 14:01
Probably easiest to solve it $pmod 5$ and $pmod {17}$, and then use the Chinese Remainder Theorem.
– lulu
Nov 26 '18 at 14:01
1
1
How about considering that $a^{phi (n)} equiv 1 pmod n$ when $gcd (a,n)=1?$
– Mohammad Zuhair Khan
Nov 26 '18 at 14:09
How about considering that $a^{phi (n)} equiv 1 pmod n$ when $gcd (a,n)=1?$
– Mohammad Zuhair Khan
Nov 26 '18 at 14:09
add a comment |
4 Answers
4
active
oldest
votes
$2^{84}$ is actually equal to $16$ mod $85$.
$85$ is not prime, so you need Euler's Theorem, not Fermat's. This says that if $n$ and $a$ are co-prime, then $a^{varphi(n)}equiv 1$ mod $n$, where $varphi(n)$ is the number of integers between $1$ and $n-1$ that are relatively prime to $n$. Note that if $n$ is prime, then $varphi(n)=n-1$, which gives us Fermat's Little Theorem.
If $n=pq$ is a product of two primes, then $varphi(n)=(p-1)(q-1)$ (this is the basis of RSA cryptography). So we have $varphi(85)=4cdot 16=64$, which means that $2^{64}equiv 1$ mod $85$.
So $2^{62}equiv 1/4$ mod $85$. And $4cdot 64equiv 1$ mod $85$, so $1/4equiv 64$ mod $85$.
add a comment |
$85$ is not prime, FLT is not applicable directly
Use http://mathworld.wolfram.com/CarmichaelFunction.html
$lambda(85)=16$
$implies2^{64}equiv1^4pmod{85}$
$implies2^{62}equiv2^{-2}equiv-21equiv-21+85$
as $-21cdot4equiv1pmod{85}$
add a comment |
As noticed we can't apply FLT, to solve by elementary methods note that
$$2^{8}=256 equiv 1 pmod{85}$$
then
$$2^{62} equiv 2^{7cdot 8}cdot 2^{6}equiv 2^{6}equiv 64 equiv -21 pmod{85}$$
add a comment |
$begin{align}{rm Note}qquad
85 &= 4^{large 3}!+4^{large 2}!+4+1\
Rightarrow (4!-!1)85 &= 4^{large 4}-1 Rightarrow color{#c00}{4^{large 4}equiv 1}!!!pmod{!85}end{align}$
So $bmod 85!:, 2^{large 62}equiv 4^{large 31}equiv 4^{large 3}(color{#c00}{4^{large 4}})^{large 7}equiv 4^{large 3} color{#c00}1^{large 7}equiv 64$
$begin{align}{bf Or}qquadqquad
85&= (16!+!1)cdot 5\
Rightarrow 85cdot 3 &= (16!+!1)(16!-!1) = 16^{large 2}-1,Rightarrow,color{#c00}{16^2equiv 1}pmod{!85}
end{align}$
add a comment |
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$2^{84}$ is actually equal to $16$ mod $85$.
$85$ is not prime, so you need Euler's Theorem, not Fermat's. This says that if $n$ and $a$ are co-prime, then $a^{varphi(n)}equiv 1$ mod $n$, where $varphi(n)$ is the number of integers between $1$ and $n-1$ that are relatively prime to $n$. Note that if $n$ is prime, then $varphi(n)=n-1$, which gives us Fermat's Little Theorem.
If $n=pq$ is a product of two primes, then $varphi(n)=(p-1)(q-1)$ (this is the basis of RSA cryptography). So we have $varphi(85)=4cdot 16=64$, which means that $2^{64}equiv 1$ mod $85$.
So $2^{62}equiv 1/4$ mod $85$. And $4cdot 64equiv 1$ mod $85$, so $1/4equiv 64$ mod $85$.
add a comment |
$2^{84}$ is actually equal to $16$ mod $85$.
$85$ is not prime, so you need Euler's Theorem, not Fermat's. This says that if $n$ and $a$ are co-prime, then $a^{varphi(n)}equiv 1$ mod $n$, where $varphi(n)$ is the number of integers between $1$ and $n-1$ that are relatively prime to $n$. Note that if $n$ is prime, then $varphi(n)=n-1$, which gives us Fermat's Little Theorem.
If $n=pq$ is a product of two primes, then $varphi(n)=(p-1)(q-1)$ (this is the basis of RSA cryptography). So we have $varphi(85)=4cdot 16=64$, which means that $2^{64}equiv 1$ mod $85$.
So $2^{62}equiv 1/4$ mod $85$. And $4cdot 64equiv 1$ mod $85$, so $1/4equiv 64$ mod $85$.
add a comment |
$2^{84}$ is actually equal to $16$ mod $85$.
$85$ is not prime, so you need Euler's Theorem, not Fermat's. This says that if $n$ and $a$ are co-prime, then $a^{varphi(n)}equiv 1$ mod $n$, where $varphi(n)$ is the number of integers between $1$ and $n-1$ that are relatively prime to $n$. Note that if $n$ is prime, then $varphi(n)=n-1$, which gives us Fermat's Little Theorem.
If $n=pq$ is a product of two primes, then $varphi(n)=(p-1)(q-1)$ (this is the basis of RSA cryptography). So we have $varphi(85)=4cdot 16=64$, which means that $2^{64}equiv 1$ mod $85$.
So $2^{62}equiv 1/4$ mod $85$. And $4cdot 64equiv 1$ mod $85$, so $1/4equiv 64$ mod $85$.
$2^{84}$ is actually equal to $16$ mod $85$.
$85$ is not prime, so you need Euler's Theorem, not Fermat's. This says that if $n$ and $a$ are co-prime, then $a^{varphi(n)}equiv 1$ mod $n$, where $varphi(n)$ is the number of integers between $1$ and $n-1$ that are relatively prime to $n$. Note that if $n$ is prime, then $varphi(n)=n-1$, which gives us Fermat's Little Theorem.
If $n=pq$ is a product of two primes, then $varphi(n)=(p-1)(q-1)$ (this is the basis of RSA cryptography). So we have $varphi(85)=4cdot 16=64$, which means that $2^{64}equiv 1$ mod $85$.
So $2^{62}equiv 1/4$ mod $85$. And $4cdot 64equiv 1$ mod $85$, so $1/4equiv 64$ mod $85$.
answered Nov 26 '18 at 14:30
TonyK
41.6k353132
41.6k353132
add a comment |
add a comment |
$85$ is not prime, FLT is not applicable directly
Use http://mathworld.wolfram.com/CarmichaelFunction.html
$lambda(85)=16$
$implies2^{64}equiv1^4pmod{85}$
$implies2^{62}equiv2^{-2}equiv-21equiv-21+85$
as $-21cdot4equiv1pmod{85}$
add a comment |
$85$ is not prime, FLT is not applicable directly
Use http://mathworld.wolfram.com/CarmichaelFunction.html
$lambda(85)=16$
$implies2^{64}equiv1^4pmod{85}$
$implies2^{62}equiv2^{-2}equiv-21equiv-21+85$
as $-21cdot4equiv1pmod{85}$
add a comment |
$85$ is not prime, FLT is not applicable directly
Use http://mathworld.wolfram.com/CarmichaelFunction.html
$lambda(85)=16$
$implies2^{64}equiv1^4pmod{85}$
$implies2^{62}equiv2^{-2}equiv-21equiv-21+85$
as $-21cdot4equiv1pmod{85}$
$85$ is not prime, FLT is not applicable directly
Use http://mathworld.wolfram.com/CarmichaelFunction.html
$lambda(85)=16$
$implies2^{64}equiv1^4pmod{85}$
$implies2^{62}equiv2^{-2}equiv-21equiv-21+85$
as $-21cdot4equiv1pmod{85}$
answered Nov 26 '18 at 14:09
lab bhattacharjee
223k15156274
223k15156274
add a comment |
add a comment |
As noticed we can't apply FLT, to solve by elementary methods note that
$$2^{8}=256 equiv 1 pmod{85}$$
then
$$2^{62} equiv 2^{7cdot 8}cdot 2^{6}equiv 2^{6}equiv 64 equiv -21 pmod{85}$$
add a comment |
As noticed we can't apply FLT, to solve by elementary methods note that
$$2^{8}=256 equiv 1 pmod{85}$$
then
$$2^{62} equiv 2^{7cdot 8}cdot 2^{6}equiv 2^{6}equiv 64 equiv -21 pmod{85}$$
add a comment |
As noticed we can't apply FLT, to solve by elementary methods note that
$$2^{8}=256 equiv 1 pmod{85}$$
then
$$2^{62} equiv 2^{7cdot 8}cdot 2^{6}equiv 2^{6}equiv 64 equiv -21 pmod{85}$$
As noticed we can't apply FLT, to solve by elementary methods note that
$$2^{8}=256 equiv 1 pmod{85}$$
then
$$2^{62} equiv 2^{7cdot 8}cdot 2^{6}equiv 2^{6}equiv 64 equiv -21 pmod{85}$$
answered Nov 26 '18 at 14:31
gimusi
1
1
add a comment |
add a comment |
$begin{align}{rm Note}qquad
85 &= 4^{large 3}!+4^{large 2}!+4+1\
Rightarrow (4!-!1)85 &= 4^{large 4}-1 Rightarrow color{#c00}{4^{large 4}equiv 1}!!!pmod{!85}end{align}$
So $bmod 85!:, 2^{large 62}equiv 4^{large 31}equiv 4^{large 3}(color{#c00}{4^{large 4}})^{large 7}equiv 4^{large 3} color{#c00}1^{large 7}equiv 64$
$begin{align}{bf Or}qquadqquad
85&= (16!+!1)cdot 5\
Rightarrow 85cdot 3 &= (16!+!1)(16!-!1) = 16^{large 2}-1,Rightarrow,color{#c00}{16^2equiv 1}pmod{!85}
end{align}$
add a comment |
$begin{align}{rm Note}qquad
85 &= 4^{large 3}!+4^{large 2}!+4+1\
Rightarrow (4!-!1)85 &= 4^{large 4}-1 Rightarrow color{#c00}{4^{large 4}equiv 1}!!!pmod{!85}end{align}$
So $bmod 85!:, 2^{large 62}equiv 4^{large 31}equiv 4^{large 3}(color{#c00}{4^{large 4}})^{large 7}equiv 4^{large 3} color{#c00}1^{large 7}equiv 64$
$begin{align}{bf Or}qquadqquad
85&= (16!+!1)cdot 5\
Rightarrow 85cdot 3 &= (16!+!1)(16!-!1) = 16^{large 2}-1,Rightarrow,color{#c00}{16^2equiv 1}pmod{!85}
end{align}$
add a comment |
$begin{align}{rm Note}qquad
85 &= 4^{large 3}!+4^{large 2}!+4+1\
Rightarrow (4!-!1)85 &= 4^{large 4}-1 Rightarrow color{#c00}{4^{large 4}equiv 1}!!!pmod{!85}end{align}$
So $bmod 85!:, 2^{large 62}equiv 4^{large 31}equiv 4^{large 3}(color{#c00}{4^{large 4}})^{large 7}equiv 4^{large 3} color{#c00}1^{large 7}equiv 64$
$begin{align}{bf Or}qquadqquad
85&= (16!+!1)cdot 5\
Rightarrow 85cdot 3 &= (16!+!1)(16!-!1) = 16^{large 2}-1,Rightarrow,color{#c00}{16^2equiv 1}pmod{!85}
end{align}$
$begin{align}{rm Note}qquad
85 &= 4^{large 3}!+4^{large 2}!+4+1\
Rightarrow (4!-!1)85 &= 4^{large 4}-1 Rightarrow color{#c00}{4^{large 4}equiv 1}!!!pmod{!85}end{align}$
So $bmod 85!:, 2^{large 62}equiv 4^{large 31}equiv 4^{large 3}(color{#c00}{4^{large 4}})^{large 7}equiv 4^{large 3} color{#c00}1^{large 7}equiv 64$
$begin{align}{bf Or}qquadqquad
85&= (16!+!1)cdot 5\
Rightarrow 85cdot 3 &= (16!+!1)(16!-!1) = 16^{large 2}-1,Rightarrow,color{#c00}{16^2equiv 1}pmod{!85}
end{align}$
edited Nov 26 '18 at 16:09
answered Nov 26 '18 at 15:50
Bill Dubuque
209k29190629
209k29190629
add a comment |
add a comment |
2
Probably easiest to solve it $pmod 5$ and $pmod {17}$, and then use the Chinese Remainder Theorem.
– lulu
Nov 26 '18 at 14:01
1
How about considering that $a^{phi (n)} equiv 1 pmod n$ when $gcd (a,n)=1?$
– Mohammad Zuhair Khan
Nov 26 '18 at 14:09