OFFSET
1,1
COMMENTS
EXAMPLE
The sequence w of primes p such that 429327^(p-1) == 1 (mod p^2) starts 1093, 3511, 2652379, 20793169. Since both 1093 and 3511 are terms of w, 429327 is in this sequence.
PROG
(PARI) my(p=1093, q=3511); for(n=2, 1e9, if(Mod(n, p^2)^(p-1)==1 && Mod(n, q^2)^(q-1)==1, my(x=2); while(x < n, x=2*x); if(x!=n, print1(n, ", "))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Mar 05 2016
STATUS
approved