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”).

A090083
Even pseudoprimes to base 9.
14
4, 8, 28, 52, 286, 364, 532, 616, 946, 1036, 1288, 2806, 2926, 3052, 4376, 4636, 5356, 6364, 8744, 8866, 11476, 12124, 15964, 17446, 19096, 19684, 21196, 21736, 24046, 24388, 26596, 31876
OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Charles R Greathouse IV)
MATHEMATICA
Do[s=Mod[ -1+9^(n-1), n]; If[Equal[s, 0]&&!PrimeQ[n]&&EvenQ[n], Print[n]], {n, 1, 1000000}]
PROG
(PARI) is(n)=Mod(9, n)^(n-1)==1&&!isprime(n)&&n%2==0 \\ Charles R Greathouse IV, Apr 12 2012
(PARI) p=2; forprime(q=3, 1e8, forstep(n=p+1, q-1, 2, if(Mod(9, n)^(n-1)==1, print1(n", "))); p=q) \\ Charles R Greathouse IV, Apr 12 2012
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 25 2003
STATUS
approved