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.

Showing 1-2 of 2 results.

A215814 a(n) = 60516*n^2 - 61008*n + 2481403.

Original entry on oeis.org

2481403, 2480911, 2601451, 2843023, 3205627, 3689263, 4293931, 5019631, 5866363, 6834127, 7922923, 9132751, 10463611, 11915503, 13488427, 15182383, 16997371, 18933391, 20990443, 23168527, 25467643, 27887791, 30428971, 33091183, 35874427, 38778703, 41804011, 44950351
Offset: 0

Views

Author

Robert Potter, Aug 28 2012

Keywords

Comments

The formula gives consecutive primes for n from 1 to 20, except n = 9.
This is the case m = 41*6 = 246 and k = 41 of the polynomial m^2*n^2 + (m^2 - 2*m)*n + (m^2*k) - (m-1).

Crossrefs

Cf. A214732.

Programs

Formula

G.f.: (2481403 - 4963298*x + 2602927*x^2)/(1-x)^3. - Bruno Berselli, Aug 28 2012
From Elmo R. Oliveira, Feb 09 2025: (Start)
E.g.f.: exp(x)*(2481403 - 492*x + 60516*x^2).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2. (End)

Extensions

Offset changed from 1 to 0 and a(0) added from Vincenzo Librandi, Aug 29 2012
Gf adapted to the offset by Bruno Berselli, Aug 29 2012

A258841 a(n) = 9*n^2 - 237*n + 1927.

Original entry on oeis.org

1927, 1699, 1489, 1297, 1123, 967, 829, 709, 607, 523, 457, 409, 379, 367, 373, 397, 439, 499, 577, 673, 787, 919, 1069, 1237, 1423, 1627, 1849, 2089, 2347, 2623, 2917, 3229, 3559, 3907, 4273, 4657, 5059, 5479, 5917, 6373, 6847, 7339, 7849, 8377, 8923, 9487, 10069
Offset: 0

Views

Author

Robert Potter, Jun 12 2015

Keywords

Comments

Empirical observation. All integers generated by polynomial for 0 < n <= 37 are prime with the exception of a(26) = 43^2 and a(29) = 43*61.

Crossrefs

Programs

  • Magma
    [9*n^2-237*n+1927: n in [0..50]]; // Vincenzo Librandi, Jun 22 2015
  • Mathematica
    Table[9 n^2 - 237 n + 1927, {n, 0, 25}] (* Michael De Vlieger, Jun 12 2015 *)
    LinearRecurrence[{3,-3,1},{1927,1699,1489},50] (* Harvey P. Dale, Oct 08 2024 *)
  • PARI
    vector(50, n, 9*n^2 - 237*n + 1927) \\ Michel Marcus, Jun 21 2015
    

Formula

From Vincenzo Librandi, Jun 22 2015: (Start)
G.f.: (1927 - 4082*x + 2173*x^2)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
E.g.f.: exp(x)*(1927 - 228*x + 9*x^2). - Elmo R. Oliveira, Feb 09 2025
Showing 1-2 of 2 results.