The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A114245 Number of Fermat pseudoprimes to base 3 less than 10^n. 7
0, 1, 6, 23, 78, 246, 760, 2155, 5804, 15472, 39871, 102839, 264461 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Michal Mikuš, Computing the Pseudoprimes up to 10^13, Cybernetics and Informatics, International Conference SSKI, February 10-13, 2010.
Eric Weisstein's World of Mathematics, Fermat Pseudoprime.
FORMULA
A005935(a(n)) < 10^n; A005935(a(n)+1) > 10^n. - R. J. Mathar, Feb 10 2007
MATHEMATICA
Table[Count[Select[Range[2, 10^6], ! PrimeQ[#] && PowerMod[3, # - 1, #] == 1 &], x_ /; x < 10^n], {n, 6}] (* Robert Price, Jun 09 2019 *)
PROG
(PARI) isFps(n, b)= { if(isprime(n), return(0) ) ; if( (b^(n-1)) % n == 1, return(1), return(0) ) ; } { a=0 ; e=1 ; for(n=1, 10^12, if( n == 10^e, e++ ; print(a) ; ) ; a += isFps(n, 3) ; ) ; } \\ R. J. Mathar, Feb 10 2007
CROSSREFS
Sequence in context: A058751 A034359 A220148 * A220238 A078798 A027043
KEYWORD
nonn,more
AUTHOR
Eric W. Weisstein, Nov 18 2005
EXTENSIONS
a(9)-a(10) from Washington Bomfim, Mar 02 2012
a(11)-a(12) from Hiroaki Yamanouchi, Sep 25 2015
a(13) from Mikuš (2010) added by Amiram Eldar, Mar 31 2024
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 June 2 06:35 EDT 2024. Contains 373032 sequences. (Running on oeis4.)