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.

A386480 a(0) = 1; thereafter a(n) = n^2 - n + 2.

Original entry on oeis.org

1, 2, 4, 8, 14, 22, 32, 44, 58, 74, 92, 112, 134, 158, 184, 212, 242, 274, 308, 344, 382, 422, 464, 508, 554, 602, 652, 704, 758, 814, 872, 932, 994, 1058, 1124, 1192, 1262, 1334, 1408, 1484, 1562, 1642, 1724, 1808, 1894, 1982, 2072, 2164, 2258, 2354, 2452, 2552, 2654, 2758, 2864, 2972, 3082, 3194, 3308, 3424, 3542, 3662, 3784
Offset: 0

Views

Author

N. J. A. Sloane, Aug 01 2025

Keywords

Comments

Maximum number of regions that can be formed in the plane by drawing n circles (of any size), also maximum number of regions that can be formed on the sphere by drawing n great circles.
It is unfortunate that A014206 (which should have been this sequence) starts 2, 4, 8, 14, 22, 32, 44, 58, 74, 92, ... and has offset 0, but it is much too late to change it now. A014206 is, however, the main entry for this problem and the present sequence has been created to serve as a pointer to it.

References

  • L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 73, Problem 3.

Crossrefs

See A014206 for further information (including additional references).

Programs

Formula

From Stefano Spezia, Aug 01 2025: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 3.
G.f.: (1 - x + x^2 + x^3)/(1 - x)^3.
E.g.f.: exp(x)*(2 + x^2) - 1. (End)
a(n) = A003682(n) = A002061(n)+1, n>=2. - R. J. Mathar, Aug 03 2025