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!)
A114246 Number of Fermat pseudoprimes to bases 2 and 3 less than 10^n. 4
0, 0, 0, 7, 23, 66, 187, 485, 1272, 3270, 8139 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

LINKS

Table of n, a(n) for n=1..11.

Eric Weisstein's World of Mathematics, FermatPseudoprime.

Index entries for sequences related to pseudoprimes.

MATHEMATICA

Table[Count[Select[Range[2, 10^6], ! PrimeQ[#] && PowerMod[2, # - 1, #] == 1 && PowerMod[3, # - 1, #] == 1 &], x_ /; x < 10^n], {n, 6}]  (* Robert Price, Jun 09 2019 *)

PROG

(PARI) my(n=1, i=0); forcomposite(k=1, 1e20, if(Mod(2, k)^(k-1)==1 && Mod(3, k)^(k-1)==1, i++); if(k==10^n, print1(i, ", "); n++)) \\ Felix Fröhlich, Oct 11 2015

CROSSREFS

Cf. A052155.

Sequence in context: A266801 A066187 A259214 * A297315 A048457 A048458

Adjacent sequences:  A114243 A114244 A114245 * A114247 A114248 A114249

KEYWORD

nonn,more

AUTHOR

Eric W. Weisstein, Nov 18 2005

EXTENSIONS

a(9) from Felix Fröhlich, Oct 11 2015

a(10)-a(11) from Amiram Eldar, Sep 18 2021

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 23 10:58 EST 2022. Contains 350510 sequences. (Running on oeis4.)