# Math Help - fermat's little theorem application

1. ## fermat's little theorem application

let p be an odd prime number, and suppose that p-1 is not divisible by 3. prove that, for every integer a, there is an integer x, such that
x^3 = a (mod p)

My approach is to use fermat's little theorem's proof, and get a^p=a(mod p)
from there we can compare a^p=a(mod p) to x^3 = a (mod p), so for every enteger a, there is an integer x, such that a=x.

What do you guys think?

2. Originally Posted by MathIsFun
let p be an odd prime number, and suppose that p-1 is not divisible by 3. prove that, for every integer a, there is an integer x, such that
x^3 = a (mod p)
I solved it with a little bit of group theory .