In the last section in Chapter 2, we will see has some special features makes it different from for composite.

Let’s begin by analyzing and .

Concrete Examples

We have mentioned that elements in will be periodic. Now let’s try to list the minimal period of each element in and .

We have the following table:

Period
1
5
5
5
5

Well, we explain the table by explaining the meaning of the last row:

so the period of is 5.

Now as we can observed in the table, every non-zero element has the same period 5, this is a special feature of .

We can compute the products of two non-zero elements in and we list the results as a table:

We notice we cannot get by multiplying two non-zero elements. For any , we have can find a such that . This is also a special feature of .

We have the following table:

Period
1
6
3
2
3
6

The table can be explained similarly. We notice elements in have different periods.

Now we list the products of two non-zero elements in :

We notice that , so the product of two non-zero elements can be zero in . This does not happen in .

Also, we notice that for , we cannot find a such that .

Special Features for

Our observations can be generalized as the following:

Theorem

If is an integer, then the following statements are equivalent:

  1. is prime.
  2. For any and , there exists a such that .
  3. Whenever in , then or .
  4. For any and , the minimal period of is .

To prove the theorem, we will show:

Proof of

Assume is prime. Let with . By property of congruence classes, we know is not divisible by . Since is prime, by this property of prime numbers, we have . Then we can find integers such that . We can take the congruent classes of the equation, and we have .

Proof of

Assume and assume , then we can find a such that . Then we have:

Proof of

Let and . Assume the period of is . Then we have:

this implies . Now we know , so the minimal period of is .

Proof of

Assume is not prime. Then we can find such that . Then we have:

so the minimal period of is less than so is not . This is a contradiction.

Solving Linear Equations in

As alluded in the theorem, we can solve equations in by finding the multiplicative inverse, we would state this as a proposition:

Proposition

Let be a prime number, and let . If , then the equation has a unique solution .

Proof of Proposition

We have shown in the theorem that has a multiplicative inverse, so we can find a such that . Then we have:

By examining the table for , we can see not every linear equation has a solution, for example:

This equation has no solution in .

We actually know when exactly the equation has a unique solution, we would state this as a proposition:

Proposition

Let , and let . If , then the equation has a unique solution .

Proof of Proposition

We first shown there is a solution. Since , we can find integers such that , multiplying the equation by we have:

Now we know there is a solution [mb]. Next we show the solution is unique. Assume there are two solutions and , and let be the integers such that . Then we have:

In the homework, you will be investigating the solutions of linear equations in without demanding .

We list a concrete example in the next subsection to illustrate the possible solution behaviors of linear equations in .

Concrete Examples of Solving Linear Equations in

Solve the following equations in :

  1. .
  2. .
  3. .
Solution of 1.

We notice , but , so the equation has a solution. We rewrite the equation as:

Now we first solve , this amounts to find the minimal period of which is . So we have for some , since every time we have copies of we get . Then we know:

We can enumerate the different solutions in to distinguished elements in :

Solution of 2.

We notice , so the equation has a unique solution. We can find the multiplicative inverse of which is , since . Then we have:

Solution of 3.

We notice , but , so the equation has no solution, but we need to prove it, below is the proof:

Assume there is a solution , then for some we have:

This is a contradiction, so the equation has no solution.