Sequences
Sequences
1 + (3k 2)
2
=
k(3k 1)
2
.
In fact, since this formula produces an integer for both positive and negative
integer values of k, we may use this formula to dene the (1)st pentagonal
number, the (2)nd pentagonal number, the (3)rd, and so on. For example,
writing out the kth pentagonal number for 4 k 4, we get:
26 15 7 2 0 1 5 12 22
Can you see what the 5th and (5)th pentagonal numbers are?
7
Pentagonal numbers also have some more surprising properties. For example,
comparing the following picture of triangle numbers and the preceding picture
of the pentagonal numbers, we see that every pentagonal number is one-third
of a triangular number:
Algebraically, we can see this by noting that 3 times the kth pentagonal number
is
3
k(3k 1)
2
=
(3k)(3k 1)
2
,
7
The 5th and (5)th pentagonal numbers are 35 and 40, respectively.
7
which is the (3k 1)th triangle number, when k > 0. (Can you see why?
Whats a formula for the nth triangle number?) In fact, even if k is negative,
(3k)(3k 1)
2
=
(3(k))(3(k) + 1)
2
is the (k)th triangle number, and con-
versely, its not much harder to see that if a triangle number is divisible by 3,
then when you divide it by 3, you get a pentagonal number, for either positive
or negative k.
Another, more profound, property of pentagonal numbers was discovered by
the great 18th century mathematician Leonhard Euler. To explain this property,
we need to describe the sequence of partition numbers. This is the sequence p(1),
p(2), p(3), etc., where p(n) is the number of ways you can express the integer n
as a sum of positive integers. For example, since
4 = 3 + 1 = 2 + 2 = 2 + 1 + 1 = 1 + 1 + 1 + 1, and
5 = 4 + 1 = 3 + 2 = 3 + 1 + 1 = 2 + 2 + 1 = 2 + 1 + 1 + 1 + 1 = 1 + 1 + 1 + 1 + 1,
p(4) = 5 and p(5) = 7.
In these terms, Eulers pentagonal number theorem says that for n > 1,
p(n) = p(n 1) +p(n 2) p(n 5) p(n 7) +p(n 12) +p(n 15) ,
where the sum runs over all pentagonal numbers less than n, including those
coming from k < 0. The signs alternate in the pattern +, +, , , and so on.
Incidentally, the hexagonal numbers 1, 6, 15, 28, . . . dened above may not
be the numbers that you would think of rst when you think about hexagons;
you may rst think of the hex numbers 1, 7, 19, 37, . . . :
It is an amusing fact that the sum of the rst n hex numbers is precisely n
3
(try it!). Why? Well, every hex number hexagon can be seen as a corner of a
cube, as indicated by the lines in the above hexagons. By nesting the rst n of
these corners, one inside another, we can assemble a complete nnn cube,
which of course contains n
3
dots.
7 Moessners Magic Sequence Generator; Sums
of Powers and Bernoulli (or really, Faulhaber)
numbers
Next, we consider a discovery made by mathematician Alfred Moessner in the
1950s. In the simplest case of Moessners magic, start by taking the positive
8
integers and boxing the even ones:
1 2 3 4 5 6 7 8 9 10 11 12
Now look at what happens when you sum up the unboxed terms, one by
one. (For reasons of uniformity, we also box these nal results.)
1 2 3 4 5 6 7 8 9 10 11 12
1 4 9 16 25 36
You get the squares, for exactly the same reasons (1+3+5+. . . ) as the previous
section.
Suppose that instead, we start by boxing every integer divisible by 3:
1 2 3 4 5 6 7 8 9 10 11 12
Summing up terms, like before, we get:
1 2 3 4 5 6 7 8 9 10 11 12
1 3 7 12 19 27 37 48
If we now box every integer coming right before a box in the rst row, and take
sums again, we get:
1 2 3 4 5 6 7 8 9 10 11 12
1 3 7 12 19 27 37 48
1 8 27 64
That is, we get the cubes.
Can you guess what happens if we start by boxing every fourth integer and
proceed as before? Try it!
8
Indeed, Moessners magic can be used to produce not only sequences of nth
powers, but also many other similar sequences. For example, if we begin by
boxing the triangular numbers 1, 3, 6, 10, . . . and take sums as before:
1 2 3 4 5 6 7 8 9 10
2 6 11 18 26 35
6 24 50
24
We get the factorial numbers 1 = 1!, 2 = 2!, 6 = 3!, 24 = 4!, . . . .
8
We get:
1 2 3 4 5 6 7 8 9 10 11 12
1 3 6 11 17 24 33 43 54
1 4 15 32 65 108
1 16 81
In other words, we get the sequence of fourth powers.
9
In general, the pattern is:
If we start by boxing: 1 + 1, 2 + 2, 3 + 3, . . .
the nal result is: 1 1, 2 2, 3 3, . . .
If we start by boxing: 1 + 1 + 1, 2 + 2 + 2, 3 + 3 + 3, . . .
the nal result is: 1 1 1, 2 2 2, 3 3 3, . . .
If we start by boxing: 1, 1 + 2, 1 + 2 + 3, . . .
the nal result is: 1, 1 2, 1 2 3, . . .
And so on.
Speaking of sums, you may remember that weve already discussed a formula
for 1 + +n (the triangular numbers):
1 + 2 + +n =
1
2
(n
2
+n).
But what if we consider sums of squares or cubes? Well, we also get similar
formulas:
1
2
+ 2
2
+ +n
2
=
1
3
n
3
+
3
2
n
2
+
1
2
n
,
1
3
+ 2
3
+ +n
3
=
1
4
n
4
+ 2n
3
+n
2
.
The general pattern seems to be that there are formulas that look like:
1
k1
+ 2
k1
+ +n
k1
=
1
k
n
k
+kn
k1
1
2
+. . .
,
but the question remains, what patterns can we nd in the coecients on the
right-hand side? The answer was rst studied by the 17th century mathemati-
cian Johann Faulhaber, and later given a more thorough treatment in the Ars
Conjectandi of the 18th century mathematician Jacob Bernoulli.
Faulhabers answer, as discussed by Bernoulli, says: Let
B
0
= 1, B
1
=
1
2
, B
2
=
1
6
, B
4
=
1
30
,
B
6
=
1
42
, B
8
=
1
30
, B
10
=
5
66
, . . .
and let B
3
= B
5
= B
7
= = 0.
9
Note that we write the terms in the sequence
B
0
, B
1
, B
2
, . . . as if they were powers, even though they arent, for reasons that
we hope will become clear in a moment.
9
It is more standard to use the value B
1
=
1
2
, but our choice of +
1
2
is harmless, and
make certain formulas more aesthetically pleasing to our eyes; see footnote 10.
10
In any case, if we adopt this strange manner of writing the sequence of
Bernoulli numbers, then we get the following wonderful formula:
1
k1
+ +n
k1
=
1
k
(n +B)
k
B
k
.
In other words,
1
k1
+ +n
k1
=
1
k
n
k
+
k
1
n
k1
B
1
+
k
2
n
k2
B
2
+ +
k
k 1
n
1
B
k1
=
1
k
n
k
+kn
k1
1
2
+
k
2
n
k2
1
6
+. . .
.
Note that we expand (n + B)
k
B
k
using the Binomial Theorem and our
strange way of writing terms from the sequence of Bernoulli numbers. For
example, taking k = 4, we get
(n +B)
4
B
4
= n
4
+ 4n
3
B
1
+ 6n
2
B
2
+ 4nB
3
+B
4
B
4
= n
4
+ 4n
3
1
2
+ 6n
2
1
6
+ 4n 0
= n
4
+ 2n
3
+n
2
,
which means that
1
3
+ 2
3
+ +n
3
=
1
4
(n
4
+ 2n
3
+n
2
),
as we saw before.
The Bernoulli numbers have many other notable and important properties.
For example, they can be computed using the startling formula (B1)
k
= B
k
for k 2:
B
2
2B
1
+ 1 = B
2
so we can solve for B
1
,
B
3
3B
2
+ 3B
1
1 = B
3
so we can solve for B
2
,
B
4
4B
3
+ 6B
2
4B
1
+ 1 = B
4
so we can solve for B
3
,
and so on.
10
There is also the surprising fact, discovered by 19th century math-
ematicians Karl von Staudt and Thomas Clausen, that if 2, 3, . . . are all of the
primes p with the property that p 1 divides 2n, then
B
2n
+
1
2
+
1
3
+ +
1
p
+. . .
is an integer (in fact, it is equal to 1 for 2n 12).
Really, we could go on and write an entire separate article, or even a book,
about the Bernoulli numbers but well end our own little sequence here.
10
If we use the more standard B
1
=
1
2
, this formula becomes (B + 1)
k
= B
k
, but the
idea is the same.
11
8 Some Places Where You Can Learn More (Did
you notice the pattern in the titles of the sec-
tions of this article?)
This article is based on a lecture given by JHC at Santa Clara University in
March 2005. If you want to nd out more about the sequences we have discussed
here, much of the material from this article and the lecture on which it based can
be found in The Book of Numbers, by JHC and Richard K. Guy [2]. Interested
Nerds should denitely continue their exploration of sequences there.
Another great resource of a dierent kind is the On-Line Encyclopedia of
Integer Sequences, or OEIS, which can be found at:
www.research.att.com/njas/sequences
The basic idea of this page is that if you enter the rst few terms of a sequence,
the OEIS will return all of the sequences it can think of that contain those terms
at the beginning. (As a lower priority, the OEIS will also return sequences that
contain those terms somewhere after the beginning.) Try 3, 1, 4, 1, 5, 9, 2,
1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 6, 28, 496, or 14, 18, 23, 28, 34, 42. You can also
search sequences by keyword; try pi or divisor. The OEIS is designed to be
used by researchers in mathematics, so the entries tend to be quite condensed,
to the point of sometimes being a bit cryptic; however, most Nerds should be
able to get some enjoyment out of it. There are also a few places in the OEIS
that give more extensive descriptions; for example,
www.research.att.com/njas/sequences/classic.html
gives a very nice description of the Wytho Array.
More advanced Nerds might also try looking at Ekhad and Zeilbergers proof
of the Cosmological Theorem [3] (code available from web page) and Calkin
and Wilfs description of the Stern sequence [1], both of which are available
online (see references). Finally, a truly adventurous (or college-level) Nerd with
access to both the Internet and a good college library might try looking at the
homepage of Clark Kimberling and the references contained therein:
http://faculty.evansville.edu/ck6/
Kimberling has written extensively on the Wytho Array and related phenom-
ena, such as interspersions and fractal sequences. The scholarly college-level
Nerd might do well to start with the articles on interspersions by Kimberling
[6] and by Fraenkel and Kimberling [4].
References
[1] Neil Calkin and Herbert S. Wilf. Recounting the rationals. The American
Mathematical Monthly, 107:360363, 2000. or at:
http://www.cis.upenn.edu/wilf/website/recounting.pdf.
12
[2] John H. Conway and Richard K. Guy. The Book of Numbers. Coperni-
cus/Springer-Verlag, 1996.
[3] Shalosh B. Ekhad and Doron Zeilberger. Proof of Conways lost cosmo-
logical theorem. Electronic Research Announcements of the American
Mathematical Society, 3:7882, 1997. or at:
http://www.math.temple.edu/zeilberg/mamarim/mamarimhtml/horton.html.
[4] Aviezri Fraenkel and Clark Kimberling. Generalized Wytho arrays, shues
and interspersions. Discrete Mathematics, 126:137149, 1994.
[5] Devin Kilminster. Primes in ten fractions. Unpublished; list of fractions can
be found by an Internet search for Kilminster primes ten fractions, 1999.
[6] Clark Kimberling. Interspersions and dispersions. Proceedings of the Amer-
ican Mathematical Society, 117:313321, 1993.
[7] David R. Morrison. A Stolarsky array of Wytho pairs. In A Collection
of Manuscripts Related to the Fibonacci Sequence, pages 134136. Fibonacci
Association, Santa Clara, CA, 1980.
13