cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A114246 Number of Fermat pseudoprimes to bases 2 and 3 less than 10^n.

This page as a plain text file.
%I A114246 #27 Feb 16 2025 08:32:59
%S A114246 0,0,0,7,23,66,187,485,1272,3270,8139,20015,50090,125284,318729,
%T A114246 813380,2104139,5514763,14627441
%N A114246 Number of Fermat pseudoprimes to bases 2 and 3 less than 10^n.
%H A114246 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/FermatPseudoprime.html">Fermat Pseudoprime</a>.
%H A114246 <a href="/index/Ps#pseudoprimes">Index entries for sequences related to pseudoprimes</a>.
%t A114246 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 *)
%o A114246 (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
%Y A114246 Cf. A052155.
%K A114246 nonn,more
%O A114246 1,4
%A A114246 _Eric W. Weisstein_, Nov 18 2005
%E A114246 a(9) from _Felix Fröhlich_, Oct 11 2015
%E A114246 a(10)-a(11) from _Amiram Eldar_, Sep 18 2021
%E A114246 a(12)-a(19) from _Amiram Eldar_, Apr 22 2022