OFFSET
0,2
COMMENTS
Here is the sketched solution from Concrete Mathematics, second edition, p. 499. Consider n straight lines in general position in the plane. As shown in Section 1.2 of the book, this divides the plane into r(n) = n*(n+1)/2 + 1 regions, the maximum possible (cf. A000124). There are n*(n-1)/2 intersection points. Replace these n lines by extremely narrow zig-zags with segments sufficiently long that there are nine intersections between each pair of zigzags. Each of the n*(n-1)/2 intersection points now gives eight new regions. So a(n) = n*(n+1)/2 + 1 + 8*n*(n-1)/2 = 9*n^2/2 - 7*n/2 + 1. - N. J. A. Sloane, May 19 2025
Note that the requirements imposed on the zigzag-line are neither the weakest nor the strongest imaginable. To relax the conditions, one might allow non-parallel half-lines. To strengthen them, one might demand the connecting line segment to be perpendicular to both half lines but still allow an arbitrary length of it, or go even further and additionally demand that all line segments be of equal length. The two latter cases would lend the problem a metrical nature.
REFERENCES
R. L. Graham, D. E. Knuth, O. Patashnik, Concrete Mathematics, 2nd Edition, Chapter 1, Problem 13, pages 19 and 499, Addison-Wesley Publishing
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
David O. H. Cutler, Jonas Karlsson, and Neil J. A. Sloane, Cutting a Pancake with an Exotic Knife, arXiv:2511.15864[math.CO], v3, April 19 2026.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
Recurrence: a(n) = a(n-1) + 9*n - 8 for n > 0.
Closed Form: a(n) = 9*n^2/2 - 7*n/2 + 1.
O.g.f: -(1-x+9*x^2)/(-1+x)^3 = -17/(-1+x)^2-9/(-1+x)^3-9/(-1+x) . - R. J. Mathar, Dec 05 2007
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Jul 08 2012
E.g.f.: exp(x)*(2 + 2*x + 9*x^2)/2. - Stefano Spezia, May 20 2025
EXAMPLE
a(0)= 1 because the plane is one region.
MAPLE
seq((9*k^2-7*k+2)/2, k=0..42);
MATHEMATICA
CoefficientList[Series[(1-x+9*x^2)/(1-x)^3, {x, 0, 50}], x] (* Vincenzo Librandi, Jul 08 2012 *)
PROG
(Magma) [(9*n^2-7*n+2)/2: n in [0..50]]; // Vincenzo Librandi, Jul 08 2012
(PARI) a(n)=n*(9*n-7)/2+1 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Peter C. Heinig (algorithms(AT)gmx.de), Apr 08 2006
STATUS
approved
