Wednesday, 15 April 2026

Exercise (6.2).6

Complete the following table which gives the orders of integers modulo 13.

Integer a123456789101112
Order of a(mod 13)












We use the same approach as the previous exercise.


The following table shows that $2^n \pmod {13}$ generates all the integers from 1 to 12.

n2^n2^n mod 13
122
244
388
4163
5326
66412
712811
82569
95125
10102410
1120487
1240961


We can therefore construct a table showing which indices of 2 modulo 13 generate each integer from 1 to 12.

Integer a123456789101112
s where 2^s ≡ a (mod 13)121429511381076


We now use the Order Formula (6.8) which states that if the order of $a \pmod n$ is $k$,  then the order of $a^s \pmod n$ is $k/\gcd(s,k)$. 

From the calculations above we have the order of 3 modulo 13 as $k=12$. By calculating $12/\gcd(s,12)$ for the $s$ associated with each $a^s$, we find the orders of every integer from 1 to 12.

The following table summarises these calculations, with the bottom row being the order of the numbers in the top row.

Integer a123456789101112
s where 2^s ≡ a (mod 13)121429511381076
k / gcd(s,k)1123641212436122

We note that these orders are factors of $\phi(13)=12$, as expected.