Prove that the order of 5 modulo 2^k is 2^(k-2)

Click For Summary

Discussion Overview

The discussion revolves around proving that the order of 5 modulo \(2^k\) is \(2^{k-2}\) for \(k \geq 3\). Participants explore various methods, primarily focusing on mathematical induction and congruences, to establish this property.

Discussion Character

  • Mathematical reasoning
  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants propose using induction to prove the order of 5 modulo \(2^{k+1}\) is \(2^{k-1}\) based on the assumption that it holds for \(2^k\).
  • It is suggested that the congruence \(a \equiv b \pmod{n} \iff a = b + kn\) can be applied to derive equivalent congruences for \(2^{k+1}\).
  • Several participants express uncertainty about how to transition from modulo \(2^k\) to \(2^{k+1}\) and how to prove that the order is indeed the smallest.
  • One participant presents a calculation showing \(5^{2^{k-1}} = (5^{2^{k-2}})^2\) and questions how to evaluate this modulo \(2^{k+1}\).
  • Another participant suggests that \(5^{2^{k-1}} \equiv 1 \pmod{2^{k+1}}\) and emphasizes the importance of understanding the inductive hypothesis.
  • A later reply proposes showing that \(5^{2^{k-3}} \equiv 1 + 2^{k-1} \pmod{2^k}\) to justify that \(5^{2^{k-3}} \not\equiv 1 \pmod{2^k}\).

Areas of Agreement / Disagreement

Participants generally agree on the use of induction as a method to approach the proof, but there is no consensus on the specific steps or methods to transition between the different moduli or to establish the smallest order definitively.

Contextual Notes

Some participants express limitations in their understanding of how to rigorously prove that the order is the smallest positive integer satisfying the congruence conditions. There are unresolved questions regarding the transition from modulo \(2^k\) to \(2^{k+1}\) and the implications of the inductive hypothesis.

Fermat1
Messages
180
Reaction score
0
Prove that the order of 5 modulo $2^k$ is $2^{k-2}$ where $k$ is at least 3.
I thought probably induction is best bet.

For k=3 we can verify.

So for inductive step we need to show the order of 5 modulo $2^{k+1}$ is $2^{k-1}.
 
Physics news on Phys.org
Fermat said:
Prove that the order of 5 modulo $2^k$ is $2^{k-2}$ where $k$ is at least 3.
I thought probably induction is best bet.

For k=3 we can verify.

So for inductive step we need to show the order of 5 modulo $2^{k+1}$ is $2^{k-1}.

Induction will work. Try to use the fact that $a \equiv b \pmod{n} ~ \iff ~ a = b + kn$ for some $k \in \mathbb{Z}$. Applying this to the congruences obtained by the knowledge that $5$ has order $2^{k - 2}$ modulo $2^k$, you can derive equivalent congruences modulo $2^{k + 1}$ (hint: square both sides) and can then conclude.

Remember that $a$ has order $m$ modulo $n$ if and only if $m$ is the smallest positive integer such that $a^m \equiv 1 \pmod{n}$, so make sure you prove this carries over modulo $2^{k + 1}$, i.e. make sure show that the order of $5$ modulo $2^{k + 1}$ is exactly $2^{k - 1}$. Be rigorous.
 
Bacterius said:
Induction will work. Try to use the fact that $a \equiv b \pmod{n} ~ \iff ~ a = b + kn$ for some $k \in \mathbb{Z}$. Applying this to the congruences obtained by the knowledge that $5$ has order $2^{k - 2}$ modulo $2^k$, you can derive equivalent congruences modulo $2^{k + 1}$ (hint: square both sides) and can then conclude.

Remember that $a$ has order $m$ modulo $n$ if and only if $m$ is the smallest positive integer such that $a^m \equiv 1 \pmod{n}$, so make sure you prove this carries over modulo $2^{k + 1}$, i.e. make sure show that the order of $5$ modulo $2^{k + 1}$ is exactly $2^{k - 1}$. Be rigorous.

I got $5^{2^{k-1}}=5^2^{k-2}5^2^{k-2}$ mod($2^k$) but how do I get it mod $2^{k+1}$?

Also how to prove it is the smallest?
 
Bacterius said:
Induction will work. Try to use the fact that $a \equiv b \pmod{n} ~ \iff ~ a = b + kn$ for some $k \in \mathbb{Z}$. Applying this to the congruences obtained by the knowledge that $5$ has order $2^{k - 2}$ modulo $2^k$, you can derive equivalent congruences modulo $2^{k + 1}$ (hint: square both sides) and can then conclude.

Remember that $a$ has order $m$ modulo $n$ if and only if $m$ is the smallest positive integer such that $a^m \equiv 1 \pmod{n}$, so make sure you prove this carries over modulo $2^{k + 1}$, i.e. make sure show that the order of $5$ modulo $2^{k + 1}$ is exactly $2^{k - 1}$. Be rigorous.

sorry i can't get my code to work. Hopefully you can work it out
 
$$5^{2^{k-1}} = 5^{2^{k-2} \cdot 2} = \left ( 5^{2^{k-2}} \right)^2$$

What is $5^{2^{k-2}}$ modulo $2^k$ by hypothesis? Write it up as $5^{2^k} = a + b \cdot 2^k$. Substitute in above. What do you get?
 
mathbalarka said:
$$5^{2^{k-1}} = 5^{2^{k-2} \cdot 2} = \left ( 5^{2^{k-2}} \right)^2$$

What is $5^{2^{k-2}}$ modulo $2^k$ by hypothesis? Write it up as $5^{2^k} = a + b \cdot 2^k$. Substitute in above. What do you get?

yes I get about the inductive hypothesis but how do I move to mod $2^{k+1}$?
 
Did you even try out what I suggested?

$$5^{2^{k-1}} = \left ( 5^{2^{k-2}} \right) = \left ( 1 + 2^k \cdot l \right )^2 = 1 + 2^{k+1} \cdot l + 2^{2k} \cdot l^2$$

Which is 1 modulo $2^{k+1}$. I'd prefer you to carefully read over suggestions before asking questions. It's better to figure stuff out by yourself rather than asking people to do it for you :)
 
mathbalarka said:
Did you even try out what I suggested?

$$5^{2^{k-1}} = \left ( 5^{2^{k-2}} \right) = \left ( 1 + 2^k \cdot l \right )^2 = 1 + 2^{k+1} \cdot l + 2^{2k} \cdot l^2$$

Which is 1 modulo $2^{k+1}$. I'd prefer you to carefully read over suggestions before asking questions. It's better to figure stuff out by yourself rather than asking people to do it for you :)

ok thanks, I've now shown that. I'm struggling to show that it is in fact the order. I assume that $5^{2^{k-1}}=1+am$ for some $m$ less than $5^{2^{k+1}}$ and try and get a contradiction but I'm stuck trying that
 
Fermat said:
ok thanks, I've now shown that. I'm struggling to show that it is in fact the order. I assume that $5^{2^{k-1}}=1+am$ for some $m$ less than $5^{2^{k+1}}$ and try and get a contradiction but I'm stuck trying that

Hi Fermat,

I suggest showing (by induction on $k$) that $5^{2^{k-3}} \equiv 1 + 2^{k-1} \pmod{2^k}$ for all $k \ge 3$. In particular, this justifies $5^{2^{k-3}} \not\equiv 1 \pmod{2^k}$ for all $k \ge 3$. Assuming this assertion, if $k\ge 3$,

$$5^{2^{k-2}} = (5^{2^{k-3}})^2 \equiv (1 + 2^{k-1})^2\pmod{2^k} = 1 + 2^k + 2^{2k-2}\pmod{2^k} = 1 \pmod{2^k}.$$

The last congruence follows since $2k - 2 \ge k + 1$ for $k \ge 3$. Therefore, $5$ has order $2^{k-2}$ modulo $2^k$ for all $k\ge 3$.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
8
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K