In preparation of a test, there were a few things in class that still confused me on how my instructor got the answer:
Using the following definition for $U_n$:
There were two examples we did in class that I don't understand clearly:
And this one:
Order of [3] in $U_{20}$ = 4
[3]^2 = [9]
[3]^3 = [7]
[3]^4 = [1]
[17] = [-3] = 4
I would really like to know what the process is behind these examples to understand them for my test next week. If possible, how would I start with finding the order of [7] in $U_{40}$?
Thanks for reading, really appreciate the help!

