The fraction 1/p expressed likewise in base q (rather than base 10) has similar effect, provided that p is not a prime factor of q.
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?
p is not a prime factor of q