̂îPQj
{0,1,2,3,4,5,6}@(mod7)
2^2=4
2^3=4E2=1
2^4=1E2=2 (n^4=n)
2^5=32=4
2^6=4E2=1
2^7=1E2=2 (n^7=n)
3^2=2
3^3=2E3=6
3^4=6E3=4
3^5=4E3=5
3^6=5E3=1
3^7=1E3=3 (n^7=n)
4^1=4
4^2=4E4=2
4^3=2E4=1
4^4=1E4=4 (n^4=n)
4^5=4E4=2
4^6=2E4=1
4^7=1E4=4 (n^7=n)
5^2=4
5^3=4E5=6
5^4=6E5=2
5^5=2E5=3
5^6=3E5=1
5^7=1E5=5 (n^7=n)
6^2=36=1
6^3=1E6=6 (n^3=n)
6^4=6E6=1
6^5=1E6=6 (n^5=n)
6^6=6E6=4
6^7=4E5=6 (n^7=n)
{0,1,2,3,4,5,6,7}@(mod8)
2^2=4
2^3=8=0 (NG)
3^2=9=1
3^3=1E3=3 (n^3=n)
4^2=0 (NG)
5^2=25=1
5^3=1E5=5 (n^3=n)
6^2=36=4
6^3=4E6=0 (NG)
7^2=49=1
7^3=1E7=7 (n^3=n)