Lazy caterer's sequence
Lazy caterer's sequence
Jump to navigation
Jump to search
The lazy caterer's sequence, more formally known as the central polygonal numbers, describes the maximum number of pieces of a disk (a pancake or pizza is usually used to describe the situation) that can be made with a given number of straight cuts. For example, three cuts across a pancake will produce six pieces if the cuts all meet at a common point inside the circle, but up to seven if they do not. This problem can be formalized mathematically as one of counting the cells in an arrangement of lines; for generalizations to higher dimensions, see arrangement of hyperplanes.
The analogue of this sequence in three dimensions is the cake number.
Contents
1 Formula and sequence
2 Proof
3 See also
4 References
5 External links
Formula and sequence[edit]
The maximum number p of pieces that can be created with a given number of cuts n, where n ≥ 0, is given by the formula
- p=n2+n+22.{displaystyle p={frac {n^{2}+n+2}{2}}.}
Using binomial coefficients, the formula can be expressed as
- p=1+(n+12)=(n0)+(n1)+(n2).{displaystyle p=1+{tbinom {n+1}{2}}={tbinom {n}{0}}+{tbinom {n}{1}}+{tbinom {n}{2}}.}
This sequence (sequence A000124 in the OEIS), starting with n=0{displaystyle n=0}, results in
1, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92, 106, 121, 137, 154, 172, 191, 211, ...
Each number equals 1 plus a triangular number.
Proof[edit]
When a circle is cut n times to produce the maximum number of pieces, represented as p = ƒ(n), the nth cut must be considered; the number of pieces before the last cut is ƒ(n − 1), while the number of pieces added by the last cut is n.
To obtain the maximum number of pieces, the nth cut line should cross all the other previous cut lines inside the circle, but not cross any intersection of previous cut lines. Thus, the nth line itself is cut in n − 1 places, and into n line segments. Each segment divides one piece of the (n − 1)-cut pancake into 2 parts, adding exactly n to the number of pieces. The new line can't have any more segments since it can only cross each previous line once. A cut line can always cross over all previous cut lines, as rotating the knife at a small angle around a point that is not an existing intersection will, if the angle is small enough, intersect all the previous lines including the last one added.
Thus, the total number of pieces after n cuts is
- f(n)=n+f(n−1).{displaystyle f(n)=n+f(n-1).}
This recurrence relation can be solved. If ƒ(n − 1) is expanded one term the relation becomes
- f(n)=n+(n−1)+f(n−2).{displaystyle f(n)=n+(n-1)+f(n-2).}
Expansion of the term ƒ(n − 2) can continue until the last term is reduced to ƒ(0), thus,
- f(n)=n+(n−1)+(n−2)+⋯+1+f(0).{displaystyle f(n)=n+(n-1)+(n-2)+cdots +1+f(0).}
Since f(0)=1{displaystyle f(0)=1}, because there is one piece before any cuts are made, this can be rewritten as
- f(n)=1+(1+2+3+⋯+n).{displaystyle f(n)=1+(1+2+3+cdots +n).}
This can be simplified, using the formula for the sum of an arithmetic progression:
- f(n)=1+n(n+1)2=n2+n+22.{displaystyle f(n)=1+{frac {n(n+1)}{2}}={frac {n^{2}+n+2}{2}}.}
See also[edit]
- Floyd's triangle
References[edit]
Moore, T. L. (1991), "Using Euler's formula to solve plane separation problems", The College Mathematics Journal, Mathematical Association of America, 22 (2): 125–130, doi:10.2307/2686448, JSTOR 2686448.mw-parser-output cite.citation{font-style:inherit}.mw-parser-output q{quotes:"""""""'""'"}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}.
Steiner, J. (1826), "Einige Gesetze über die Theilung der Ebene und des Raumes ("A Few Statements about the Division of the Plane and of Space")", J. Reine Angew. Math., 1: 349–364.
Wetzel, J. E. (1978), "On the division of the plane by lines" (PDF), American Mathematical Monthly, Mathematical Association of America, 85 (8): 647–656, doi:10.2307/2320333, JSTOR 2320333.
External links[edit]
- Weisstein, Eric W. "Circle Division by Lines". MathWorld.
Categories:
- Mathematical optimization
- Integer sequences
(window.RLQ=window.RLQ||).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.176","walltime":"0.282","ppvisitednodes":{"value":283,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":10235,"limit":2097152},"templateargumentsize":{"value":107,"limit":2097152},"expansiondepth":{"value":4,"limit":40},"expensivefunctioncount":{"value":2,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":6520,"limit":5000000},"entityaccesscount":{"value":2,"limit":400},"timingprofile":["100.00% 156.749 1 -total"," 86.32% 135.303 3 Template:Citation"," 9.32% 14.607 1 Template:Mathworld"," 6.20% 9.725 1 Template:Cite_web"," 3.79% 5.944 1 Template:OEIS"," 1.95% 3.055 1 Template:Nowrap"]},"scribunto":{"limitreport-timeusage":{"value":"0.094","limit":"10.000"},"limitreport-memusage":{"value":2567837,"limit":52428800}},"cachereport":{"origin":"mw1322","timestamp":"20181123162314","ttl":1900800,"transientcontent":false}}});mw.config.set({"wgBackendResponseTime":91,"wgHostname":"mw1257"});});