Showing posts with label central polygonal numbers. Show all posts
Showing posts with label central polygonal numbers. Show all posts

Friday, 28 June 2019

Pancake Numbers

Yesterday, I turned 25652 days old. Among the many properties of this number is the one that I want to discuss in this post. Numbers Aplenty informed me that 25652 is a pancake number and the explanation of this term is contained in the screenshot from the website (Figure 1).

Figure 1

These numbers form OEIS A000124: central polygonal numbers (the Lazy Caterer's sequence): n(n+1)/2 + 1; or, maximal number of pieces formed when slicing a pancake with n cuts. In the OEIS link it's explained that:
The first line cuts the pancake into 2 pieces. For n > 1, the n-th line crosses every earlier line (avoids parallelism) and also avoids every previous line intersection, thus increasing the number of pieces by n. For 16 lines, for example, the number of pieces is 2 + 2 + 3 + 4 + 5 + ... + 16 = 137. These are the triangular numbers plus 1.
An example is shown in Figure 2 where examples of two cuts and three cuts are shown.

Figure 2

The day before I celebrated turning 25652 days old, I was inevitably 25651 days old and, as I duly noted, this was a triangular number and specifically the 226th such number. I didn't note the connection between the two numbers at the time but now I know that the maximum number of pancake slices that can be created from 226 slices is 25652.

OEIS A000217 is the sequence of triangular numbers that begin 0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, ... and it can be seen that indeed the terms of OEIS A000124 are simply the terms of this sequence with 1 added. Figure 3 shows the first six triangular numbers.

Figure 3

Every triangular number (a particular type of figurate number) can also be represented as a polygonal number. For example, 6 can be represented as a hexagonal number (see Figure 4).

Figure 4

The pancake number is one more than the triangular number and is thus the centered hexagonal number 7 (see Figure 5).

Figure 5

Returning to our pancake slices once again, Figure 6 shows a nice animation of the situation (borrowed from Wikipedia).

Figure 6


The definition included at the beginning of this post refers to pancake numbers as being "bidimensional versions of cake numbers". So what are cake numbers? Well, Wikipedia describes them thus:
In mathematics, the cake number, denoted by \(C_n\) is the maximum number of regions into which a 3-dimensional cube can be partitioned by exactly \(n \)planes. The cake number is so-called because one may imagine each partition of the cube by a plane as a slice made by a knife through a cube-shaped cake. 
The values of \(C_n\) for increasing \(n ≥ 0\) are given by 1, 2, 4, 8, 15, 26, 42, 64, 93, …(sequence A000125 in the OEIS) 
The cake numbers are the 3-dimensional analogue of the 2-dimensional lazy caterer's sequence; the difference between successive cake numbers also gives the lazy caterer's sequence.
Figure 7 shows an animation of the situation.

Figure 7: Animation showing the cutting planes
 required to cut a cake into 15 pieces with 4 slices
(representing the 5th cake number). Fourteen of the pieces
would have an external surface, with one
tetrahedron cut out of the middle.

If \(n!\) denotes the factorial, and we denote the binomial coefficients by$$ {n \choose k} = \frac{n!}{k! \, (n-k)!}$$and we assume that \(n\) planes are available to partition the cube, then the number is:$$C_n = {n \choose 3} + {n \choose 2} + {n \choose 1} + {n \choose 0} = \frac{1}{6}(n^3 + 5n + 6)$$The cake numbers up to 1000 are 1, 2, 4, 8, 15, 26, 42, 64, 93, 130, 176, 232, 299, 378, 470, 576, 697, 834, 988.

There is another type of pancake number entirely and that is well described on this website that has very clear visuals and from which I'll include two screenshots (see Figures 8 and 9).

Figure 8


Figure 9

So these pancake numbers constitute OEIS A058986 and it is a short sequence: 0, 1, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19.

Wednesday, 28 November 2018

Hogben Numbers

Today I turned 25441 days and one of the properties of this number is that it's a Hogben number, the 160th such number in fact. I discovered this fact thanks to Numbers Aplenty in that site's description of the properties of this number. A link provided there contains the following information about these sorts of numbers:

The \(n\)-th Hogben number \(H_n\) is equal to \(n^2-n+1\).

Figure 1: SPIRAL ARRANGEMENT OF INTEGERS

In a spiral arrangement of the integers, Hogben numbers appear on the main diagonal (see Figure 1). Hogben numbers are often called central polygonal numbers. \(H_n\) is also the maximal number of ones that a \(n \times n\) {0,1} matrix can contain and still be invertible (that is an inverse matrix exists). The first Hogben numbers are 1, 3, 7, 13, 21, 31, 43, 57, 73, 91, 111, 133, 157, 183, 211, 241, 273, 307, 343, 381, ...

The Hogben numbers are listed in OEIS A002061 as the central polygonal numbers: \(a(n) = n^2 - n + 1\) with some interesting comments about where these Hogben numbers crop up. Let's consider some examples:

EXAMPLE 1
For n>1: a(n) is the maximum total number of queens that can coexist without attacking each other on an [n+1] x [n+1] chessboard. Specifically, this will be a lone queen of one colour placed in any position on the perimeter of the board, facing an opponent's "army" of size a(n)-1. 
The normal chess board consists of 8 x 8 = 64 squares, so the value of \(n^2-n+1\) when \(n=7\), namely 43, will give the maximum possible number of such queens. Figure 2 confirms this to be the case:

Figure 2: one against 42

EXAMPLE 2
Since \( (n+1)^2 - (n+1) + 1 = n^2 + n + 1 \) then from 7 onwards these are also exactly the numbers that are represented as 111 in all number bases: \(111_2=7 \), \(111_3=13 \), ... 
This is quite an interesting property and so we have the result that:

111 in base 2 is 7
111 in base 3 is 13
111 in base 4 is 21
111 in base 5 is 31
111 in base 6 is 43
111 in base 7 is 57
111 in base 8 is 73
111 in base 9 is 91
111 in base 10 is 111
111 in base 11 is 133
111 in base 12 is 157
111 in base 13 is 183
111 in base 14 is 211
111 in base 15 is 241
111 in base 16 is 273

The next example is taken from this source:

EXAMPLE 3

Figure 3: Hogben numbers within an isosceles triangle of numbers

This is a nice visual result and reveals an easy way to generate these numbers in a manner similar to Pascal's triangle.

So what about Lancelot Thomas Hogben after whom these numbers were named. He turns out to have been quite an interesting character. To quote from his Wikipedia entry:
Lancelot Thomas Hogben (9 December 1895 – 22 August 1975) was a British experimental zoologist and medical statistician. He developed the African clawed frog (Xenopus laevis) as a model organism for biological research in his early career, attacked the eugenics movement in the middle of his career, and popularised books on science, mathematics and language in his later career.
It is in his very popular 1936 book about Mathematics titled "Mathematics for the Million" that he presumably deals with numbers of the form \(n^2-n+1\). I have a copy of this book in electronic format in my library of ebooks but I couldn't find anything that sheds further light on these particular numbers. Here is a quote from the introduction to his book:


Figure 4: Lancelot Thomas Hogben 
Hogben was a conscientious objector in World War 1 and was imprisoned for a time. He was fiercely opposed to the Eugenics movement that was very active in the 1920s and 1930s. In World War 2, he was responsible for the British Army's medical statistics. He is quoted as saying:
"I like Scandinavians, skiing, swimming and socialists who realise it is our business to promote social progress by peaceful methods. I dislike football, economists, eugenicists, Fascists, Stalinists, and Scottish conservatives. I think that sex is necessary and bankers are not".
In addition to his extensive writing, he edited The "Loom of Language" by his friend Frederick Bodmer. This was a book that I borrowed from the library in Pontefract, Yorkshire, when I lived there in 1983-4, and which I read and very much enjoyed.