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.

A386486 a(0) = 1; thereafter a(n) = 4*n^2 - 3*n + 2.

Original entry on oeis.org

1, 3, 12, 29, 54, 87, 128, 177, 234, 299, 372, 453, 542, 639, 744, 857, 978, 1107, 1244, 1389, 1542, 1703, 1872, 2049, 2234, 2427, 2628, 2837, 3054, 3279, 3512, 3753, 4002, 4259, 4524, 4797, 5078, 5367, 5664, 5969, 6282, 6603, 6932, 7269, 7614, 7967, 8328, 8697, 9074, 9459, 9852, 10253, 10662, 11079, 11504, 11937, 12378
Offset: 0

Views

Author

N. J. A. Sloane, Aug 27 2025

Keywords

Comments

Differs from A001107, A054552, and A343560 only by a small constant, but has its own entry because of an important geometric application (which will be added soon).

Crossrefs

Programs

  • Mathematica
    A386486[n_] := If[n == 0, 1, (4*n - 3)*n + 2]; Array[A386486, 100, 0] (* or *)
    LinearRecurrence[{3, -3, 1}, {1, 3, 12, 29}, 100] (* Paolo Xausa, Aug 27 2025 *)

Formula

From Elmo R. Oliveira, Sep 02 2025: (Start)
G.f.: (1 + 6*x^2 + x^3)/(1 - x)^3.
E.g.f.: exp(x)*(2 + x + 4*x^2) - 1.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 3. (End)