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.

A319906 Number of prime numbers of the form k^2 + k + 41 below 10^n.

Original entry on oeis.org

0, 8, 31, 86, 221, 581, 1503, 4149, 11355, 31985, 90940, 261081, 756081, 2208197, 6483148, 19132652, 56714624, 168806741, 504209234
Offset: 1

Views

Author

Amiram Eldar, Oct 01 2018

Keywords

Examples

			The first 8 values of k^2 + k + 41 for k = 0 to 7 are above 10 and below 100: 41, 43, 47, 53, 61, 71, 83, 97, thus a(1) = 0 and a(2) = 8.
		

References

  • Henri Cohen, Number Theory, Volume II: Analytic and Modern Tools, GTM Vol. 240, Springer, 2007; see pp. 208-209.

Crossrefs

Programs

  • Mathematica
    f[n_] := n^2 + n + 41; c = 0; k = 0; a={}; Do[f1 = f[k]; While[f1 < 10^n, If[PrimeQ[f1], c++]; k++; f1 = f[k]];  AppendTo[a, c], {n, 1, 10}]; a

Formula

According to Hardy and Littlewood's Conjecture F: a(n) ~ 2 * C * 10^(n/2)/(n*log(10)), where C = 3.319773... (Hardy-Littlewood constant for x^2+x+41, A221712).