Find n such that $2^n equiv xmod 3^k$
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
It looks like for every $k ge 1$ and x is not a multiple of 3, $2^n equiv xmod 3^k$ as a unique solution (modulo $2 times 3^k-1$).
How to prove it?
How to find such n given k and x?
Thanks.
modular-arithmetic
add a comment |Â
up vote
2
down vote
favorite
It looks like for every $k ge 1$ and x is not a multiple of 3, $2^n equiv xmod 3^k$ as a unique solution (modulo $2 times 3^k-1$).
How to prove it?
How to find such n given k and x?
Thanks.
modular-arithmetic
3
That is called $2$ being a primitive root $mod 3^k$ en.wikipedia.org/wiki/Primitive_root_modulo_n
– fleablood
Aug 3 at 11:52
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
It looks like for every $k ge 1$ and x is not a multiple of 3, $2^n equiv xmod 3^k$ as a unique solution (modulo $2 times 3^k-1$).
How to prove it?
How to find such n given k and x?
Thanks.
modular-arithmetic
It looks like for every $k ge 1$ and x is not a multiple of 3, $2^n equiv xmod 3^k$ as a unique solution (modulo $2 times 3^k-1$).
How to prove it?
How to find such n given k and x?
Thanks.
modular-arithmetic
edited Aug 3 at 11:24
pointguard0
591317
591317
asked Aug 3 at 11:11
Damien
1195
1195
3
That is called $2$ being a primitive root $mod 3^k$ en.wikipedia.org/wiki/Primitive_root_modulo_n
– fleablood
Aug 3 at 11:52
add a comment |Â
3
That is called $2$ being a primitive root $mod 3^k$ en.wikipedia.org/wiki/Primitive_root_modulo_n
– fleablood
Aug 3 at 11:52
3
3
That is called $2$ being a primitive root $mod 3^k$ en.wikipedia.org/wiki/Primitive_root_modulo_n
– fleablood
Aug 3 at 11:52
That is called $2$ being a primitive root $mod 3^k$ en.wikipedia.org/wiki/Primitive_root_modulo_n
– fleablood
Aug 3 at 11:52
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You need to show that $2^2*3^k-1ne1pmod3^k+1$. That follows by induction by cubing $1+3^k-1+m*3^kpmod3^k+1$.
To find $n$, write $x$ in base $3$. First, $n=0$ or $1$ depending on $xpmod3$. Then add $0,2$ or $4$ to $n$ so that $2^n=xpmod 9$; add $0,6$ or $12$ to get it correct mod $27$, and so on.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You need to show that $2^2*3^k-1ne1pmod3^k+1$. That follows by induction by cubing $1+3^k-1+m*3^kpmod3^k+1$.
To find $n$, write $x$ in base $3$. First, $n=0$ or $1$ depending on $xpmod3$. Then add $0,2$ or $4$ to $n$ so that $2^n=xpmod 9$; add $0,6$ or $12$ to get it correct mod $27$, and so on.
add a comment |Â
up vote
2
down vote
accepted
You need to show that $2^2*3^k-1ne1pmod3^k+1$. That follows by induction by cubing $1+3^k-1+m*3^kpmod3^k+1$.
To find $n$, write $x$ in base $3$. First, $n=0$ or $1$ depending on $xpmod3$. Then add $0,2$ or $4$ to $n$ so that $2^n=xpmod 9$; add $0,6$ or $12$ to get it correct mod $27$, and so on.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You need to show that $2^2*3^k-1ne1pmod3^k+1$. That follows by induction by cubing $1+3^k-1+m*3^kpmod3^k+1$.
To find $n$, write $x$ in base $3$. First, $n=0$ or $1$ depending on $xpmod3$. Then add $0,2$ or $4$ to $n$ so that $2^n=xpmod 9$; add $0,6$ or $12$ to get it correct mod $27$, and so on.
You need to show that $2^2*3^k-1ne1pmod3^k+1$. That follows by induction by cubing $1+3^k-1+m*3^kpmod3^k+1$.
To find $n$, write $x$ in base $3$. First, $n=0$ or $1$ depending on $xpmod3$. Then add $0,2$ or $4$ to $n$ so that $2^n=xpmod 9$; add $0,6$ or $12$ to get it correct mod $27$, and so on.
answered Aug 3 at 12:06
Empy2
31.7k12059
31.7k12059
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2870961%2ffind-n-such-that-2n-equiv-x-mod-3k%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3
That is called $2$ being a primitive root $mod 3^k$ en.wikipedia.org/wiki/Primitive_root_modulo_n
– fleablood
Aug 3 at 11:52