I'm having some issues solving the following example -
For any positive integer, prove that:
$a^3 \equiv x \space mod \space 9$
where $x = \{0, 1, 8\}$
What I usually do with such examples is attempt and apply mathematical induction and create a gather solution in that way. My approach was something as follows:
- $a = 0$ then $0^3 \equiv x \space mod \space$ $(true)$
- $a' = a + 1$ then $a^3 + 3a^2 + 3a + 1 \equiv x \space mod \space 9$
therefore,
- $(x' \space mod \space 9) \space + a^3 + 3a^2 + 3a + 1 \equiv x \space mod \space 9$
However as the x itself is a set, it does not necessarily have equality in the upper equation (3rd), even though x, and x' consist of same elements in this case (from same set), elements are shifted by +1. Is there any way of proving equivalence with this method or do I need to resort to another one.
If so, what would be the most optimal way of searching for a solution in this case ?
Thank you
You don't want to do induction here.
As an alternative you may consider $a$ in $\mod 3$.
That is, consider $3$ cases: $a = 3k,3k+1, 3k+2$,
and in each case look at the remainder $a^3\mod 9$.