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.

A386479 a(0) = 0; thereafter a(n) = 2*n^2 - 3*n + 5.

Original entry on oeis.org

0, 4, 7, 14, 25, 40, 59, 82, 109, 140, 175, 214, 257, 304, 355, 410, 469, 532, 599, 670, 745, 824, 907, 994, 1085, 1180, 1279, 1382, 1489, 1600, 1715, 1834, 1957, 2084, 2215, 2350, 2489, 2632, 2779, 2930, 3085, 3244, 3407, 3574, 3745, 3920, 4099, 4282, 4469, 4660, 4855, 5054, 5257, 5464, 5675, 5890, 6109, 6332, 6559, 6790
Offset: 0

Views

Author

N. J. A. Sloane, Jul 25 2025

Keywords

Comments

For n>0, a(n) is the maximum number of regions the plane can be divided into by drawing two n-chains (both finite and infinite regions are counted). See A386478 for further information.
We do not at present have an explicit construction that will achieve a(n) for n > 5.

Crossrefs

A column of the array in A386478.
Essentially the same (up to offset, initial terms, and the addition of a small constant) as several other sequences, including A014105, A014107, A084849, A096376, A236257, ....

Programs

  • Mathematica
    LinearRecurrence[{3,-3,1},{5,4,7},60] (* or *) a[n_]:=2n^2-3n+5;Array[a,60,0] (* James C. McMahon, Jul 26 2025 *)

Formula

From Stefano Spezia, Jul 26 2025: (Start)
G.f.: -x*(4-5*x+5*x^2) / (x-1)^3.
E.g.f.: exp(x)*(5 - x + 2*x^2) - 5. (End)

Extensions

Changed a(0) so as to match changes to A386478. - N. J. A. Sloane, Jul 26 2025