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.

A145292 Composite numbers generated by the Euler polynomial x^2 + x + 41.

Original entry on oeis.org

1681, 1763, 2021, 2491, 3233, 4331, 5893, 6683, 6847, 7181, 7697, 8051, 8413, 9353, 10547, 10961, 12031, 13847, 14803, 15047, 15293, 16043, 16297, 17071, 18673, 19223, 19781, 20633, 21797, 24221, 25481, 26123, 26447, 26773, 27101, 29111
Offset: 1

Views

Author

Artur Jasinski, Oct 06 2008

Keywords

Comments

The Euler polynomial x^2 + x + 41 gives primes for consecutive x from 0 to 39.
For numbers x for which x^2 + x + 41 is not prime see A007634.
Let P(x)=x^2 + x + 41. In view of identity P(x+P(x))=P(x)*P(x+1), all values of P(x+P(x)) are in the sequence. - Vladimir Shevelev, Jul 16 2012

Crossrefs

Intersection of A002808 and A202018; A010051.

Programs

  • Haskell
    a145292 n = a145292_list !! (n-1)
    a145292_list = filter ((== 0) . a010051) a202018_list
    -- Reinhard Zumkeller, Dec 09 2011
    
  • Mathematica
    a = {}; Do[If[PrimeQ[x^2 + x + 41], null,AppendTo[a, x^2 + x + 41]], {x, 0, 500}]; a
    Select[Table[x^2+x+41,{x,200}],CompositeQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 21 2018 *)
  • PARI
    for(n=1,1e3,if(!isprime(t=n^2+n+41),print1(t", "))) \\ Charles R Greathouse IV, Dec 08 2011

Formula

a(n) ~ n^2. [Charles R Greathouse IV, Dec 08 2011]