login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Charles R Greathouse IV, Table of n, a(n) for n = 1..1000

Index entries for sequences related to pseudoprimes

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

CROSSREFS

Cf. A020138.

Sequence in context: A117864 A020138 A306448 * A034515 A345747 A189546

Adjacent sequences:  A090080 A090081 A090082 * A090084 A090085 A090086

KEYWORD

nonn

AUTHOR

Labos Elemer, Nov 25 2003

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 17 16:21 EDT 2022. Contains 356189 sequences. (Running on oeis4.)