OFFSET
1,1
COMMENTS
a(13) > 150000.
EXAMPLE
With c = 49: there are exactly five bases b with b < 49 such that 49 is a Fermat pseudoprime, namely 18, 19, 30, 31 and 48. Since 49 is the smallest composite having exactly five such bases, a(5) = 49.
PROG
(PARI) for(n=1, 20, forcomposite(c=3, , b=2; i=0; while(b < c, if(Mod(b, c)^(c-1)==1, i++); b++); if(i==n, print1(c, ", "); break({1}))))
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Felix Fröhlich, Jan 26 2015
STATUS
approved