login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A020149
Pseudoprimes to base 21.
1
4, 10, 20, 55, 65, 85, 221, 703, 793, 1045, 1105, 1852, 2035, 2465, 3781, 4630, 5185, 5473, 5995, 6541, 7363, 8695, 8965, 9061, 10585, 10945, 11647, 13019, 13051, 13981, 14491, 17767, 18103, 18721, 19345, 19669, 19909, 21667, 22681, 23155, 24013, 25465
OFFSET
1,1
COMMENTS
Composite numbers n such that 21^(n-1) == 1 (mod n).
MATHEMATICA
base = 21; t = {}; n = 1; While[Length[t] < 100, n++; If[! PrimeQ[n] && PowerMod[base, n-1, n] == 1, AppendTo[t, n]]]; t (* T. D. Noe, Feb 21 2012 *)
CROSSREFS
Cf. A001567 (pseudoprimes to base 2).
Sequence in context: A189586 A019498 A237626 * A056412 A032275 A220828
KEYWORD
nonn
STATUS
approved