Fermat's little theorem says:
$a^{p-1} \equiv 1 \pmod p$
I have a equation which is similar to this but it's not covered by Fermat's theorem nor by Euler's theorem.
My equation is:
$2^{(p-1)/3} \equiv 1 \pmod p$
Of course this has to be true:
$1\equiv p\pmod 3 $
So is it possible to say when my equation is true? Which primes apply to my equation?
For the prime numbers 31, 43, ... the equation is correct.
For the prime numbers 7, 13, 19, 37, ... the equation is incorrect.
It looks randomly for me, which prime numbers apply.