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!)
A237266 The n-th base 2 pseudoprime is also a pseudoprime to base 2 through base prime(a(n)). 1
1, 1, 1, 2, 1, 3, 1, 1, 2, 2, 3, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 2, 1, 1, 1, 1, 5, 1, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 5, 2, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 4, 1, 2, 2, 1, 1, 1, 2, 2, 1, 2, 3, 2, 2, 1, 5, 1, 1, 3, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Pseudoprime A001567(n) is a pseudoprime to base 2 through base prime(a(n)), where a(n) is this sequence.
LINKS
EXAMPLE
n=1, A001567[1]=341. 341 is base 2 pseudoprime but not base 3 pesudoprime. Since Prime(1)=2, a(1)=1;
...
n=6, A001567[1]=1729. 1729 is base 2, 3, 5 pseudoprimes but not base 7 pesudoprime. Since Prime(3)=5, a(6)=5.
MATHEMATICA
p = 1; fi = {}; While[Length[fi] < 87, p = p + 2; If[! PrimeQ[p], ct = 0; q = 2; While[c = q^(p - 1); Mod[c, p] == 1, q = NextPrime[q]]; If[q > 2, q = PrimePi[NextPrime[q, -1]]; AppendTo[fi, q]]]]; Print[fi]
CROSSREFS
Sequence in context: A351092 A138618 A140583 * A123507 A188804 A122580
KEYWORD
nonn
AUTHOR
Lei Zhou, Feb 05 2014
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 29 23:34 EDT 2024. Contains 375520 sequences. (Running on oeis4.)