A144850 a(n) = number of distinct prime divisors (taken together) of numbers of the form x^2+x+1 for x<=10^n.
8, 74, 734, 7233, 71653, 712026, 7090655, 70686855, 705173825, 7038475146, 70278276834, 701910715473
Offset: 1
Keywords
Links
- Bernhard Helmes, Prime sieving on the polynomial f(n)=n^2+n+1.
Programs
-
Mathematica
d = 10; l = 0; p = 1; c = {}; a = {}; Do[k = p x^2 + x + 1; b = Divisors[k]; Do[If[PrimeQ[b[[n]]], AppendTo[a, b[[n]]]], {n, 1, Length[b]}]; If[x == d, a = Union[a]; l = Length[a]; d = 10 d; Print[l]; AppendTo[c, l]], {x, 1, 10000}]; c (*Artur Jasinski*)
Extensions
Fixed broken link, corrected and extended to agree with website. - Ray Chandler, Jun 30 2015