What condition what must be satisfied in order for 1/p to be expressed in base q instead of base 10 and still have a period of p - 1?
Giuga's conjecture says that this equation is also a sufficient condition for p to be prime.