Quick viewing(Text Mode)

A Passion for Mathematics : Numbers, Puzzles, Madness, Religion, and the Quest for Reality / Clifford A

A Passion for Mathematics : Numbers, Puzzles, Madness, Religion, and the Quest for Reality / Clifford A

ffirs.qxd 5/13/05 11:21 AM Page iii

AA PassionPassion forfor MathematicsMathematics

Numbers, Puzzles, Madness, Religion, and the Quest for Reality

CLIFFORD A. PICKOVER

John Wiley & Sons, Inc. ffirs.qxd 5/13/05 11:21 AM Page vi ffirs.qxd 5/13/05 11:21 AM Page i

AA PassionPassion forfor MathematicsMathematics ffirs.qxd 5/13/05 11:21 AM Page ii

Works by Clifford A. Pickover

The Alien IQ Test Black Holes: A Traveler’s Guide Calculus and Pizza Chaos and Fractals Chaos in Wonderland Computers, Pattern, Chaos, and Beauty Computers and the Imagination Cryptorunes: Codes and Secret Writing Dreaming the Future Egg Drop Soup Future Health Fractal Horizons: The Future Use of Fractals Frontiers of Scientific Visualization The Girl Who Gave Birth to Rabbits Keys to Infinity Liquid Earth The Lobotomy Club The Loom of God The Mathematics of Oz Mazes for the Mind: Computers and the Unexpected Mind-Bending Visual Puzzles (calendars and card sets) The Paradox of God and the Science of Omniscience The Pattern Book: Fractals, Art, and Nature The Science of Aliens Sex, Drugs, Einstein, and Elves Spider Legs (with Piers Anthony) Spiral Symmetry (with Istvan Hargittai) Strange Brains and Genius Sushi Never Sleeps The Stars of Heaven Surfing through Hyperspace Time: A Traveler’s Guide Visions of the Future Visualizing Biological Information Wonders of Numbers The Zen of Magic Squares, Circles, and Stars ffirs.qxd 5/13/05 11:21 AM Page iii

AA PassionPassion forfor MathematicsMathematics

Numbers, Puzzles, Madness, Religion, and the Quest for Reality

CLIFFORD A. PICKOVER

John Wiley & Sons, Inc. ffirs.qxd 5/13/05 11:21 AM Page iv

Copyright © 2005 by Clifford A. Pickover. All rights reserved Published by John Wiley & Sons, Inc., Hoboken, New Jersey Published simultaneously in Canada Illustration credits: pages 91, 116, 137, 140, 142, 149, 150, 151, 157, 158, 159, 160, 162, 164, 167, 168, 169, 179, 199, 214, 215, 224, 225, 230, 274, 302, 336, 338, 341, 343, 345, and 348 by Brian C. Mans- field; 113, 114, 115, 145, 146, 332, 333, and 334 by Sam Loyd; 139 courtesy of Peter Hamburger and Edit Hepp; 141 by Stewart Raphael, Audrey Raphael, and Richard King; 155 by Patrick Grimm and Paul St. Denis; 165 and 166 from Magic Squares and Cubes by W. S. Andrews; 177 and 352 by Henry Ernest Dudeney; 200 by Bruce Patterson; 204 by Bruce Rawles; 206 by Jürgen Schmidhuber; 253 by Abram Hindle; 254, 255, 256, and 257 by Chris Coyne; 258 and 259 by Jock Cooper; 260 by Linda Bucklin; 261 by Sally Hunter; 262 and 263 by Jos Leys; 264 by Robert A. Johnston; and 266 by Cory and Catska Ench. Design and composition by Navta Associates, Inc. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permit- ted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646- 8600, or on the web at www.copyright.com. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: While the publisher and the author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or com- pleteness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor the author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, inci- dental, consequential, or other damages. For general information about our other products and services, please contact our Customer Care Depart- ment within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. For more information about Wiley products, visit our web site at www.wiley.com. Library of Congress Cataloging-in-Publication Data: Pickover, Clifford A. A passion for mathematics : numbers, puzzles, madness, religion, and the quest for reality / Clifford A. Pickover. p. cm. Includes bibliographical references and index. ISBN-13 978-0-471-69098-6 (paper) ISBN-10 0-471-69098-8 (paper) 1. Mathematics. I. Title QA39.3.P53 2005 510—dc22 2004060622 Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 ffirs.qxd 5/13/05 11:21 AM Page v

Ramanujan said that he received his formulas from God. This book is dedicated to all those who find Ramanujan’s π formulas beautiful to look at:

1 ∞ ()()!!1103+−− 26390nn 2 1()!! 4 n 1 = 8 ∑ π 42nn+ 3 n =0 99 32 (!)n

n 0 ()

−1  1 1 5  ∞ ()11n + 1 ( ) ( ) ( )   n 55 2 Poch() n6 Poch () n6 Poch () n 4  π = ∑    3    23 n =0 (!)n 125 

(where Poch(n) refers to the Pochhammer notation described in chapter 2) ffirs.qxd 5/13/05 11:21 AM Page vi ffirs.qxd 5/13/05 11:21 AM Page vii

“Truly the gods have not from the beginning revealed all things to mortals, but by long seeking, mortals make progress in discovery.”

—Xenophanes of Colophon (c. 500 B.C.)

“Every blade of grass has its angel that bends over it and whispers, ‘grow, grow.’” —Talmudic commentary Midrash Bereishis Rabbah, 10:6 ffirs.qxd 5/13/05 11:21 AM Page viii ftoc.qxd 5/17/05 9:37 AM Page ix Answers

ContentsContents Acknowledgments Introduction

Acknowledgments xiii

Introduction 1

1. Numbers, History, Society, and People 11

In which we encounter religious mathematicians, mad mathematicians, famous mathematicians, mathematical savants, quirky questions, fun trivia, brief biographies, mathematical gods, historical oddities, numbers and society, gossip, the history of mathematical notation, the genesis of numbers, and “What if?” questions.

2. Cool Numbers 45

In which we encounter fascinating numbers and strange number sequences. We’ll explore transcendental numbers, octonions, surreal numbers, obstinate numbers, cyclic numbers, Vibonacci numbers, perfect numbers, automorphic numbers, prime numbers, Wilson primes, palindromic primes, Fibonacci primes, Sophie Germain primes, Baxter-Hickerson primes, star-congruent primes, narcissistic numbers, amenable numbers, , p-adic numbers, large palindromes, , hyperfactorials, ,

ix ftoc.qxd 5/17/05 9:37 AM Page x

palindions and hyperpalindions, exotic-looking formulas for π, the Golay- Rudin-Shapiro sequence, the wonderful Pochhammer notation, and famous and curious math constants (such as Liouville’s constant, the Copeland- Erdös constant, Brun’s constant, Champernowne’s number, Euler’s gamma, Chaitin’s constant, the Landau-Ramanujan constant, Mills’s constant, the golden ratio, Apéry’s constant, and constants even more bizarre).

3. Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 111

In which we encounter treasure chests of zany and educational math problems that involve algebra, fractions, percentages, classic recreational puzzles, and various types of mathematical manipulation. Some are based on problems that are more than a thousand years old. Others are brand new. Get ready to sharpen your pencils and stretch your brains!

4. Geometry, Games, and Beyond 135

In which we explore tiles, patterns, position problems, arrays, Venn dia- grams, tic-tac-toe, other games played on boards, Königsberg bridges, catenaries, Loyd’s and Dudeney’s puzzles, Sherck’s surface, magic squares, lituuses, inside-out Mandelbrot sets, the Quadratrix of Hippias, hyper- spheres, fractal geese, Schmidhuber circles, Pappus’s Arbelos, Escher patterns, and chess knights.

5. Probability: Take Your Chances 209

In which we explore casinos, logic, guessing, decisions, combinations, permutations, competition, possibilities, games involving choice, monkeys typing Hamlet, Benford’s law, combinatorics, alien gambits, Rubik’s Cubes, card shuffles, marble mazes, nontransitive dice, dangerous movements of air molecules, the board game of the gods, and the tunnels of death and despair.

x Contents ftoc.qxd 5/17/05 9:37 AM Page xi

6. Big Numbers and Infinity 233

In which we explore very large numbers, the edges of comprehension, infin- ity, the Funnel of Zeus, the infinite gift, the omega crystal, the Skewes num- ber, the Monster group, Göbel’s number, the awesome quattuordecillion, the Erdös-Moser number, Archimedes’ famous “Cattle Problem,” classic para- doxes, Gauss’s “measurable infinity,” and Knuth’s arrow notation.

7. Mathematics and Beauty 251

In which we explore artistic forms generated from mathematics—delicate fungi, twenty-second-century cityscapes, fractal necklaces and seed pods, alien devices, and a rich panoply of patterns that exhibit a cascade of detail with increasing magnifications.

Answers 267

References 383

Index 387

Contents xi ftoc.qxd 5/17/05 9:37 AM Page xii Answers flast.qxd 5/13/05 11:00 AM Page xiii

Contents AcknowledgmentsAcknowledgments Introduction

I thank Brian Mansfield for his wonderful cartoon diagrams that appear throughout the book. Over the years, Brian has been helpful beyond compare. Numerous people have provided useful feedback and information relating to the solutions to my puzzles; these individuals include Dennis Gordon, Robert Stong, Paul Moskowitz, Joseph Pe, Daniel Dockery, Mark Nandor, Mark Ganson, Nick Hobson, Chuck Gaydos, Graham Cleverley, Jeffrey Carr, Jon Anderson, “Jaymz” James Salter, Chris Meyers, Pete Barnes, Steve Brazzell, Steve Blattnig, Edith Rudy, Eric Baise, Martie Saxenmeyer, Bob Ewell, Teja Krasek, and many more. I discussed some of the original puzzles in this book at my Pickover Discussion Group, located on the Web at groups.yahoo.com/group/CliffordPickover, and I thank the group members for their wonderful discussions and comments. Many of the fancy formulas derived by the Indian mathematician Srinivasa Ramanujan come from Calvin Clawson’s Mathematical Mysteries, Bruce Berndt’s Ramanujan’s Notebooks (volumes 1 and 2), and various Internet sources. With respect to some of the elegant formulas, Clawson cites Paulo Ribenboim’s The Book of Prime Number Records, second edition (New York: Springer, 1989), and The Little Book of Big Primes (New York: Springer, 1991). Calvin Clawson’s Mathematical Mysteries and David Wells’s various Penguin dictionaries provide a gold mine of mathematical concepts. A few problems in this book draw on, update, or revise problems in my earlier books, with infor- mation provided by countless readers who spend their lives tirelessly tackling mathematical conundrums. Other interesting sources and recommended reading are given in the reference section. Numerous Web sites are proliferating that give

xiii flast.qxd 5/13/05 11:00 AM Page xiv

comprehensive mathematical information, and my favorites include Wikipedia, the Free Encyclopedia (wikipedia.com), Ask Dr. Math (mathforum.org/dr.math/), The MacTutor History of Mathematics Archive (www.gap-system.org/~history/), The Published Data of Robert Munafo (www.mrob.com/pub/index.html), and MathWorld (mathworld. wolfram.com).

xiv Acknowledgments Answers

cintro.qxd 5/13/05 11:03 AM Page 1 Contents Acknowledgments IntrIntroductionoduction

“An equation means nothing to me unless it expresses a thought of God.” —Srinivasa Ramanujan (1887–1920)

The Ramanujan Code

“An intelligent observer seeing mathematicians at work might conclude that they are devotees of exotic sects, pursuers of esoteric keys to the universe.” —Philip Davis and Reuben Hersh, The Mathematical Experience, 1981

Readers of my popular mathematics books already know how I feel about numbers. Numbers are portals to other universes. Numbers help us glimpse a greater universe that’s normally shielded from our small brains, which have not evolved enough to fully comprehend the mathematical fabric of the universe. Higher mathematical discussions are a little like poetry. The Danish physicist Niels Bohr felt similarly about physics when he said, “We must be clear that, when it comes to atoms, language can be used only as in poetry.” When I think about the vast ocean of numbers that humans have scooped from the shoreless sea of reality, I get a little shiver. I hope you’ll shiver, too, as you glimpse numbers that range from , fractions, and radicals to stranger beasts like transcendental numbers, transfinite numbers, hyperreal numbers, surreal numbers, “nimbers,” quaternions, biquaternions, sedenions, and octonions. Of course, we have a hard time thinking of such queer entities, but from time to time, God places in our midst visionaries who function like the biblical prophets, those individuals

1 cintro.qxd 5/13/05 11:03 AM Page 2

who touched a universe inches away that most of us can barely perceive. Srinivasa Ramanujan was such a prophet. He plucked mathematical ideas from the ether, out of his dreams. Ramanujan was one of India’s greatest mathematical geniuses, and he believed that the gods gave him insights. These came in a flash. He could read the codes in the mathemati- cal matrix in the same way that Neo, the lead character in the movie The Matrix, could access mathematical symbols that formed the infrastructure of reality as they cascaded about him. I don’t know if God is a cryptogra- pher, but codes are all around us waiting to be deciphered. Some may take a thousand years for us to understand. Some may always be shrouded in mystery. In The Matrix Reloaded, the wise Architect tells Neo that his life is “the sum of a remainder of an unbalanced equation inherent in the program- ming of the matrix.” Similarly, the great Swiss architect Le Corbusier (1887–1965) thought that gods played with numbers in a matrix beyond our ordinary reality:

The chamois making a gigantic leap from rock to rock and alighting, with its full weight, on hooves supported by an ankle two centimeters in diameter: that is challenge and that is mathematics. The mathematical phenomenon always develops out of simple arithmetic, so useful in every- day life, out of numbers, those weapons of the gods: the gods are there, behind the wall, at play with numbers. (Le Corbusier, The Modulor, 1968)

A century ago, Ramanujan was The Matrix’s Neo in our own reality. As a boy, Ramanujan was slow to learn to speak. He seemed to spend all of his time scribbling strange symbols on his slate board or writing equations in his personal notebooks. Later in life, while working in the Accounts Department of the Port Trust Office at Madras, he mailed some of his equations to the renowned British mathematician G. H. Hardy. Hardy immediately tossed these equations into the garbage—but later retrieved them for a second look. Of the formulas, Hardy said that he had “never seen anything in the least like them before,” and that some had completely “defeated” him. He quickly realized that the equations “could only be writ- ten down by a mathematician of the highest class.” Hardy wrote in Ramanujan: Twelve Lectures that the formulas “must be true because, if they were not true, no one would have had the imagination to invent them.” Indeed, Ramanujan often stated a result that had come from some sense of intuition out of the unconscious realm. He said that an Indian

2 A Passion for Mathematics cintro.qxd 5/13/05 11:03 AM Page 3

goddess inspired him in his dreams. Not all of his formulas were perfect, but the avalanche of actual gems that he plucked from the mine of reality continues to boggle our modern minds. Ramanujan said that only in math- ematics could one have a concrete realization of God.

Blood Dreams and God’s Mathematicians

Repeatedly, [Western mathematicians] have been reduced to inchoate expressions of wonder and awe in the face of Ramanujan’s powers—have stumbled about, groping for words, in trying to convey the mystery of Ramanujan.” —Robert Kanigel, The Man Who Knew Infinity, 1991

According to Ramanujan, the gods left drops of vivid blood in his dreams. After he saw the blood, scrolls containing complicated mathematics unfolded before him. When Ramanujan awakened in the morning, he scribbled only a fraction of what the gods had revealed to him. In The Man Who Knew Infinity, Robert Kanigel suggests that the ease with which Ramanujan’s spirituality and mathematics intertwined signified a “peculiar flexibility of mind, a special receptivity to loose conceptual linkages and tenuous associations. . . . ” Indeed, Ramanujan’s openness to mystical visions suggested “a mind endowed with slippery, flexible, and elastic notions of cause and effect that left him receptive to what those equipped with purely logical gifts could not see.” Before we leave Ramanujan, I should point out that many other mathe- maticians, such as Carl Friedrich Gauss, James Hopwood Jeans, Georg Cantor, Blaise Pascal, and John Littlewood, believed that inspiration had a divine aspect. Gauss said that he once proved a theorem “not by dint of painful effort but so to speak by the grace of God.” For these reasons, I have included a number of brief pointers to religious mathematicians in chapter 1. I hope these examples dispel the notion that mathematics and religion are totally separate realms of human endeavor. Our mathematical description of the universe forever grows, but our brains and language skills remain entrenched. New kinds of mathematics are being discovered or created all the time, but we need fresh ways to think and to understand. For example, in the last few years, mathematical proofs have been offered for famous problems in the history of mathemat- ics, but the arguments have been far too long and complicated for experts

Introduction 3 cintro.qxd 5/13/05 11:03 AM Page 4

to be certain they are correct. The mathematician Thomas Hales had to wait five years before expert reviewers of his geometry paper—submitted to the journal Annals of Mathematics—finally decided that they could find no errors and that the journal should publish Hale’s proof, but only with a disclaimer saying they were not certain it was right! Moreover, mathe- maticians such as Keith Devlin have admitted (in the May 25, 2004, New York Times) that “the story of mathematics has reached a stage of such abstraction that many of its frontier problems cannot even be understood by the experts.” There is absolutely no hope of explaining these concepts to a popular audience. We can construct theories and do computations, but we may not be sufficiently smart to comprehend, explain, or communicate these ideas. A physics analogy is relevant here. When Werner Heisenberg worried that human beings might never truly understand atoms, Bohr was a bit more optimistic. He replied, “I think we may yet be able to do so, but in the process we may have to learn what the word understanding really means.” Today, we use computers to help us reason beyond the limita- tions of our own intuition. In fact, experiments with computers are lead- ing mathematicians to discoveries and insights never dreamed of before the ubiquity of these devices. Computers and computer graphics allow mathematicians to discover results long before they can prove them for- mally, thus opening entirely new fields of mathematics. Even simple computer tools, such as spreadsheets, give modern mathematicians power that Heisenberg, Einstein, and Newton would have lusted after. As just one example, in the late 1990s, computer programs designed by David Bailey and Helaman Ferguson helped to produce new formulas that related pi to log 5 and two other constants. As Erica Klarreich reports in the April 24, 2004, edition of Science News, once the computer had produced the formula, proving that it was correct was extremely easy. Often, simply knowing the answer is the largest hurdle to overcome when formulating a proof.

The Mathematical Smorgasbord

As the island of knowledge grows, the surface that makes contact with mystery expands. When major theories are overturned, what we thought was certain knowledge gives way, and knowledge touches upon mystery differently. This newly uncovered mystery may be

4 A Passion for Mathematics cintro.qxd 5/13/05 11:03 AM Page 5

humbling and unsettling, but it is the cost of truth. Creative scientists, philosophers, and poets thrive at this shoreline. —W. Mark Richardson, “A Skeptic’s Sense of Wonder,” Science, 1998

Despite all of my mystical talk about mathematics and the divine, mathe- matics is obviously practical. Mathematics has affected virtually every field of scientific endeavor and plays an invaluable role in fields ranging from science to sociology, from modeling ecological disasters and the spread of diseases to understanding the architecture of our brains. Thus, the fun and quirky facts, questions, anecdotes, equations, and puzzles in this book are metaphors for an amazing range of mathematical applica- tions and notations. In fact, this book is a smorgasbord of puzzles, fac- toids, trivia, quotations, and serious problems to consider. You can pick and choose from the various delicacies as you explore the platter that’s set before you. The problems vary in scope, so you are free to browse quickly among concepts ranging from Champernowne’s number to the Göbel number, a number so big that it makes a trillion pale in comparison. Some of the puzzles are arranged randomly to enhance the sense of adventure and surprise. My brain is a runaway train, and these puzzles and factoids are the chunks of cerebrum scattered on the tracks. Occasionally, some of the puzzles in this book will seem simple or frivolous; for example, Why does a circle have 360 degrees? Or, Is zero an even number? Or, What’s the hardest license plate to remember? Or, Could Jesus calculate 30 × 24? However, these are questions that fans often pose to me, and I love some of these “quirkies” the best. I agree with the Austrian physicist Paul Ehrenfest, who said, “Ask questions. Don’t be afraid to appear stupid. The stupid questions are usually the best and hardest to answer. They force the speaker to think about the basic problem.” In contrast to the “quirkies,” some of the puzzles I pose in this book are so insanely difficult or require such an exhaustive search that only a com- puter hacker could hope to answer them, such as my problem “Triangle of the Gods” (see page 61). These are questions with which I have challenged my geeky colleagues, and on which they have labored for hours and sometimes days. I think you’ll enjoy seeing the results. Don’t be scared if you have no chance in hell of solving them. Just enjoy the fact that intense people will often respond to my odd challenges with apparent glee. Most of the problems in

Introduction 5 cintro.qxd 5/13/05 11:03 AM Page 6

the book are somewhere in-between the extremes of simplicity and impos- sibility and can be solved with a pencil and paper. Chapter 3 contains most of the problems that teachers can enjoy with students. I will also tease you with fancy formulas, like those decorating the book from Ramanujan. Sometimes my goal is simply to delight you with wonderful-looking equations to ponder. Occasionally, a concept is repeated, just to see if you’ve learned your lesson and recognize a similar problem in a new guise. The different ways of getting to the same solution or concept reveal things that a single approach misses. I’ve been in love with recreational mathematics for many years because of its educational value. Contemplating even simple problems stretches the imagination. The usefulness of mathematics allows us to build space- ships and investigate the geometry of our universe. Numbers will be our first means of communication with intelligent alien races. Ancient peoples, like the Greeks, also had a deep fascination with num- bers. Could it be that in difficult times numbers were the only constant thing in an ever-shifting world? To the Pythagoreans, an ancient Greek sect, numbers were tangible, immutable, comfortable, eternal—more reliable than friends, less threatening than Zeus.

Explanation of Symbols

Non-Euclidean calculus and quantum physics are enough to stretch any brain, and when one mixes them with folklore, and tries to trace a strange background of multidimensional reality behind the ghoulish hints of the Gothic tales and the wild whispers of the chimney-corner, one can hardly expect to be wholly free from mental tension. —H. P. Lovecraft, “Dreams in the Witch House,” 1933

I use the following symbols to differentiate classes of entries in this book: signifies a thought-provoking quotation. signifies a mathematical definition that may come in handy through- out the book. signifies a mathematical factoid to stimulate your imagination.

6 A Passion for Mathematics cintro.qxd 5/13/05 11:03 AM Page 7

signifies a problem to be solved. Answers are provided at the back of the book. These different classes of entries should cause even the most right- brained readers to fall in love with mathematics. Some of the zanier prob- lems will entertain people at all levels of mathematical sophistication. As I said, don’t worry if you cannot solve many of the puzzles in the book. Some of them still challenge seasoned mathematicians. One common characteristic of mathematicians is an obsession with completeness—an urge to go back to first principles to explain their works. As a result, readers must often wade through pages of background before getting to the essential ingredients. To avoid this, each problem in my book is short, at most only a few paragraphs in length. One advantage of this format is that you can jump right in to experiment or ponder and have fun, without having to sort through a lot of verbiage. The book is not intended for mathematicians looking for formal mathematical explana- tions. Of course, this approach has some disadvantages. In just a para- graph or two, I can’t go into any depth on a subject. You won’t find much historical context or many extended discussions. In the interest of brevity, even the answer section may require readers to research or ponder a par- ticular puzzle further to truly understand it. To some extent, the choice of topics for inclusion in this book is arbi- trary, although these topics give a nice introduction to some classic and original problems in , algebra, geometry, probability, infin- ity, and so forth. These are also problems that I have personally enjoyed and are representative of a wider class of problems of interest to mathe- maticians today. Grab a pencil. Do not fear. Some of the topics in the book may appear to be curiosities, with little practical application or pur- pose. However, I have found these experiments to be useful and educa- tional, as have the many students, educators, and scientists who have written to me. Throughout history, experiments, ideas, and conclusions that originate in the play of the mind have found striking and unexpected practical applications. A few puzzles come from Sam Loyd, the famous nineteenth-century American puzzlemaster. Loyd (1841–1911) invented thousands of popular puzzles, which his son collected in a book titled Cyclopedia of Puzzles. I hope you enjoy the classics presented here.

Introduction 7 cintro.qxd 5/13/05 11:03 AM Page 8

Cultivating Perpetual Mystery

“Pure mathematics is religion.” —Friedrich von Hardenberg, circa 1801

A wonderful panoply of relationships in nature can be expressed using numbers and their ratios. Simple numerical patterns describe spiral floret formations in sunflowers, scales on pinecones, branching patterns on trees, and the periodic life cycles of insect populations. Mathematical theories have predicted phenomena that were not confirmed until years later. Maxwell’s equations, for example, predicted radio waves. Einstein’s field equations suggested that gravity would bend light and that the uni- verse is expanding. The physicist Paul Dirac once noted that the abstract mathematics we study now gives us a glimpse of physics in the future. In fact, his equations predicted the existence of antimatter, which was subse- quently discovered. Similarly, the mathematician Nikolai Lobachevsky said that “there is no branch of mathematics, however abstract, which may not someday be applied to the phenomena of the real world.” A famous incident involving Murray Gell-Mann and his colleagues demonstrates the predictive power of mathematics and symmetry regard- ing the existence of a subatomic particle known as the Omega-minus. Gell-Mann had drawn a symmetric, geometric pattern in which each posi- tion in the pattern, except for one empty spot, contained a known particle. Gell-Mann put his finger on the spot and said with almost mystical insight, “There is a particle.” His insight was correct, and experimentalists later found an actual particle corresponding to the empty spot. One of my favorite quotations describing the mystical side of science comes from Richard Power’s The Gold Bug Variations: “Science is not about control. It is about cultivating a perpetual condition of wonder in the face of something that forever grows one step richer and subtler than our latest theory about it. It is about reverence, not mastery.” Today, mathematics has permeated every field of scientific endeavor and plays an invaluable role in biology, physics, chemistry, economics, sociology, and engineering. Math can be used to help explain the structure of a rainbow, teach us how to make money in the stock market, guide a spacecraft, make weather forecasts, predict population growth, design buildings, quantify happiness, and analyze the spread of AIDS.

8 A Passion for Mathematics cintro.qxd 5/13/05 11:03 AM Page 9

Mathematics has caused a revolution. It has shaped our thoughts. It has shaped the way we think. Mathematics has changed the way we look at the world.

This introduction is dedicated to anyone who can decode the following secret message.

.. / - ...... -. -.- / - .... .- - / ...- . .-. -.-- / ..-. . .-- / --- ..-. / -.-- --- ..- / .-- .. .-.. .-.. / -... --- - ...... -. / - --- / -.. . -.-. --- -.. . / - ...... / ... . -.-. .-. . - / -- ...... - --. . .-.-.-

“I am the thought you are now thinking.” —Douglas Hofstadter, Metamagical Themas, 1985

Introduction 9 cintro.qxd 5/13/05 11:03 AM Page 10 c01.qxd 5/16/05 1:48 PM Page 11

11 Numbers,Numbers,2 History,History,3 Society,Society, andand PeoplePeople 4

N WHICH WE ENCOUNTER RELIGIOUS5 MATHEMATICIANS, MAD MATHEMATICIANS, Ifamous mathematicians, mathematical savants, quirky questions, fun trivia, brief biographies, mathematical gods, historical oddities, numbers and society, gossip, the history of mathematical6 notation, the genesis of numbers, and “What if?” questions.

Mathematics is the hammer that shatters the ice of our unconscious.

11 c01.qxd 5/16/05 1:48 PM Page 12 c01.qxd 5/16/05 1:48 PM Page 13

Ancient counting. Let’s The symbols of mathe- Math beyond humanity. start the book with a ques- matics. Mathematical notation “We now know that there tion. What is the earliest evi- shapes humanity’s ability to exist true propositions dence we have of humans efficiently contemplate math- which we can never formally counting? If this question is ematics. Here’s a cool factoid prove. What about proposi- too difficult, can you guess for you: The symbols + and tions whose proofs require whether the evidence is –, referring to addition and arguments beyond our before or after 10,000 B.C.— subtraction, first appeared in capabilities? What about and what the evidence might 1456 in an unpublished man- propositions whose proofs be? (See Answer 1.1.) uscript by the mathematician require millions of pages? Johann Regiomontanus Or a million, million (a.k.a. Johann Müller). The pages? Are there proofs plus symbol, as an abbrevia- that are possible, but beyond Mathematics and beauty. tion for the Latin et (and), us?” (Calvin Clawson, I’ve collected mathematical was found earlier in a manu- Mathematical Mysteries). quotations since my teenage script dated 1417; however, years. Here’s a favorite: the downward stroke was not “Mathematics, rightly quite vertical. viewed, possesses not only The multiplication symbol. truth, but supreme beauty— In 1631, the multiplication a beauty cold and austere, Mathematics and reality. symbol × was introduced by like that of sculpture” Do humans invent mathemat- the English mathematician (Bertrand Russell, Mysticism ics or discover mathematics? William Oughtred and Logic, 1918). (See Answer 1.2.) (1574–1660) in his book Keys to Mathematics, pub- lished in London. Inciden- Mathematics and the universe. Here is a deep thought to start tally, this Anglican minister our mathematical journey. Do you think humanity’s long-term is also famous for having fascination with mathematics has arisen because the universe invented the slide rule, is constructed from a mathematical fabric? We’ll approach which was used by genera- this question later in the chapter. For now, you may enjoy tions of scientists and knowing that in 1623, Galileo Galilei echoed this belief in a mathematicians. The slide mathematical universe by stating his credo: “Nature’s great rule’s doom in the mid- book is written in mathematical symbols.” Plato’s doctrine was 1970s, due to the pervasive that God is a geometer, and Sir James Jeans believed that God influx of inexpensive pocket experimented with arithmetic. Isaac Newton supposed that the calculators, was rapid and planets were originally thrown into orbit by God, but even unexpected. after God decreed the law of gravitation, the planets required continual adjustments to their orbits.

Numbers, History, Society, and People 13 c01.qxd 5/16/05 1:48 PM Page 14

Math and madness. Many Mathematicians and religion. Over the years, many of my mathematicians throughout readers have assumed that famous mathematicians are not reli- history have had a trace of gious. In actuality, a number of important mathematicians madness or have been eccen- were quite religious. As an interesting exercise, I conducted an tric. Here’s a relevant quota- Internet survey in which I asked respondents to name impor- tion on the subject by the tant mathematicians who were also religious. Isaac Newton British mathematician and Blaise Pascal were the most commonly cited religious John Edensor Littlewood mathematicians. (1885–1977), who suffered In many ways, the mathematical quest to understand infin- from depression for most of ity parallels mystical attempts to understand God. Both reli- his life: “Mathematics is a gion and mathematics struggle to express relationships dangerous profession; an between humans, the universe, and infinity. Both have arcane appreciable proportion of us symbols and rituals, as well as impenetrable language. Both goes mad.” exercise the deep recesses of our minds and stimulate our imagination. Mathematicians, like priests, seek “ideal,” immutable, nonmaterial truths and then often venture to apply these truths in the real world. Are mathematics and religion Mathematics and murder. the most powerful evidence of the inventive genius of the What triple murderer was human race? In “Reason and Faith, Eternally Bound” (Decem- also a brilliant French mathe- ber 20, 2003, New York Times, B7), Edward Rothstein notes matician who did his finest that faith was the inspiration for Newton and Kepler, as well work while confined to a as for numerous scientific and mathematical triumphs. “The hospital for the criminally conviction that there is an order to things, that the mind can insane? (See Answer 1.3.) comprehend that order and that this order is not infinitely mal- leable, those scientific beliefs may include elements of faith.” In his Critique of Pure Reason, Immanuel Kant describes Creativity and madness. how “the light dove, cleaving the air in her free flight and feel- “There is a theory that ing its resistance against her wings, might imagine that its creativity arises when indi- flight would be freer still in empty space.” But if we were to viduals are out of sync with remove the air, the bird would plummet. Is faith—or a cosmic their environment. To put it sense of mystery—like the air that allows some seekers to simply, people who fit in soar? Whatever mathematical or scientific advances humans with their communities have make, we will always continue to swim in a sea of mystery. insufficient motivation to risk their psyches in creating something truly new, while They have less to lose and Pascal’s mystery. “There those who are out of sync more to gain” (Gary Taubes, is a God-shaped vacuum in are driven by the constant “Beyond the Soapsuds Uni- every heart” (Blaise Pascal, need to prove their worth. verse,” 1977). Pensées, 1670).

14 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 15

Leaving mathematics and he was not certain it was methods after flashes of approaching God. What famous original. The Danish physicist insight that came in dreams. French mathematician and Niels Bohr conceived the The dreams of Dmitry teenage prodigy finally model of an atom from a Mendeleyev, Friedrich decided that religion was dream. Elias Howe received August Kekulé, and Otto more to his liking and joined in a dream the image of the Loewi inspired scientific his sister in her convent, kind of needle design breakthroughs. It is not an where he gave up mathemat- required for a lock-stitch exaggeration to suggest that ics and social life? (See sewing machine. René many scientific and mathe- Answer 1.4.) Descartes was able to matical advances arose from advance his geometrical the stuff of dreams.

Ramanujan’s gods. As Blaise Pascal (1623–1662), a Frenchman, was a geometer, a mentioned in this book’s probabilist, a physicist, a philosopher, and a combinatorist. He introduction, the mathemati- was also deeply spiritual and a leader of the Jansenist sect, a cian Srinivasa Ramanujan Calvinistic quasi-Protestant group within the Catholic Church. (1887–1920) was an ardent He believed that it made sense to become a Christian. If the follower of several Hindu person dies, and there is no God, the person loses nothing. If deities. After receiving there is a God, then the person has gained heaven, while skep- visions from these gods in the tics lose everything in hell. form of blood droplets, Legend has it that Pascal in his early childhood sought to Ramanujan saw scrolls that prove the existence of God. Because Pascal could not simply contained very complicated command God to show Himself, he tried to prove the exis- mathematics. When he woke tence of a devil so that he could then infer the existence of from his dreams, he set down God. He drew a pentagram on the ground, but the exercise on paper only a fraction of scared him, and he ran away. Pascal said that this experience what the gods showed him. made him certain of God’s existence. Throughout history, cre- One evening in 1654, he had a two-hour mystical vision that ative geniuses have been open he called a “night of fire,” in which he experienced fire and “the to dreams as a source of God of Abraham, Isaac, and Jacob . . . and of Jesus Christ.” inspiration. Paul McCartney Pascal recorded his vision in his work “Memorial.” A scrap of said that the melody for the paper containing the “Memorial” was found in the lining of his famous Beatles’ song “Yester- coat after his death, for he carried this reminder about with him day,” one of the most popular always. The three lines of “Memorial” are songs ever written, came to him in a dream. Apparently, Complete submission to Jesus Christ and to my director. the tune seemed so beautiful Eternally in joy for a day’s exercise on the earth. and haunting that for a while May I not forget your words. Amen.

Numbers, History, Society, and People 15 c01.qxd 5/16/05 1:48 PM Page 16

Transcendence. “Much of quantify, at a glance, without Calculating π. Which the history of science, like having to individually count nineteenth-century British the history of religion, is a them? (See Answer 1.5.) boarding school supervisor history of struggles driven by spent a significant portion of power and money. And yet, his life calculating π to 707 this is not the whole story. Circles. Why are there 360 places and died a happy man, Genuine saints occasionally degrees in a circle? (See despite a sad error that was play an important role, both Answer 1.6.) later found in his calcula- in religion and science. For tions? (See Answer 1.8.) many scientists, the reward for being a scientist is not the The mystery of Ramanujan. power and the money but the After years of working The special number 7. In chance of catching a glimpse through Ramanujan’s note- ancient days, the number 7 of the transcendent beauty of books, the mathematician was thought of as just another nature” (Freeman Dyson, in Bruce Berndt said, “I still way to signify “many.” Even the introduction to Nature’s don’t understand it all. I may in recent times, there have Imagination). be able to prove it, but I don’t been tribes that used no num- know where it comes from bers higher than 7. and where it fits into the rest In the 1880s, the German The value of eccentricity. of mathematics. The enigma ethnologist Karl von Steinen “That so few now dare to be of Ramanujan’s creative described how certain South eccentric, marks the chief process is still covered by a American Indian tribes had danger of our time” (John curtain that has barely been very few words for numbers. Stuart Mill, nineteenth- drawn” (Robert Kanigel, The As a test, he repeatedly asked century English philosopher). Man Who Knew Infinity, them to count ten grains of 1991). corn. They counted “slowly

Counting and the mind. I The world’s most forgettable license plate? Today, mathematics quickly toss a number of mar- affects society in the funniest of ways. I once read an article bles onto a pillow. You may about someone who claimed to have devised the most forget- stare at them for an instant to table license plate, but the article did not divulge the secret determine how many marbles sequence. What is the most forgettable license plate? Is it a are on the pillow. Obviously, random sequence of eight letters and numbers—for example, if I were to toss just two mar- 6AZL4QO9 (the maximum allowed in New York)? Or perhaps bles, you could easily deter- a set of visually confusing numbers or letters—for example, mine that two marbles sit on MWNNMWWM? Or maybe a like 01001100. the pillow. What is the largest What do you think? What would a mathematician think? (See number of marbles you can Answer 1.7.)

16 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 17

but correctly to six, but when Isaac Newton (1642–1727), an Englishman, was a mathe- it came to the seventh grain matician, a physicist, an astronomer, a coinventor of calculus, and the eighth, they grew and famous for his law of gravitation. He was also the author tense and uneasy, at first of many books on biblical subjects, especially prophecy. yawning and complaining of a Perhaps less well known is the fact that Newton was a cre- headache, then finally avoided ationist who wanted to be known as much for his theological the question altogether or sim- writings as for his scientific and mathematical texts. Newton ply walked off.” Perhaps seven believed in a Christian unity, as opposed to a trinity. He devel- means “many” in such com- oped calculus as a means of describing motion, and perhaps mon phrases as “seven seas” for understanding the nature of God through a clearer under- and “seven deadly sins.” standing of nature and reality. He respected the Bible and (These interesting facts come accepted its account of Creation. from Adrian Room, The Guin- ness Book of Numbers, 1989.)

Genius and eccentricity. James Hopwood Jeans Carl Friedrich Gauss “The amount of eccentricity (1877–1946) was an applied (1777–1855), a German, was in a society has been propor- mathematician, a physicist, a mathematician, an tional to the amount of and an astronomer. He some- astronomer, and a physicist genius, material vigor and times likened God to a math- with a wide range of contri- moral courage which it con- ematician and wrote in The butions. Like Ramanujan, tains” (John Stuart Mill, On Mysterious Universe (1930), after Gauss proved a theorem, Liberty, 1869). “From the intrinsic evidence he sometimes said that the of his creation, the Great insight did not come from Architect of the Universe “painful effort but, so to Mathematics and God. “The now begins to appear as a speak, by the grace of God.” Christians know that the math- pure mathematician.” He has He also once wrote, “There ematical principles, according also written, “Physics tries to are problems to whose solu- to which the corporeal world discover the pattern of events tion I would attach an infi- was to be created, are co- which controls the phenom- nitely greater importance eternal with God. Geometry ena we observe. But we can than to those of mathematics, has supplied God with the never know what this pattern for example, touching ethics, models for the creation of the means or how it originates; or our relation to God, or world. Within the image of and even if some superior concerning our destiny and God it has passed into man, intelligence were to tell us, our future; but their solution and was certainly not received we should find the explana- lies wholly beyond us and within through the eyes” tion unintelligible” (Physics completely outside the (Johannes Kepler, The and Philosophy, 1942). province of science.” Harmony of the World, 1619).

Numbers, History, Society, and People 17 c01.qxd 5/16/05 1:48 PM Page 18

Leonhard Euler (1707–1783) was a prolific Swiss mathe- found wide applications in matician and the son of a vicar. Legends tell of Leonhard the design of computers. Euler’s distress at being unable to mathematically prove the existence of God. Many mathematicians of his time consid- ered mathematics a tool to decipher God’s design and codes. The value of puzzles. “It is a Although he was a devout Christian all his life, he could not wholesome plan, in thinking find the enthusiasm for the study of theology, compared to that about logic, to stock the mind of mathematics. He was completely blind for the last seven- with as many puzzles as pos- teen years of his life, during which time he produced roughly sible, since these serve much half of his total output. the same purpose as is served Euler is responsible for our common, modern-day use of by experiments in physical many famous mathematical notations—for example, f(x) for a science” (Bertrand Russell, function, e for the base of natural logs, i for the square root of Mind, 1905). –1, π for pi, Σ for summation. He tested Pierre de Fermat’s conjecture that numbers of the form 2n + 1 were always prime if n is a power of 2. Euler verified this for n = 1, 2, 4, 8, and 16, and showed that the next case 232 + 1 = 4,294,967,297 = A mathematical nomad. 641 × 6,700,417, and so is not prime. What legendary mathemati- cian, and one of the most prolific mathematicians in history, was so devoted to or algebraic form. . . . It is George Boole (1815–1864), math that he lived as a nomad impossible to separate an Englishman, was a logi- with no home and no job? Boole’s religious beliefs cian and an algebraist. Like Sexual contact revolted him; from his mathematics.” Ramanujan and other mysti- even an accidental touch by Boole often spoke of his cal mathematicians, Boole anyone made him feel uncom- almost photographic mem- had “mystical” experiences. fortable. (See Answer 1.9.) David Noble, in his book The ory, describing it as “an Religion of Technology, arrangement of the mind for notes, “The thought flashed every fact and idea, which I upon him suddenly as he was can find at once, as if it were Marin Mersenne (1588– walking across a field that his in a well-ordered set of 1648) was another mathe- ambition in life was to drawers.” matician who was deeply explain the logic of human Boole died at age forty- religious. Mersenne, a thought and to delve analyti- nine, after his wife mistak- Frenchman, was a theologian, cally into the spiritual enly thought that tossing a philosopher, a number theo- aspects of man’s nature buckets of water on him and rist, a priest, and a monk. He [through] the expression of his bed would cure his flu. argued that God’s majesty logical relations in symbolic Today, Boolean algebra has would not be diminished had

18 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 19

Mirror phobia. What brilliant, handsome mathematician so hundred pages to write on hated mirrors that he covered them wherever he went? (See paper using an ordinary font. Answer 1.10.) Shafer, age twenty-six, helped find the number as a volunteer on a project called What is a mathematician? “A mathematician is a blind man the Great Internet Mersenne in a dark room looking for a black cat which isn’t there” Prime Search. Tens of thou- (Charles Darwin). sands of people volunteer the use of their personal comput- ers in a worldwide project Animal math. Can animals count? (See Answer 1.11.) that harnesses the power of hundreds of thousands of He created just one world, mated the future of comput- computers, in effect creating instead of many, because the ing power by stating that all a supercomputer capable of one world would be infinite eternity would not be suffi- performing trillions of calcu- in every part. His first publi- cient to decide if a 15- or lations per second. Shafer cations were theological 20-digit number were prime. used an ordinary Dell com- studies against atheism and Unfortunately, the prime puter in his office for nine- skepticism. number values for p that teen days. What would Mersenne was fascinated make 2p – 1 a prime number Mersenne have thought of by prime numbers (numbers seem to form no regular this large beast? like 7 that were divisible only sequence. For example, the In 2005, the German eye by themselves and 1), and he Mersenne number is prime surgeon Martin Nowak, also tried to find a formula that he when p = 2, 3, 5, 7, 13, 17, part of the Great Internet could use to find all primes. 19, . . . Notice that when p Search, dis- Although he did not find such is equal to the prime number covered the forty-second

a formula, his work on 11, M11 = 2,047, which is Mersenne prime number, “Mersenne numbers” of the not prime because 2,047 = 225,964,951 – 1, which has over form 2p – 1, where p is a 23 × 89. seven million digits. Nowak’s prime number, continues to The fortieth Mersenne 2.4-GHz Pentium-4 computer interest us today. Mersenne prime was discovered in spent roughly fifty days ana- numbers are the easiest type 2003, and it contained lyzing the number before of number to prove prime, so 6,320,430 digits! In particu- reporting the find. The Elec- they are usually the largest lar, the Michigan State Uni- tronic Frontier Foundation, a primes of which humanity is versity graduate student U.S. Internet campaign aware. Michael Shafer discovered group, has promised to give Mersenne himself found that 220,996,011 – 1 is prime. $100,000 to whoever finds several prime numbers of the The number is so large that it the first ten-million-digit form 2p – 1, but he underesti- would require about fifteen prime number.

Numbers, History, Society, and People 19 c01.qxd 5/16/05 1:48 PM Page 20

Mathematics and God. each of the books in the Mystery mathematician. “Before creation, God did Bible. Knuth also includes Around A.D. 500, the Greek just pure mathematics. Then calligraphic renderings of the philosopher Metrodorus gave He thought it would be a verses. Knuth himself has us the following puzzle that pleasant change to do some said, “It’s tragic that scientific describes the life of a famous applied” (John Edensor Lit- advances have caused many mathematician: tlewood, A Mathematician’s people to imagine that they A certain man’s boyhood Miscellany, 1953). know it all, and that God is 1 lasted ⁄6 of his life; he irrelevant or nonexistent. The 1 married after ⁄ 7 more; his fact is that everything we 1 beard grew after ⁄12 more, learn reveals more things that The division symbol. The and his son was born 5 we do not understand. . . . division symbol ÷ first years later; the son lived to Reverence for God comes appeared in print in Johann half his father’s final age, naturally if we are honest Heinrich Rahn’s Teutsche and the father died 4 years about how little we know.” Algebra (1659). after the son. Tell me the mystery man’s name or his age at death. (See Donald Knuth (1938–) is a Mathematics and sex. “A Answer 1.12.) computer scientist and a well-known mathematician mathematician. He is also a once told me that the great fine example of a mathemati- thing about liking both math Mathematician starves. cian who is interested in reli- and sex was that he could do What famous mathematician gion. For example, he has either one while thinking deliberately starved himself been an active Lutheran and a about the other” (Steven E. to death in 1978? (Hint: He Sunday school teacher. His Landsburg, in a 1993 post to was perhaps the most brilliant attractive book titled 3:16 the newsgroup sci.math). logician since Aristotle.) consists entirely of commen- (See Answer 1.13.) tary on chapter 3, verse 16, of

Brain limitation. “Our brains have evolved to get us out of Understanding brilliance. the rain, find where the berries are, and keep us from getting “Maybe the brilliance of the killed. Our brains did not evolve to help us grasp really brilliant can be understood large numbers or to look at things in a hundred thousand only by the nearly brilliant” dimensions” (Ronald Graham, a prior director of Information (Anthony Smith, The Mind, Sciences Research at AT&T Research, quoted in Paul 1984). Hoffman’s “The Man Who Loves Only Numbers,” Atlantic Monthly, 1987).

20 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 21

Georg Friedrich Bernhard physics, and the theory of cal Hebrew, and was the son Riemann (1826–1866) was a complex variables. He also of a Lutheran minister. German mathematician who attempted to write a mathe- The Riemann hypothesis, made important contributions matical proof of the truth of published by Riemann in to geometry, number theory, the Book of Genesis, was a 1859, deals with the zeros of topology, mathematical student of theology and bibli- a very wiggly function, and the hypothesis still resists modern mathematicians’ Calculating prodigy has plastic brain. Rüdiger Gamm is shock- attempts to prove it. Chapter ing the world with his calculating powers and is changing the 3 describes the hypothesis way we think about the human brain. He did poorly at mathe- further. matics in school but is now a world-famous human calculator, able to access regions of his brain that are off limits to most of us. He is not autistic but has been able to train his brain to per- form lightning calculations. For example, he can calculate 53 A dislike for mathematics. to the ninth power in his head. He can divide prime numbers “I’m sorry to say that the and calculate the answer to 60 points and more. He subject I most disliked was can calculate fifth roots. mathematics. I have thought Amazing calculating powers such as these were previously about it. I think the reason thought to be possible only by “autistic savants.” (Autistic was that mathematics leaves savants often have severe developmental disabilities but, at the no room for argument. If you same time, have special skills and an incredible memory.) made a mistake, that was all Gamm’s talent has attracted the curiosity of European there was to it” (Malcolm X, researchers, who have imaged his brain with PET scans while The Autobiography of Mal- he performed math problems. These breathtaking studies colm X, 1965). reveal that Gamm is now able to use areas of his brain that ordinary humans can use for other purposes. In particular, he can make use of the areas of his brain that are normally Mathematics and humanity. responsible for long-term memory, in order to perform his “Anyone who cannot cope rapid calculations. Scientists hypothesize that Gamm tem- with mathematics is not porarily uses these areas to “hold” digits in so-called “working fully human. At best he is a memory,” the brain’s temporary holding area. Gamm is essen- tolerable subhuman who has tially doing what computers do when they extend their capa- learned to wear shoes, bathe, bilities by using swap space on the hard drive to increase their and not make messes in the capabilities. Scientists are not sure how Gamm acquired this house” (Robert A. Heinlein, ability, considering that he became interested in mathematical Time Enough for Love, calculation only when he was in his twenties. (You can learn 1973). more in Steve Silberman’s “The Keys to Genius,” Wired, no. 11.12, December 2003.)

Numbers, History, Society, and People 21 c01.qxd 5/16/05 1:48 PM Page 22

Kurt Gödel (1906–1978) is Gottfried Wilhelm von Leibniz (1646–1716), a German, was an example of a mathematical an analyst, a combinatorist, a logician, and the coinventor of genius obsessed with God calculus who also passionately argued for the existence of and the afterlife. As discussed God. According to Leibniz, God chooses to actualize this in Answer 1.13 about the world out of an infinite number of possible worlds. In other mathematician who starved words, limited only by contradiction, God first conceives of himself to death, Gödel was every possible world, and then God simply chooses which of a logician, a mathematician, them to create. and a philosopher who was Leibniz is also famous for the principle of “preestablished famous for having shown harmony,” which states that God constructed the universe in that in any axiomatic system such a way that corresponding mental and physical events for mathematics, there are occur simultaneously. His “monad theory” states that the uni- propositions that cannot be verse consists of an infinite number of substances called mon- proved or disproved within ads, each of which has its own individual identity but is an the axioms of the system. expression of the whole universe from a particular unique Gödel thought it was viewpoint. possible to show the logical necessity for life after death and the existence of God. Greater-than symbol. The greater-than and less-than In four long letters to his symbols (> and <) were introduced by the British mathemati- mother, Gödel gave reasons cian Thomas Harriot in his Artis Analyticae Praxis, published for believing in a next in 1631. world.

Greater-than or equal-to symbol. The symbol ≥ (greater than or equal to) was first introduced by the French scientist Pierre Math and madness. Bouguer in 1734. “Cantor’s work, though bril- liant, seemed to move in half- steps. The closer he came to Mathematician murdered. can movie? Name the movie! the answers he sought, the Why was the first woman (See Answer 1.15.) What is further away they seemed. mathematician murdered? the largest number less than Eventually, it drove him mad, (See Answer 1.14.) a billion ever used in a as it had mathematicians major, full-length movie title? before him” (Amir D. Aczel, (Hint: The song was popular The Mystery of the Aleph: in the late 1920s and the Mathematics, the Kabbalah, Going to the movies. What early 1930s.) (See Answer and the Search for Infinity, was the largest number ever 1.16.) 2000). used in the title of an Ameri-

22 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 23

Math and madness. Many omists and psychologists some of his enemies that he mathematicians were very seldom indeed. It is as was an evil magician. depressed and religious at the their subject matter comes In Reims, he transformed same time. Which famous nearer to man himself that the floor of the cathedral into mathematician invented the their antireligious bias hard- a giant abacus. That must concept of “transfinite num- ens” (C. S. Lewis, The Grand have been a sight to see! The bers” (essentially, different Miracle: And Other Selected “Number Pope” was also “levels” of infinity), believed Essays on Theology and important because he adopted that God revealed mathemati- Ethics from God in the Dock, Arabic numerals (1, 2, 3, 4, cal ideas to him, and was a 1983). 5, 6, 7, 8, 9) as a replacement frequent guest of sanitari- for Roman numerals. He ums? (See Answer 1.17.) contributed to the invention of the pendulum clock, The Number Pope. As I invented devices that tracked Mathematics and diapering. write this book, I realize that planetary orbits, and wrote on “A human being should be a thousand years ago, the last geometry. When he realized able to change a diaper, Pope-mathematician died. that he lacked knowledge of plan an invasion, butcher a Gerbert of Aurillac (c. 946– formal logic, he studied hog, conn a ship, design a 1003) was fascinated by under German logicians. He building, write a sonnet, bal- mathematics and was elected said, “The just man lives by ance accounts, build a wall, to be Pope Sylvester II in faith; but it is good that he set a bone, comfort the dying, 999. His advanced knowledge should combine science with take orders, give orders, of mathematics convinced his faith.” cooperate, act alone, solve equations, analyze a new Hardy’s six wishes. In the 1920s, the British mathematician problem, pitch manure, pro- G. H. Hardy wrote a postcard to his friend, listing six New gram a computer, cook a Year’s wishes: tasty meal, fight efficiently, die gallantly. Specialization 1. prove the Riemann hypothesis is for insects” (Robert A. 2. score well at the end of an important game of cricket Heinlein, Time Enough for 3. find an argument for the nonexistence of God that con- Love, 1973). vinces the general public 4. be the first man at the top of Mount Everest Mathematicians and God. 5. be the first president of the USSR, Great Britain, and “Mathematicians, astrono- Germany mers, and physicists are often religious, even mystical; biol- 6. murder Mussolini ogists much less often; econ- (The London Mathematical Society Newsletter, 1994)

Numbers, History, Society, and People 23 c01.qxd 5/16/05 1:48 PM Page 24

Charles Babbage (1792–1871), an Englishman, was an ana- cians? Would a meeting of lyst, a statistician, and an inventor who was also interested in time-traveling mathematicians religious miracles. He once wrote, “Miracles are not a breach offer more to humanity than a of established laws, but . . . indicate the existence of far higher meeting of other scientists— laws.” Babbage argued that miracles could occur in a mecha- for example, biologists or nistic world. Just as Babbage could program strange behavior sociologists? These are all fas- on his calculating machines, God could program similar irreg- cinating questions to which I ularities in nature. While investigating biblical miracles, he don’t yet have answers. assumed that the chance of a man rising from the dead is one in 1012. Babbage is famous for conceiving an enormous hand- Mathematicians as God’s cranked mechanical calculator, an early progenitor of our messengers. “Cantor felt a modern computers. Babbage thought the device would be duty to keep on, in the face most useful in producing mathematical tables, but he worried of adversity, to bring the about mistakes that would be made by humans who tran- insights he had been given as scribed the results from its thirty-one metal output wheels. God’s messenger to mathe- Today, we realize that Babbage was a hundred years ahead of maticians everywhere” his time and that the politics and the technology of his era (Joseph Dauben, Georg were inadequate for his lofty dreams. Cantor, 1990).

Tinkertoy computer. In the gather Pythagoras, Cantor, early 1980s, the computer and Gödel in a small room Power notation. In 1637, geniuses Danny Hillis, Brian with a single blackboard to the philosopher René Silverman, and friends built debate their various ideas on Descartes was the first person a Tinkertoy computer that mathematics and God. What to use the superscript notation played tic-tac-toe. The device profound knowledge might for raising numbers and vari- was made from 10,000 we gain if we had the power ables to powers—for exam- 2 Tinkertoy pieces. to bring together great ple, as in x . thinkers of various ages for a conference on mathematics? Would a roundtable discus- Numerical religion. What Fantasy meeting of sion with Pythagoras, Cantor, ancient mathematician Pythagoras, Cantor, and Gödel. and Gödel produce less inter- established a numerical reli- I often fantasize about the esting ideas than one with gion whose main tenets outcome of placing mathe- Newton and Einstein? included the transmigration maticians from different eras Could ancient mathemati- of souls and the sinfulness of in the same room. For exam- cians contribute any useful eating beans? (See Answer ple, I would be intrigued to ideas to modern mathemati- 1.18.)

24 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 25

Modern mathematical Chickens and tic-tac-toe. The mathematics of tic-tac-toe murderer. Which modern have been discussed for decades, but can a chicken actually mathematician murdered and learn to play well? In 2001, an Atlantic City casino offered its maimed the most people from patrons a tic-tac-toe “chicken challenge” and offered cash a distance? (See Answer prizes of up to $10,000. The chicken gets the first entry, usu- 1.19.) ally by pecking at X or O on a video display inside a special henhouse set up in the casino’s main concourse. Gamblers standing outside the booth then get to make the next move by The ∞ symbol. Most high pressing buttons on a separate panel. There is no prize for a school students are familiar tie. A typical game lasts for about a minute, and the chicken with the mathematical sym- seems to be trained to peck at an X or an O, depending on the bol for infinity (∞). Do you human’s moves. think this symbol was used a Supposedly, the tic-tac-toe-playing chickens work in shifts hundred years ago? Who first of one to two hours to avoid stressing the animals. Various used this odd symbol? (See animal-rights advocates have protested the use of chickens in Answer 1.20.) tic-tac-toe games. Can a chicken actually learn to play tic-tac- toe? (See Answer 1.22.)

Mathematics of tic-tac-toe. In how many ways can you Mathematics and God. “God man’s The World of Mathe- place Xs and Os on a stan- exists since mathematics is matics, 1956). dard tic-tac-toe board? (See consistent, and the devil Answer 1.21.) exists since we cannot prove the consistency” (Morris God’s perspective. “When Kline, Mathematical Thought mathematicians think about The square root symbol. The from Ancient to Modern , it is usually from Austrian mathematician Times, 1990). the God’s-eye perspective. Christoff Rudolff was the first They are interested in prov- to use the square root symbol ing, for instance, that there is √ in print; it was published Lunatic scribbles and some with some in 1525 in Die Coss. mathematics. “If a lunatic interesting property, or that scribbles a jumble of mathe- there is no such algorithm, matical symbols it does not and in order to prove such Mathematics and poetry. “It follow that the writing means things you needn’t actually is impossible to be a mathe- anything merely because locate the algorithm you are matician without being a poet to the inexpert eye it is talking about . . . ” (Daniel in soul” (Sofia Kovalevskaya, indistinguishable from higher Dennett, Darwin’s Dangerous quoted in Agnesi to Zeno by mathematics” (Eric Temple Idea: Evolution and the Sanderson Smith, 1996). Bell, quoted in J. R. New- Meaning of Life, 1996).

Numbers, History, Society, and People 25 c01.qxd 5/16/05 1:48 PM Page 26

Erdös contemplates death. Creativity and madness. harmony of natural law, Once, while pondering his “Creativity and genius feed which reveals an intelligence own death, the mathematician off mental turmoil. The of such superiority that, com- Paul Erdös (1913–1996) ancient Greeks, for instance, pared with it, all the system- remarked, “My mother said, believed in divine forms of atic thinking and acting of ‘Even you, Paul, can be in madness that inspired mor- human beings is an utterly only one place at one time.’ tals’ extraordinary creative insignificant reflection. This Maybe soon I will be relieved acts” (Bruce Bower, Science feeling is the guiding princi- of this disadvantage. Maybe, News, 1995). ple of his life and work. . . . once I’ve left, I’ll be able to It is beyond question closely be in many places at the same akin to that which has pos- time. Maybe then I’ll be able Science, Einstein, and God. sessed the religious geniuses to collaborate with “The scientist’s religious feel- of all ages” (Albert Einstein, Archimedes and Euclid.” ing takes the form of a rap- Mein Weltbild, 1934). turous amazement at the

Mathematics and the infinite. “Mathematics is the only infi- Math in the movies. In the movie A Beautiful Mind, Russell nite human activity. It is con- Crowe scrolls the following formulas on the blackboard in his ceivable that humanity could MIT class: eventually learn everything in V = {F : 3 – X → 3smooth physics or biology. But W = {F = ∇g} humanity certainly won’t ever dim(V/W) = ? be able to find out everything in mathematics, because the Movie directors were told by advisers that this set of formulas subject is infinite. Numbers was subtle enough to be out of reach for most undergraduates, themselves are infinite” (Paul but accessible enough so that Jennifer Connelly’s character Erdös, quoted in Paul Hoff- might be able to dream up a possible solution. man’s The Man Who Loved Only Numbers, 1998). Mathematics and homosexuality. Which brilliant mathemati- cian was forced to become a human guinea pig and was First female doctorate. Who subjected to drug experiments to reverse his homosexuality? was the first woman to (Hint: He was a 1950s computer theorist whose mandatory receive a doctorate in mathe- drug therapy made him impotent and caused his breasts matics, and in what century to enlarge. He also helped to break the codes of the German do you think she received it? Engima code machines during World War II.) (See Answer (See Answer 1.23.) 1.24.)

26 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 27

A famous female mathematician. Maria Agnesi (1718–1799) Science and religion. “A is one of the most famous female mathematicians of the last contemporary has said, not few centuries and is noted for her work in differential calcu- unjustly, that in this material- lus. When she was seven years old, she mastered the Latin, the istic age of ours the serious Greek, and the Hebrew languages, and at age nine she pub- scientific workers are the only lished a Latin discourse defending higher education for profoundly religious people” women. As an adult, her clearly written textbooks condensed (Albert Einstein, New York the diverse research writings and methods of a number of Times Magazine, 1930). mathematicians. They also contained many of her own origi- nal contributions to the field, including a discussion of the cubic curve that is now known as the “Witch of Agnesi.” How- Mathematics and money. ever, after the death of her father, she stopped doing scientific What effect would doubling work altogether and devoted the last forty-seven years of her the salary of every mathemat- life to caring for sick and dying women. ics teacher have on education and the world at large? (See Einstein’s God. “It was, of Women and math. Despite Answer 1.26.) course, a lie what you read horrible prejudice in earlier about my religious convic- times, several women have tions, a lie which is being fought against the establish- A famous female mathe- systematically repeated. I do ment and persevered in matician. Sophie Germain not believe in a personal God mathematics. Emmy Amalie (1776–1831) made major and I have never denied this Noether (1882–1935) was contributions to number but have expressed it clearly. described by Albert Einstein theory, acoustics, and elastic- If something is in me which as “the most significant cre- ity. At age thirteen, Sophie can be called religious then it ative mathematical genius read an account of the death is the unbounded admiration thus far produced since the of Archimedes at the hands for the structure of the world higher education of women of a Roman soldier. She was so far as our science can began.” She is best known for so moved by this story that reveal it” (Albert Einstein, her contributions to abstract she decided to become a personal letter to an atheist, algebra and, in particular, for mathematician. Sadly, her 1954). her study of “chain condi- parents felt that her interest in tions on ideals of rings.” In mathematics was inappropri- 1933, her mathematical ate, so at night she secretly Mathematician cooks. achievements counted for studied the works of Isaac What eighteenth-century nothing when the Nazis Newton and the mathemati- French mathematician caused her dismissal from the cian Leonhard Euler. cooked himself to death? University of Göttingen (See Answer 1.25.) because she was Jewish.

Numbers, History, Society, and People 27 c01.qxd 5/16/05 1:48 PM Page 28

Mad mom tortures mathematician daughter. What brilliant, Christianity and mathe- famous, and beautiful woman mathematician died in incredi- matics. “The good Christian ble pain because her mother withdrew all pain medication? should beware of mathemati- (Hint: The woman is recognized for her contributions to com- cians, and all those who make puter programming. The mother wanted her daughter to die empty prophesies. The dan- painfully so that her daughter’s soul would be cleansed.) ger already exists that the (See Answer 1.27.) mathematicians have made a covenant with the devil to darken the spirit and to con- fine man in the bonds of Mathematics and relationships. “‘No one really understood Hell” (St. Augustine, De music unless he was a scientist,’ her father had declared, and Genesi Ad Litteram, Book II, not just a scientist, either, oh, no, only the real ones, the theo- c. 400). reticians, whose language is mathematics. She had not under- stood mathematics until he had explained to her that it was the symbolic language of relationships. ‘And relationships,’ he Mathematician believes had told her, ‘contained the essential meaning of life’” (Pearl in angels. What famous S. Buck, The Goddess Abides, 1972). English mathematician had not the slightest interest in sex and was also a biblical fundamentalist, believing in Mathematician pretends. no one, but it is of no impor- the reality of angels, demons, What important eleventh- tance at all. A mathematician and Satan? (Hint: According century mathematician pre- is great or he is nothing” to most scholars, he is the tended he was insane so that (Alfred Adler, “Reflections: most influential scientist he would not be put to death? Mathematics and Creativity,” and mathematician to have (Hint: He was born in Iraq The New Yorker, 1972). ever lived.) (See Answer and made contributions to 1.29.) mathematical optics.) (See Answer 1.28.) Mathematics, mind, universe. “If we wish to understand the nature of the History’s most prolific math- Mathematical greatness. Universe we have an inner ematician. Who was the most “Each generation has its few hidden advantage: we are prolific mathematician in his- great mathematicians, and ourselves little portions of the tory? (If you are unable to mathematics would not even universe and so carry the answer this, can you guess in notice the absence of the oth- answer within us” (Jacques what century he lived?) ers. They are useful as teach- Boivin, The Single Heart (See Answer 1.30.) ers, and their research harms Field Theory, 1981).

28 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 29

Suicidal mathematician. tual Truth” (Philip Davis and Earliest known symbols. What mathematician Reuben Hersh, The Mathe- The Egyptian Rhind Papyrus accepted a duel, knowing that matical Experience, 1981). (c. 1650 B.C.) contains the he would die? (Hint: He spent earliest known symbols for the night before the duel mathematical operations. feverishly writing down his Mathematics and lust. “I “Plus” is denoted by a pair of mathematical ideas, which tell them that if they will legs walking toward the num- have since had a great impact occupy themselves with the ber to be added. on mathematics.) (See study of mathematics they Answer 1.31.) will find in it the best remedy against the lusts of the flesh” Mathematics and the divine. (Thomas Mann, The Magic “Mathematical inquiry lifts Marry a mathematician? Mountain, 1924). the human mind into closer Would you rather marry the proximity with the divine than best mathematician in the is attainable through any other world or the best chess Newton’s magic. “Had medium” (Hermann Weyl, player? (See Answer 1.32.) Newton not been steeped in quoted in Philip Davis and alchemical and other magical Reuben Hersh, The Mathe- learning, he would never have matical Experience, 1981). Mathematics and truth. “We proposed forces of attraction who are heirs to three recent and repulsion between bodies π centuries of scientific devel- as the major feature of his and the law. In 1896, an opment can hardly imagine a physical system” (John Indiana physician promoted a π state of mind in which many Henry, “Newton, Matter, and legislative bill that made mathematical objects were Magic,” in John Fauvel’s Let equal to 3.2, exactly. The regarded as symbols of spiri- Newton Be!, 1988). Indiana House of Representa- tives approved the bill unani- mously, 67 to 0. The Senate, however, deferred debate Mathematical corpse. You come home and see a corpse about the bill “until a later on your foyer floor. Would you be more frightened if (1) date.” scrawled on the floor is the Pythagorean theorem: a2 + b2 = c2, or (2) scrawled on the floor is the following complicated formula: The mathematical life. “The mathematical life of a mathe- 122∞ (!)(4kk1103+ 26390 ) = ∑ matician is short. Work rarely π 44k 9801 k =0 (!)k 396 improves after the age of twenty-five or thirty. If little (See Answer 1.33.) has been accomplished by

Numbers, History, Society, and People 29 c01.qxd 5/16/05 1:48 PM Page 30

then, little will ever be Blind date. You are single and going on a blind date. The accomplished” (Alfred Adler, date knocks on your door and is extremely attractive. How- “Mathematics and Creativ- ever, you note that the person has the following formulas ity,” The New Yorker, 1972). tattooed on the right arm:

dR =− = 0 kBtRB (),(0 ) R0 The genesis of x = 1. dt Ibn Yahya al-Maghribi dB Al-Samawal in 1175 was =− = kRtBR (),(0 ) B0 the first to publish dt x0 = 1 From this little information, do you think you would enjoy the In other words, he realized evening with this person? (See Answer 1.34.) and published the idea that any number raised to the power of 0 is 1. Al-Samawal’s book was titled The Dazzling. Fundamental Anagram of Calculus. Probably most of you have His father was a Jewish never heard of Newton’s “Fundamental Anagram of Calculus”: scholar of religion and literature from Baghdad. 6accdae13eff7i3l9n4o4qrr4s8t12ux Can you think of any possible reason Newton would want to code aspects of his calculus discoveries? (See Answer 1.35.) Euler’s one-step proof of God’s existence. In mathemati- cal books too numerous to Petersburg and embarrassed 129), says that Diderot was mention, we have heard the the freethinking Diderot with mathematically well versed story of the mathematician this simple algebraic proof of and wouldn’t have been Leonhard Euler’s encounter God’s existence. Diderot was shocked by the formula. with the French encyclopedist shocked and fled. Was Euler Moreover, Euler wasn’t Denis Diderot. Diderot was a deliberately demonstrating the type of person to make devout atheist, and he chal- how lame these kinds of such a zany comment. While lenged the religious Euler to arguments can be? people of the time did seek mathematically prove the Today we know that there simple mathematical proofs existence of God. Euler is little evidence that the of God, the “Euler versus replied, “Sir (a + bn)/n = x; encounter ever took place. Diderot” story was probably hence, God exists. Please Dirk J. Struik, in his book A fabricated by the English reply!” Concise History of Mathe- mathematician De Morgan Supposedly, Euler said this matics, third revised edition (1806–1871). in a public debate in St. (New York: Dover, 1967, p.

30 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 31

Science and religion. π savants. In 1844, Johann Dase (a.k.a., Zacharias Dahse) “I have always thought it computed π to 200 decimal places in less than two months. He curious that, while most was said to be a calculating prodigy (or an “idiot savant”), scientists claim to eschew hired for the task by the Hamburg Academy of Sciences on religion, it actually dominates Gauss’s recommendation. To compute their thoughts more than it π does the clergy” (Fred Hoyle, = 3.14159 26535 89793 23846 26433 83279 astrophysicist, “The Uni- 50288 41971 69399 37510 58209 74944 59230 verse: Past and Present 78164 06286 20899 86280 34825 34211 70679 Reflections,” Annual Review 82148 08651 32823 06647 09384 46095 50582 of Astronomy and Astro- 23172 53594 08128 48111 74502 84102 70193 physics, 1982). 85211 05559 64462 29489 54930 38196 Dase supposedly used π /4 = arctan(1/2) + arctan(1/5) + arctan(1/8) . . . with a series expansion for each arctangent. Parallel universes and math- Dase ran the arctangent job in his brain for nearly sixty days. ematics. In theory, it is possi- Not everyone believes the legend of Dase. For example, ble to list or “enumerate” all Arthur C. Clarke recently wrote to me that he simply doesn’t rational numbers. How has believe the story of Dase calculating pi to 200 places in his this mathematical fact helped head. Clarke says, “Even though I’ve seen fairly well authenti- certain cosmologists to cated reports of other incredible feats of mental calculation, I “prove” that there is an infi- think this is totally beyond credibility.” nite number of universes I would be interested in hearing from readers who can con- alongside our own? (As you firm or deny this story. will learn in the next chapter, “rational numbers” are num- 1 bers like ⁄ 2, which can be expressed as fractions.) (See discussion of the value of 00 Greek numerals. Did Answer 1.36.) is very old, and controversy you know that the ancient raged throughout the nine- Greeks had two systems of teenth century. numerals? The earlier of The mysterious 00. these was based on the Students are taught that any initial letters of the names number to the zero power is One-page proof of God’s of numbers: the number 5 1, and zero to any power is 0. existence. Which famous Ger- was indicated by the letter But serious mathematicians man mathematician “proved” pi; 10 by the letter delta; often consider 00 undefined. God’s existence in a proof 100 by the antique form of If you try to make a graph of that fit on just one page of the letter H; 1,000 by the xy, you’ll see it has a disconti- paper? (See Answer 1.37.) letter chi; and 10,000 by the nuity at the point (0,0). The letter mu.

Numbers, History, Society, and People 31 c01.qxd 5/16/05 1:48 PM Page 32

Our mathematical percep- Pierre de Fermat. In the Ancient number notation lets tions. “The three of you stare early 1600s, Pierre de Fer- humans “think big.” The earliest at the school of fish and watch mat, a French lawyer, made forms of number notation, them move in synchrony, brilliant discoveries in num- which used straight lines for despite their lack of eyes. The ber theory. Although he was grouping 1s, were inconven- resulting patterns are hyp- an “amateur” mathematician, ient when dealing with large notic, like the reflections from he created mathematical numbers. By 3400 B.C.in a hundred pieces of broken challenges such as “Fermat’s Egypt, and 3000 B.C.in glass. You imagine that the Last Theorem,” which was Mesopotamia, a special sym- senses place a filter on how not solved until 1994. Fer- bol was adopted for the num- much humans can perceive of mat’s Last Theorem states ber 10. The addition of this the mathematical fabric of the that xn + yn = zn has no second number symbol made universe. If the universe is a nonzero integer solutions for it possible to express the mathematical carpet, then all x, y, and z when n > 2. number 11 with 2 symbols creatures are looking at it Fermat was no ordinary instead of 11, and the number through imperfect glasses. lawyer indeed. He is consid- 99 with 18 symbols instead How might humanity perfect ered, along with Blaise of 99. those glasses? Through drugs, Pascal, a founder of surgery, or electrical stimula- probability theory. As the tion of the brain? Probably coinventor of analytic Caterpillar vehicle. Many our best chance is through the geometry, he is considered, mathematicians were creative use of computers” (Cliff Pick- along with René Descartes, inventors, although not all of over, The Loom of God, one of the first modern math- their inventions were practi- 1997). ematicians. cal. For example, Polish-born Josef Hoëné-Wronski (1778–1853), an analyst, a The Beal reward. In the mid-1990s, the Texas banker philosopher, a combinatorial- Andrew Beal posed a perplexing mathematical problem and ist, and a physicist, developed offered $5,000 for the solution of this problem. In particular, a fantastical design for Beal was curious about the equation Ax + By = C z. The six caterpillar-like vehicles that letters represent integers, with x, y, and z greater than 2. he intended to replace rail- (Fermat’s Last Theorem involves the special case in which road transportation. He also the exponents x, y, and z are the same.) Oddly enough, Beal attempted to build a perpetual noticed that for any solution of this general equation he could motion machine and to build find, A, B, and C have a common factor. For example, in the a machine to predict the equation 36 + 183 = 38, the numbers 3, 18, and 3 all have the future (which he called the factor 3. Using computers at his bank, Beal checked equations prognometre). with exponents up to 100 but could not discover a solution that didn’t involve a common factor.

32 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 33

Progress in mathematics. God’s math book. “God has The Mathematical Journeys “In most sciences, one gener- a transfinite book with all the of Paul Erdös, 1998). ation tears down what another theorems and their best has built and what one has proofs. You don’t really have established another undoes. to believe in God as long as Song lyrics. What is the In mathematics alone, each you believe in the book” largest number ever used in generation adds a new story (Paul Erdös, quoted in Bruce the lyrics to a popular song? to the old structure” (Her- Schechter, My Brain Is Open: (See Answer 1.38.) mann Hankel, 1839–1873, who contributed to the theory of functions, complex num- The magnificent Erdös. It is commonly agreed that Paul bers, and the history of math- Erdös is the second-most prolific mathematician of all times, ematics, quoted in Desmond being surpassed only by Leonhard Euler, the great eigh- MacHale, Comic Sections, teenth-century mathematician whose name is spoken with 1993). awe in mathematical circles. In addition to Erdös’s roughly 1,500 published papers, many are yet to be published after his death. Erdös was still publishing a paper a week Hilbert’s problems. In 1900, in his seventies. Erdös undoubtedly had the greatest number the mathematician David of coauthors (around 500) among mathematicians of all Hilbert submitted twenty- times. three important mathematical In 2004, an eBay auction offered buyers an opportunity to problems to be targeted for link their names, through five degrees of separation, with Paul solution in the twentieth cen- Erdös. In particular, the mathematician William Tozier pre- tury. These twenty-three sented bidders with the chance to collaborate on a research problems extend over all paper. Tozier was linked to Erdös through a string of coau- fields of mathematics. thors. In particular, he had collaborated with someone who Because of Hilbert’s prestige, had collaborated with someone who had collaborated with mathematicians spent a great someone who had collaborated with Paul Erdös. A mathemati- deal of time tackling the cian who has published a paper with Erdös has an Erdös num- problems, and many of the ber of 1. A mathematician who has published a paper with problems have been solved. someone who has published a paper with Erdös has an Erdös Some, however, have been number of 2, and so on. Tozier has an Erdös number of 4, solved only very recently, and quite a respectable ranking in the mathematical community. still others continue to daunt This means that the person working with Tozier would have an us. Hilbert’s twenty-three Erdös number of 5. During the auction, Tozier heard from wonderful problems were more than a hundred would-be researchers. (For more infor- designed to lead to the fur- mation, see Erica Klarreich, “Theorems for Sale: An Online thering of various disciplines Auctioneer Offers Math Amateurs a Backdoor to Prestige,” in mathematics. Science News 165, no. 24 (2004): 376–77.)

Numbers, History, Society, and People 33 c01.qxd 5/16/05 1:48 PM Page 34

Rope and lotus symbols. A calculating prodigy and 365,365,365,365,365,365. When The Egyptian hieroglyphic he was ten years old, the calculating prodigy Truman Henry system evolved special sym- Safford (1836–1901) of Royalton, Vermont, was once asked to bols (resembling ropes, lotus square, in his head, the number 365,365,365,365,365,365. His plants, etc.) for the numbers church leader reports, “He flew around the room like a top, 10, 100, 1,000, and 10,000. pulled his pantaloons over the tops of his boots, bit his hands, rolled his eyes in their sockets, sometimes smiling and talking, and then seeming to be in agony, until in not more than a Strange math title. I love minute said he, 133,491,850,208,566,925,016,658,299,941, collecting math papers with 583,225!” strange titles. These papers Incidentally, I had first mentioned this large number in my are published in serious math book Wonders of Numbers and had misprinted one of the dig- journals. For example, in its. Bobby Jacobs, a ten-year-old math whiz from Virginia, 1992, A. Granville published wrote to me with the corrected version that you see here. He an article with the strange was the only person to have discovered my earlier typographi- title “Zaphod Beeblebrox’s cal error. Brain and the Fifty-Ninth Row of Pascal’s Triangle,” in the prestigious The American that when we die, our souls [mathematical curves], spin- Mathematical Monthly (vol. survive. Incidentally, Jesus ning to their own music, is a 99, no. 4 [April]: 318–31). Christ is number 611,121 wondrous, spiritual event” among more than 700,000 (Paul Rapp, in Kathleen Creator Sons. McAuliffe, “Get Smart: Urantia religion and num- Controlling Chaos,” Omni bers. In the modern-day Uran- [1989]). tia religion, numbers have an Mathematics and God. almost divine quality. “Philosophers and great According to the sect, head- religious thinkers of the last The discovery of calculus. quartered in Chicago, we live century saw evidence of God The English mathematician on the 606th planet in a sys- in the symmetries and Isaac Newton (1642–1727) tem called Satania, which harmonies around them— and the German mathemati- includes 619 flawed but in the beautiful equations of cian Gottfried Wilhelm Leib- evolving worlds. Urantia’s classical physics that describe niz (1646–1716) are grand universe number is such phenomena as electric- generally credited with the 5,342,482,337,666. Urantians ity and magnetism. I don’t invention of calculus, but var- believe that human minds are see the simple patterns under- ious earlier mathematicians created at birth, but the soul lying nature’s complexity explored the concept of rates does not develop until about as evidence of God. I believe and limits, starting with the age six. They also believe that is God. To behold ancient Egyptians, who

34 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 35

Newton’s giants. “If I have seen further than others, it is by Latin word for “sum.”) The standing upon the shoulders of giants” (Isaac Newton, per- mathematician Joseph Louis sonal letter to Robert Hooker, 1675 [see next quotation]). Lagrange (1736–1813) was the first person to use the notation f ′(x) for the first ″ Abelson’s giants. “If I have not seen as far as others, it is derivative and f (x) for the because giants were standing on my shoulders” (Hal Abelson, second derivative. In 1696, MIT professor). Guillaume François de L’Hôpital, a French mathe- matician, published the first textbook on calculus. Mathematical marvel. “Even stranger things have happened; and perhaps the strangest of all is the marvel that mathematics should be possible to a race akin to the apes” (Eric T. Bell, The Development of Mathematics, 1945). Jews, π, the movie. The 1998 cult movie titled π stars a mathematical genius who is developed rules for calculat- integral calculus in 1686. He fascinated by numbers and ing the volume of pyramids said, “It is unworthy of excel- their role in the cosmos, the and approximating the areas lent men, to lose hours like stock market, and Jewish of circles. slaves in the labor of calcula- mysticism. According to the In the 1600s, both Newton tion. . . . My new calculus . . . movie, what is God’s num- and Leibniz puzzled over offers truth by a kind of ber? (See Answer 1.39.) problems of tangents, rates of analysis and without any change, minima, maxima, effort of imagination.” New- and infinitesimals (unimagin- ton was outraged. Debates ably tiny quantities that are raged for many years on how Mathematics and romance. almost but not quite zero). to divide the credit for the What romantic comedy has Both men understood that discovery of calculus, and, as the most complicated mathe- differentiation (finding tan- a result, progress in calculus matics ever portrayed in a gents to curves) and integra- was delayed. movie? (See Answer 1.40.) tion (finding areas under curves) are inverse processes. Newton’s discovery The notations of calculus. (1665–1666) started with his Today we use Leibniz’s sym- Greek death. Why did __df the ancient Greeks and interest in infinite sums; how- bols in calculus, such as dx for ever, he was slow to publish the derivative and the ∫ sym- other cultures believe 8 to his findings. Leibniz pub- bol for integration. (This inte- be a symbol of death? (See lished his discovery of differ- gral symbol was actually a Answer 1.41.) ential calculus in 1684 and of long letter S for summa, the

Numbers, History, Society, and People 35 c01.qxd 5/16/05 1:48 PM Page 36

The mechanical Pascaline. pores become clogged with Mathematical progress. One example of an early the earthly particles blown “More significant mathemati- computing machine is Blaise from the dusty highways of cal work has been done in Pascal’s wheel computer vulgar life” (James Joseph the latter half of this century called a Pascaline. In 1644, Sylvester, 1814–1897, a than in all previous centuries this French philosopher and professor of mathematics combined” (John Casti, Five mathematician built a calcu- at Johns Hopkins University, Golden Rules, 1997). lating machine to help his 1869 address to the British father compute business Mathematical Association). accounts. Pascal was twenty years old at the time. The machine used a series of Simultaneity in science. The simultaneous discovery of cal- spinning numbered wheels to culus by Newton and Leibniz makes me wonder why so many add large numbers. discoveries in science were made at the same time by people The wonderful Pascaline working independently. For example, Charles Darwin was about the size of a shoe- (1809–1882) and Alfred Wallace (1823–1913) both independ- box. About fifty models were ently developed the theory of evolution. In fact, in 1858, Dar- made. win announced his theory in a paper presented at the same time as a paper by Wallace, a naturalist who had also devel- oped the theory of natural selection. What number The Matrix. As another example of simultaneity, the mathematicians is on Agent Smith’s license János Bolyai (1802–1860) and Nikolai Lobachevsky plate in the movie The Matrix (1793–1856) developed hyperbolic geometry independently Reloaded? Why? (See and at the same time (both perhaps stimulated indirectly by Answer 1.42.) Carl Friedrich Gauss). Most likely, such simultaneous discov- eries have occurred because the time was “ripe” for such dis- At the movies. What coveries, given humanity’s accumulated knowledge at the time famous book and movie title the discoveries were made. On the other hand, mystics have contains a number that is suggested that there is a deeper meaning to such coincidences. greater than 18,000 and less The Austrian biologist Paul Kammerer (1880–1926) wrote, then 38,000? (See Answer “We thus arrive at the image of a world-mosaic or cosmic 1.43.) kaleidoscope, which, in spite of constant shufflings and rearrangements, also takes care of bringing like and like together.” He compared events in our world to the tops of The mathematical life. ocean waves that seem isolated and unrelated. According to “The mathematician lives his controversial theory, we notice the tops of the waves, but long and lives young; the beneath the surface there may be some kind of synchronistic wings of the soul do not mechanism that mysteriously connects events in our world and early drop off, nor do its causes them to cluster.

36 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 37

First mathematician. What say that God knows not all that Pythagoras was intellec- is the name of the first human numbers. . . . What madman tually one of the most impor- who was identified as having would say so? . . . What are tant men who ever lived, both made a contribution to math- we mean wretches that dare when he was wise and when ematics? (See Answer 1.44.) presume to limit His knowl- he was unwise. Pythagoras edge?” (St. Augustine, was the most puzzling mathe- The City of God, A.D. 412). matician of history because Game show. Why was the he founded a numerical reli- 1950’s TV game show called gion whose main tenets were The $64,000 Question? Why Who was Pythagoras? the transmigration of souls not a rounder number like You can tell from some of the and the sinfulness of eating $50,000? (See Answer 1.45.) following factoids that I beans, along with a host of love trivia that relates to the other odd rules and regula- famous ancient Greek mathe- tions. To the Pythagoreans, God and the infinite. “Such matician Pythagoras. His mathematics was an ecstatic as say that things infinite are ideas continue to thrive after revelation. past God’s knowledge may three millennia of mathemati- The Pythagoreans, like just as well leap headlong cal science. The philosopher modern day fractalists, were into this pit of impiety, and Bertrand Russell once wrote akin to musicians. They cre- ated pattern and beauty as Mathematical scope. “Mathematics is not a book confined they discovered mathematical within a cover and bound between brazen clasps, whose con- truths. Mathematical and the- tents it needs only patience to ransack; it is not a mine, whose ological blending began with treasures may take long to reduce into possession, but which Pythagoras and eventually fill only a limited number of veins and lodes; it is not a soil, affected all religious philoso- whose fertility can be exhausted by the yield of successive phy in Greece, played a role harvests; it is not a continent or an ocean, whose area can be in religion of the Middle mapped out and its contour defined: it is limitless as that space Ages, and extended to Kant which it finds too narrow for its aspirations; its possibilities in modern times. Bertrand are as infinite as the worlds which are forever crowding in and Russell felt that if it were multiplying upon the astronomer’s gaze; it is as incapable of not for Pythagoras, theolo- being restricted within assigned boundaries or being reduced gians would not have sought to definitions of permanent validity, as the consciousness, the logical proofs of God and life, which seems to slumber in each monad, in every atom of immortality. matter, in each leaf and bud and cell, and is forever ready to If you want to read more burst forth into new forms of vegetable and animal existence” about Pythagoras, see my (James Joseph Sylvester, The Collected Mathematical Papers book The Loom of God and of James Joseph Sylvester, Volume III, address on Commemo- Peter Gorman’s Pythagoras: ration Day at Johns Hopkins University, February 22, 1877). A Life.

Numbers, History, Society, and People 37 c01.qxd 5/16/05 1:48 PM Page 38

The secret life of numbers. Anamnesis and the number 216. Was the ancient Greek math- To Pythagoras and his follow- ematician Pythagoras once a plant? This is a seemingly bizarre ers, numbers were like gods, question, but Pythagoras claimed that he had been both a plant pure and free from material and an animal in his past lives, and, like Saint Francis, he change. The worship of num- preached to animals. Pythagoras and his followers believed in bers 1 through 10 was a kind anamnesis, the recollection of one’s previous incarnations. of polytheism for the During Pythagoras’s time, most philosophers believed that Pythagoreans. only men could be happy. Pythagoras, on the other hand, Pythagoreans believed that believed in the happiness of plants, animals, and women. numbers were alive, inde- In various ancient Greek writings, we are told the exact pendent of humans, but with a number of years between each of Pythagoras’s incarnations: telepathic form of conscious- 216. Interestingly, Pythagoreans considered 216 to be a mysti- ness. Humans could relin- cal number, because it is 6 cubed (6 × 6 × 6). Six was also quish their three-dimensional considered a “circular number” because its powers always lives and telepathize with ended in 6. The fetus was considered to have been formed these number beings by using after 216 days. various forms of meditation. The number 216 continues to pop up in the most unlikely of Meditation upon numbers places in theological literature. In an obscure passage from was communing with the The Republic (viii, 546 B–D), Plato notes that 216 = 63. It is gods, gods who desired noth- also associated with auspicious signs on the Buddha’s footprint. ing from humans but their sincere admiration and con- templation. Meditation upon numbers was a form of prayer Shades of ghosts. Pythago- fully sacrificed a hecatomb of that did not ask any favors ras believed that even rocks oxen (a hundred animals) from the gods. possess a psychic existence. when he discovered his These kinds of thoughts Mountains rose from the famous theorem about the are not foreign to modern earth because of growing right-angled triangle, this mathematicians, who often pains of the earth, and would have been scandalously debate whether mathematics Pythagoras told his followers un-Pythagorean and is proba- is a creation of the human that earthquakes were caused bly not true. Pythagoras mind or is out there in the by the shades of ghosts of the refused to sacrifice animals. universe, independent of dead, which created distur- Instead, the Pythagoreans human thought. Opinions bances beneath the earth. believed in the theurgic vary. A few mathematicians construction of agalmata— believe that mathematics is a statues of gods consisting of form of human logic that is Pythagorean sacrifice. herbs, incense, and metals to not necessarily valid in all Although some historians attract the cosmic forces. parts of the universe. report that Pythagoras joy-

38 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 39

Pythagoras and aliens. Famous epitaphs. Replace x and y with the names of two UFOs and extraterrestrial famous mathematicians in these two puzzles. In Puzzle 1, the life are hot topics today. But following couplet of Alexander Pope is the engraved epitaph who would believe that these on the mystery person’s sarcophagus in Westminster Abbey, in same ideas enthralled the London: Pythagoreans a few millen- nia ago? In fact, Pythagore- Nature and Nature’s laws lay hid in the night; ans believed that all the God said, “Let x be” and all was light. planets in the solar system —Alexander Pope (1688–1744) are inhabited, and humans In Puzzle 2, the epitaph “S = klnW ” is engraved on y’s tomb- dwelling on Earth were less stone. Who are x and y? (See Answer 1.46.) advanced than these other inhabitants were. (The idea of advanced extraterrestrial neighbors curiously has continued, for some, to this Matrix prayers. Some of prayer that he succinctly day.) According to later you will be interested in writes as Underwood Dudley’s Pythagoreans, as one travels P < R{S} → {U}, r > 0 farther from Earth, the Mathematical Cranks beings on other planets and (Washington, D.C.: Mathe- He says, “This prayer should in other solar systems matical Association of be sufficiently concise to be become less flawed. America, 1992). The book acceptable to Christ, yet Pythagoras went as far as contains musings of slightly every single Christian inhabi- to suggest that disembodied mad mathematicians. My tant of Northern Ireland has intelligences existed in the favorite chapter is on the been separately included.” universe. These mind- topic of “Matrix Prayers,” The chapter concludes with creatures had very tenuous designed by a priest of the information regarding the physical bodies. Many of Church of England. The geometry of heaven. Pythagoras’s followers priest regularly prayed to God in mathematical terms believed that Pythagoras Secret mathematician. using matrices, and he taught himself had once been a Who really was the famous the children in his church to superior being who inhabited and secretive French mathe- pray and think of God in the Moon or the Sun. matician “N. Bourbaki”? matrices. Mathematical (See Answer 1.47.) Cranks goes into great detail Gods and sets. “The null regarding “revelation matri- set is also a set; the absence ces,” “Polite Request Opera- How much? How much of a god is also a god” (A. tors,” and the like. The priest mathematics can we know? Moreira). finally derives a beautiful (See Answer 1.48.)

Numbers, History, Society, and People 39 c01.qxd 5/16/05 1:48 PM Page 40

Mathematics and reality. From string theory to quantum the- Einstein on mathematics ory, the deeper one goes in the study of physics, the closer one and reality. “At this point an gets to pure mathematics. Mathematics is the fabric of reality. enigma presents itself which Some might even say that mathematics “runs” reality in the in all ages has agitated same way that Microsoft’s Windows runs your computer and inquiring minds. How can it shapes your interactions with the vast network beyond. be that mathematics, being Schrödinger’s wave equation—which describes basic reality after all a product of human and events in terms of wave functions and probabilities—is thought which is independent the evanescent substrate on which we all exist: of experience, is so admirably appropriate to the objects of  h 2  ∂ψ reality? Is human reason, −∇+2 Vr()→  ψ (,) rt→ = ih (,)rt→  2m  ∂t then, without experience, merely by taking thought, Freeman Dyson, in the introduction to Nature’s Imagination, able to fathom the properties speaks highly of this formula: “Sometimes the understanding of real things? In my opinion of a whole field of science is suddenly advanced by the dis- the answer to this question is covery of a single basic equation. Thus it happened that the briefly this: As far as the laws Schrödinger equation in 1926 and the Dirac equation in 1927 of mathematics refer to real- brought a miraculous order into the previously mysterious ity, they are not certain; and processes of atomic physics. Bewildering complexities of as far as they are certain, they chemistry and physics were reduced to two lines of algebraic do not refer to reality” symbols.” (Albert Einstein’s address to the Prussian Academy of Science in Berlin, 1921). symbol. In 1808 Insights and analysis. Christian Kramp (1760– “Einstein’s fundamental 1826) introduced the “!” as insights of space/matter Ramanujan’s tongue. In the the factorial symbol as a con- relations came out of philo- spring of 2003, the Aurora venience to the printer. sophical musings about the Theater Company of Berke- nature of the universe, not ley performed Ira Hauptman’s from rational analysis of play Partition, which focuses Nobel Prize. Why is there observational data—the on the collaboration of the no Nobel Prize for mathemat- logical analysis, prediction, mathematicians Ramanujan ics? (See Answer 1.49.) and testing coming only and Hardy. In the play, Nama- after the formation of the giri, Ramanujan’s personal creative hypotheses” deity and inspiration in real Roman numerals. Why (R. H. Davis, The Skeptical life, is seen literally writing don’t we use Roman numerals Inquirer, 1995). equations on Ramanujan’s anymore? (See Answer 1.50.) tongue with her finger.

40 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 41

Mathematics and reality. of higher mathematics, mation coming in, new “My complete answer to the how close are we to a real worlds to explore, a con- late 19th century question understanding?” (Susan stantly expanding domain of ‘what is electrodynamics Kruglinski, “When Even life, consciousness, and trying to tell us’ would sim- Mathematicians Don’t memory” (Freeman Dyson, ply be this: Fields in empty Understand the Math,” New “Time without End: Physics space have physical reality; York Times, May 25, 2004). and Biology in an Open Uni- the medium that supports verse,” Reviews of Modern them does not. Having thus Physics, 1979). removed the mystery from Dyson on the infinite reser- electrodynamics, let me voir of mathematics. “Gödel immediately do the same for proved that the world of pure More mathematics and quantum mechanics: mathematics is inexhaustible; reality. “It is difficult to Correlations have physical no finite set of axioms and explain what math is, let reality; that which they corre- rules of inference can ever alone what it says. Math may late does not” (N. David encompass the whole of be seen as the vigorous struc- Mermin, “What Is Quantum mathematics; given any finite ture supporting the physical Mechanics Trying to Tell set of axioms, we can find world or as a human idea in Us?” American Journal of meaningful mathematical development. [Dr. John Casti Physics 66, [1998]: 753–67). questions which the axioms says that] ‘the criteria that leave unanswered. I hope that mathematicians use for what an analogous situation exists constitutes good versus bad More mathematics and in the physical world. If my mathematics is much more reality. “[Much of frontier view of the future is correct, close to that of a poet or a mathematics] confounds even it means that the world of sculptor or a musician than it mathematicians and physi- physics and astronomy is also is to a chemist’” (Susan cists, as they use math to cal- inexhaustible; no matter how Kruglinski, “When Even culate the inconceivable, far we go into the future, Mathematicians Don’t undetectable, nonexistent and there will always be new Understand the Math,” New impossible. So what does it things happening, new infor- York Times, May 25, 2004). mean when mainstream explanations of our physical reality are based on stuff that Creativity and travel. “One way of goosing the brain is even scientists cannot com- traveling, particularly internationally. It helps shake up prehend? When nonscientists perspective and offers new experiences. Interviews with 40 read about the strings and MacArthur ‘genius’ award winners found 10 lived overseas branes of the latest physics permanently or temporarily, three traveled at least a few theories, or the Riemann months each year, and at least two have a ‘horror of a home’” surfaces and Galois fields (Sharon McDonnell, “Innovation Electrified,” American Way).

Numbers, History, Society, and People 41 c01.qxd 5/16/05 1:48 PM Page 42

Ramanujan redux. How The Fractal Murders. In 2002, Mark Cohen, a lawyer and a would mathematics have been judge, published The Fractal Murders, a novel in which three advanced if Ramanujan had mathematicians, all of whom are experts in fractals, have died. developed in a more nurtur- Two were murdered. The third was an apparent suicide. In the ing early environment? novel, the math professor Jayne Smyers hires a private eye, Although he would have been Pepper Keane, to look into the three deaths, which seem to be a better-trained mathemati- related only because each victim was researching fractals. cian, would he have become such a unique thinker? Could he have discovered so many Mathematical universe. understand. One may say ‘the wonderful formulas if he Why does the universe seem eternal mystery of the world had been taught the rules of to operate according to is its comprehensibility.’ It is mathematics early on and mathematical laws? (See one of the great realizations pushed to publish his results Answer 1.51.) of Immanuel Kant that this with rigorous proofs? Perhaps setting up of a real external his relative isolation and world would be senseless poverty enhanced the great- A universe of blind mathe- without this comprehensi- ness of his mathematical maticians. Sighted mathemati- bility” (Albert Einstein, thought. For Ramanujan, cians generally work by “Physics and Reality,” 1936). equations were not just the studying vast assemblages of means for proofs or calcula- numbers and symbols scrib- tions. The beauty of the equa- bled on paper. It would seem Wigner on mathematics and tion was of paramount value extremely difficult to do reality. “The miracle of appro- for Ramanujan. mathematics without being priateness of the language of able to see, and to be forced mathematics for the formula- to keep the information “all tion of the laws of physics is The secret life of formulas. in one’s head.” Can a great a wonderful gift which we “We cannot help but think mathematician be totally neither understand nor that mathematical formulae blind? (See Answer 1.52.) deserve. We should be grate- have a life of their own, that ful for it, and hope that it will they know more than their remain valid for future discoverers do and that they Einstein on comprehensibil- research, and that it will return more to us than we ity and reality. “The very fact extend, for better or for have invested in them” that the totality of our sense worse, to our pleasure even (Heinrich Hertz, German experiences is such that by though perhaps also to our physicist, quoted in Eric means of thinking . . . it can bafflement, to wide branches Bell, Men of Mathematics, be put in order, this fact is of learning” (Eugene Wigner, 1937). one which leaves us in awe, “The Unreasonable Effective- but which we shall never ness of Mathematics,” 1960).

42 A Passion for Mathematics c01.qxd 5/16/05 1:48 PM Page 43

Close to reality. We’ve better word—the math of the Why learn mathematics? talked quite a bit about math- Well of Souls. We feel the It has been estimated that ematics and reality. Who do energy flow, the ties and much greater than 99.99 you think is in more direct bands, in each and every percent of all Americans contact with reality, a mathe- particle of matter and energy. will never use the quadratic matician or a physicist? What All reality is mathematics, all formula or most of the other do famous twentieth-century existence—past, present, algebraic or geometrical mathematicians say on this and future—is equations’” relations they learn in school. subject? (See Answer 1.53.) (Jack Chalker, Quest for the Why teach or learn mathe- Well of Souls, 1985). matics beyond the basic operations of addition, All reality is mathematics. subtraction, multiplication, “The Gedemondan chuckles. Pythagoras on mathematics and division? (See Answer ‘We read probabilities. You and reality. “All things are 1.54.) see, we see—perceive is a numbers.”

Numbers, History, Society, and People 43 c01.qxd 5/16/05 1:48 PM Page 44 c02.qxd 5/16/05 3:06 PM Page 45 1 22 CoolCool NumbersNumbers3 4

N WHICH WE ENCOUNTER FASCINATING NUMBERS AND STRANGE NUMBER I sequences. We’ll explore transcendental5 numbers, octonions, surreal num- bers, obstinate numbers, cyclic numbers, Vibonacci numbers, perfect numbers, automorphic numbers, prime numbers, Wilson primes, palindromic primes, Fibonacci primes, Sophie Germain primes, Baxter-Hickerson primes, star- congruent primes, narcissistic numbers,6 amenable numbers, amicable numbers, p-adic numbers, large palindromes, factorions, hyperfactorials, primorials, palindions and hyperpalindions, exotic-looking formulas for π, the Golay-Rudin-Shapiro sequence, the wonderful Pochhammer notation, and famous and curious math constants (such as Liouville’s constant, the Copeland-Erdös constant, Brun’s constant, Champernowne’s number, Numbers percolate like bubbles in the Euler’s gamma, Chaitin’s constant, ocean of mathematics. the Landau-Ramanujan constant, The mathematician’s job is to transport Mills’s constant, the golden ratio, Apéry’s constant, and constants even us to new seas, while deepening the more bizarre). waters and lengthening horizons.

45 c02.qxd 5/16/05 3:06 PM Page 46 c02.qxd 5/16/05 3:06 PM Page 47

Pi. Who discovered pi Billion. In America, a the numbers we’re mostly (π)? (See Answer 2.1.) billion has 9 zeros familiar with and consist of (1,000,000,000). In England, the natural numbers [0, 1, a billion has 12 zeros 2, . . . ] and their negatives An avalanche of digits. How (1,000,000,000,000). Why? [–1, –2, –3, . . .]). (See do obsessed mathematicians (See Answer 2.4.) Answer 2.5.) calculate π to trillions of dec- imal digits? (See Answer 2.2.) Pick an integer, any integer. Definition of a transfinite If I asked you to select an number. We briefly mentioned integer number at random transfinite numbers in chapter Evenness. Is 0 an even from all the integers, is this a 1 when discussing the Ger- number? (See Answer 2.3.) possible task? (Integers are man mathematician Georg Cantor. A transfinite number is an infinite cardinal or ordi- Street-corner integers. David Chalmers, a professor of phi- nal number. (A cardinal num- losophy and the director of the Center for Consciousness ber is a whole number, an Studies (www.u.arizona.edu/~chalmers/), once conducted an integer, that is used to specify experiment in which he stood on a busy street corner in how many elements there are Oxford and asked passersby to “name a random number in a set. An ordinal number is between zero and infinity.” He wondered what this “random” considered a place in the distribution would look like. ordered sequence of whole The results, sorted in order of most popular, were 3, 7, 5, numbers. For example, it is 12, 1, 4, 10, 77, 2, 47, infinity, 15, 17, 20, 27, 18, 23, 26, 30, used in counting as first, sec- 42, and 99. The remaining random numbers were given by ond, third, fourth, etc., to nth only one person each: 6, 13, 14, 19, 21, 22, 25, thirteen more in a set of n elements.) The 2-digit numbers, twenty 3-digit numbers, twelve 4-digit num- smallest transfinite number is bers, one 5-digit number, one 6-digit number, four 7-digit called “aleph-nought,” writ- ℵ numbers, one 8-digit number, one non-integer (328.39), and ten as 0, which counts the one huge number: number of integers. ℵ is the

10 first letter in the Hebrew 9.265 × 1010 alphabet. If the number of ℵ Dr. Chalmers notes that “Of course, a uniform distribution integers is infinite (with 0 is a priori impossible so I couldn’t have expected that. Even a members), are there yet logarithmic distribution is impossible (it has an infinite inte- higher levels of infinity? It gral). Interestingly enough, this distribution, taken coarsely, turns out that even though was quite close to logarithmic up to 1,000 or so. There were there are an infinite number roughly the same number of 2-digit responses as 1-digit of integers, rational numbers responses, and a few less 3-digit responses.” (numbers that can be

Cool Numbers 47 c02.qxd 5/16/05 3:06 PM Page 48

expressed as fractions), and irrational numbers (like √2= 1.141421356 . . . , which cannot be expressed as a fraction), the infinite number of irrationals is in some sense greater than the infinite number of rationals and integers. Similarly, there are more real numbers (which include rational and irrational numbers) than there are integers. To denote this difference, mathematicians refer to the infinity of rationals or inte- ℵ gers as 0 and the infinite number of irrationals or real numbers as C, which stands for the cardinality of the real number “contin- uum.” There is a simple relationship between C and ℵ ℵ0 0. It is C = 2 . In other words, 2ℵ0 is denoted by C and is also the cardinality Figure 2.1 The universe of numbers. of the set of real numbers, or the continuum, whence about greater infinities, sym- maticians such as Kurt Gödel ℵ ℵ the name. (The real numbers bolized by 1, 2, and so on. proved that the hypothesis are sometimes called the con- For example, the set theory was a consistent assumption ℵ tinuum.) Some of these cardi- symbol 1 stands for the in one branch of mathemat- nalities are shown in figure smallest infinite set larger ics. However, another mathe- ℵ 2.1. This figure is compli- than 0. The “continuum matician, Paul Cohen, proved ℵ cated and will be referred to hypothesis” states that C = 1 that it was also consistent to throughout the chapter, as = 2ℵ0; however, the question assume that the continuum ℵ you build your knowledge of whether C truly equals 1 hypothesis is false! and see passing references to is considered undecidable in Interestingly, the number of other kinds of numbers. our present set theory. In rational numbers is the same Mathematicians also think other words, great mathe- as the number of integers. The

48 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 49

number of irrationals is the Pisa (c. 1200). Notice that an ancient discipline. Much same as the number of real except for the first two num- mysticism accompanied early numbers. (Mathematicians bers, every successive num- treatises; for example, usually use the term cardinal- ber in the sequence equals the Pythagoreans based all events ity when talking about the sum of the two previous. in the universe on whole “number” of infinite numbers. These numbers appear in an numbers. Only a few hundred For example, true mathemati- amazing number of places in years ago, courses in cians would say that the cardi- various mathematical disci- numerology—the study of nality of the irrationals is plines, and I’ve scattered just the mystical and religious known as the continuum.) a few throughout this book. properties of numbers—were What do we do with the required by all college stu- paradox of the continuum dents, and even today such hypothesis? Cantor’s col- Definition of a prime numbers as 13, 7, and 666 league, Constantin Gutberlet, number. A number larger than conjure up emotional reac- believed that God could 1, such as 5 or 13, that is tions in many people. resolve the problem of the divisible only by itself or Today, integer arithmetic is continuum hypothesis. How by 1. The number 14 is not important in a wide spectrum many of the great mathemati- prime because 14 = 7 × 2. of human activities and has cal paradoxes would melt Primeness is a property of the repeatedly played a crucial away if humanity had a number itself. For example, 5 role in the evolution of the higher level of intelligence? is prime whether it is written natural sciences. For a How many would remain as 5 or as the binary form description of the use of because they are somehow 101 or in any other system of number theory in communi- part of the mathematical tap- numeration. The largest cations, computer science, estry underpinning our uni- known prime as of 2005 has cryptography, physics, biol- verse? These are questions 7,816,230 digits. ogy, and art, see Manfred not easily answered, at least Schroeder’s Number Theory not by Homo sapiens. Our in Science and Communica- minds have not sufficiently Definition of number theory. tion. Primes and prime fac- evolved to comprehend all Number theory—the study of torization are especially the mysteries of “God” and properties of the integers—is important in number theory. mathematics. Fibonacci and 998999. Here’s a mathematical curiosity. The fraction 1/998999 contains a number of obvious instances Definition of a Fibonacci of Fibonacci numbers, 1, 1, 2, 3, 5, 8 . . . , in which each suc- number. Fibonacci numbers— cessive number is the sum of the previous two. I’ve underlined 1, 1, 2, 3, 5, 8, 13 . . . —are the Fibonacci numbers to make them easy to find: named after the Italian mer- chant Leonardo Fibonacci of 1/998999 = 0.000001001002003005008013021034055089 . . .

Cool Numbers 49 c02.qxd 5/16/05 3:06 PM Page 50

Integer God. “Is God a Numbers and number representations. In our daily lives mathematician? Certainly, the today, most of us use a number system based on powers of world, the universe, and 10, so that 1492, for example, means 1 × 103 + 4 × 102 + 9 × nature can be reliably under- 101 + 2 × 100, noting that 100 = 1. The popularity of a stood using mathematics. “base-10” system is due, in part, to the fact that humans are Nature is mathematics. The accustomed to counting on their ten fingers. If we had six arrangement of seeds in a fingers on each hand, we might use a base-12 number sys- sunflower can be understood tem, in which the value 147 (base 10) would be written 103 using Fibonacci numbers. (base 12) because 103 (base 12) = 1 × 122 + 0 × 121 + 3. Sunflower heads, like other Humans have not always preferred a base-10 system. For flowers, contain two families example, the Yuki Pomo of Northern California used a base- of interlaced spirals—one 8 system because they counted using the spaces between the winding clockwise, the other fingers. The Sumerians used a base-60 system, and this is counter clockwise. The num- why we have 60 seconds in a minute and 60 minutes in an bers of seeds and petals are hour. almost always Fibonacci Some properties of numbers are independent of the num- numbers” (Clifford Pickover, ber system in which they are represented. For example, 8, a The Loom of God, 1997). number, is adjacent to 9, a , regardless of how we represent the values 8 and 9. As just discussed, the value 5 is a prime, and 6 is a composite, regardless of the rep- Gears and prime numbers. resentation. However, other properties of numbers depend on In gears whose purpose is to the number system that is used in their representation. For reduce speed, it is often help- example, “a number is divisible by 9 if and only if the sum ful to use wheels whose of its digits is divisible by 9” is true in base 10 but not neces- numbers of teeth are prime sarily in other number systems. The number 353,535 is an numbers, in order to reduce “undulating” or “oscillating” number when written in base uneven wear. On such gears, 10. In base 12, it’s a very ordinary-looking 150,713. You can the same gear teeth will tell from this book that I’m crazy about all kinds of number mesh only at long intervals. properties. Therefore, in this chapter, you’ll see questions and In old eggbeater hand drills, facts about numbers that are independent of their representa- prime numbers of teeth were tion, as well as observations that assume a base-10 system. also used so that individual Some of my colleagues, like Dr. Bob Ewell, care only about pairs of teeth in the mating properties of numbers independent of their representation. I gears did not revisit each like observations that involve all kinds of properties. As you other as often as would be read, see if you can determine which kind of property is being the case for composite discussed (number system independent or number system numbers. dependent) and decide which flavor you like the best.

50 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 51

Prime proof. The first The brilliant mathematician Paul Why care about integers? person known to have proved Erdös was fascinated by number theory and the notion that he that there are an infinite num- could pose problems using integers that were often simple to ber of primes was Euclid state but notoriously difficult to solve. Erdös believed that if (third century B.C.). one can state a problem in mathematics that is unsolved and more than 100 years old, it is a problem in number theory. There is a harmony in the universe that can be expressed by whole numbers. Numerical patterns describe the arrangement Definition of a composite of florets in a daisy, the reproduction of rabbits, the orbit of number. A the planets, the harmonies of music, and the relationships is a positive integer, greater between elements in the periodic table. than 1, that is not prime. In Leopold Kronecker (1823–1891), a German, was an alge- other words, a composite braist and a number theorist who once said, “The integers number can be written as a came from God and all else was man-made.” His implication product of two or more inte- was that the primary source of all mathematics is the integers. gers, each larger than 1. For Since the time of Pythagoras, the role of integer ratios in example, 42 is composite musical scales has been widely appreciated. More important, because 42 = 7 × 2 × 3. The integers have been crucial in the evolution of humanity’s sci- first few composite numbers entific understanding. For example, the English chemist John are 4, 6, 8, 9, 10, 12, 14, 15, Dalton (1766–1844) discovered that chemical compounds are 16, 18, . . . composed of fixed proportions of elements that correspond to the ratios of small integers. This was very strong evidence for the existence of atoms. In 1925, certain integer relations between the wavelengths of spectral lines emitted by excited Definition of set theory. Set atoms gave early clues to the structure of atoms. The near- theory is a branch of mathe- integer ratios of atomic weights were evidence that the atomic matics that involves sets and nucleus is made up of an integer number of similar nucleons membership. A set may be (protons and neutrons). The deviations from integer ratios led considered any collection of to the discovery of elemental isotopes (variants with nearly objects, called the members identical chemical behavior but with different radioactive (or elements) of the set. One properties). Small divergences in pure isotopes’ atomic mathematical example is the weights from exact integers confirmed Einstein’s famous set of positive integers {1, 2, equation E = mc2 and also the possibility of atomic bombs. 3, 4, . . .}. There are a number Integers are everywhere in atomic physics. of different versions of set Integer relations are fundamental strands in the mathemati- theory, each with its rules and cal weave—or, as the German mathematician Carl Friedrich axioms. Gauss said, “Mathematics is the queen of sciences—and num- ber theory is the queen of mathematics.”

Cool Numbers 51 c02.qxd 5/16/05 3:06 PM Page 52

Alien set theory. “Would formula. Seashells, animal’s structures at different magni- intelligent beings evolving horns, and the cochlea of the fications. Einstein’s E = mc2 on a planet or environment ear are logarithmic spirals defines the fundamental rela- less contiguous than our own which can be generated using tionship between energy and ever come up with set a mathematical constant matter. And a few simple theory? If beings exist in known as the golden ratio. constants—the gravitational amorphous globules in a Mountains and the branching constant, Planck’s constant, dynamic flowing ecosystem patterns of blood vessels and and the speed of light— without the benefit of solid plants are fractals, a class of control the destiny of the matter, and never witness shapes which exhibit similar universe. I do not know if two identical objects or actions, would such creatures be familiar with the number Definition of Euler’s number e. The constant e is the base of 1?” (Todd Redden, personal the natural logarithm. It is approximately equal to communication). e = 2.71828 18284 59045 23536 02874 . . . Along with π, e is the most important constant in mathematics Drowning in pi digits. “The since it appears in countless mathematical contexts. Roughly 2 digits of pi beyond the first billion digits of e have been determined. few decimal places are of no Euler’s number can be defined as follows: practical or scientific value. Four decimal places are suffi- ∞ 1 e = ∑ cient for the design of the k =0 k! finest engines; ten decimal places are sufficient to obtain In other words, the number e can be defined as the sum of a the circumference of the series in which the series terms are the reciprocals of the fac- earth within a fraction of an torial numbers: e = 1/0! + 1/1! + 1/2! + . . . = 2.7182818284 inch if the earth were a 590 . . . (Recall that for a positive integer n, n! is the product smooth sphere” (Petr Beck- of all the positive integers less than or equal to n. 0! is equal to mann, A History of Pi, 1976). 1.) Here’s another way to look at it. Euler’s number, e, is the limit value of the expression (1 + 1/n) raised to the nth power, when n increases indefinitely: The loom of God. “The   n shape assumed by a delicate 1 e =+lim1  = 2 .71828 . . . spider web suspended from n →∞  n  fixed points, or the cross- section of sails bellying in the The symbol e was first used by the Swiss mathematician wind, is a catenary—a simple Leonhard Euler (1707–1783). The symbol e also appeared in curve defined by a simple his 1736 Mechanica, perhaps inspired by the word exponential.

52 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 53

Definition of a rational number. A rational number can be transcendental is no easy expressed as a ratio of two integers, where the denominator is task. Charles Hermite proved 1 1 non-zero. Example: ⁄3, ⁄2, 4. If you multiply, add, subtract, that e was transcendental in or divide a rational by a rational, another rational number is 1873 and Ferdinand von Lin- produced (see figure 2.1). demann proved that π was transcendental in 1882. In 1874, Cantor surprised most Definition of complex numbers. Complex numbers are an mathematicians by demon- extension of the real numbers; complex numbers contain a strating that almost all real number i, called the imaginary unit, with i = √–1 . Every com- numbers are transcendental. plex number can be represented in the form x + iy, where x Thus, if you could somehow and y are real numbers. put all the numbers in a big jar and pull one out, it would be virtually certain to be transcendental. God is a mathematician, but Definition of transcendental There are many more mathematics is the loom numbers. These numbers are transcendental numbers than upon which God weaves the so exotic that they were algebraic ones. In fact, if we fabric of the universe” only “discovered” 150 years could imagine the number (Clifford Pickover, The ago. They’re so rare in com- line with just the algebraic Loom of God, 1997). mon usage that you may be numbers represented and the familiar with only one of transcendental ones chopped them, π. These numbers can- out, such a line would have A cool pi formula. The fol- not be expressed as the root more holes than points. Yet lowing little-known formula of any algebraic equation despite the fact that transcen- yields the correct decimal with rational coefficients. dental numbers are “every- digits of pi to an amazing 42 This means that π could where,” only a few are known billion digits; however, it is not exactly satisfy equations and named. There are lots of not a perfect formula for pi! of the type: x2 = 10 or stars in the sky, but how In other words, it’s only a 9x4 – 240x2 + 1,492 = 0. many can you name? (See very high-precision approxi- These are equations involving figure 2.1.) mation. The ≈ symbol signi- simple integers with powers All transcendental num- fies an approximation of π. The numbers π and e bers are irrational numbers. (Borwein and Borwein, (Euler’s number) can be However, a transcendental “Strange Series and High expressed as an endless con- number (unlike √2) is not Precision Fraud,” 1992). tinued fraction or as the limit the root of any polynomial 2  n=∞  of the sum of an infinite equation with integer 1 − 210  ∑ e (/n 10 ) ≈ π series. coefficients.  5  10 n =−∞ Proving that a number is

Cool Numbers 53 c02.qxd 5/16/05 3:06 PM Page 54

Definition of an irrational π, and √2. The irrational which are the roots of poly- number. An irrational number numbers are either algebraic nomial equations with cannot be expressed as a ratio irrational numbers like √2 rational coefficients (e.g., √2 of two integers. Examples: e, and other radicals or surds, is the root of a2 – 2 = 0), or transcendental numbers like e and π. The decimal digits of Number zoo. Figure 2.1 is a schematic illustration (or a irrational numbers go on and visual definition) of various kinds of numbers. Natural num- on, with no period or repeti- bers are often called “whole numbers” or “positive integers,” tion. Sometimes mathemati- for example, 1, 2, 3, . . . Sometimes, 0 is also included in the cians look for patterns in the list of “natural” numbers (e.g., in books such as Bourbaki’s endless string of digits to Elements of Mathematics: Theory of Sets or Halmos’s Naive determine whether the Set Theory), and there seems to be no general agreement about arrangement of digits is simi- whether to include zero. lar to what would be expected In figure 2.1, I have focused on scalar numbers at the of a completely random expense of complex numbers. Here I refer to “scalar” as a sequence. Writing an irra- quantity that can be described by a single number. Scalar quan- tional number in decimal tities have magnitude but not a direction. A complex number form, like √2= 1.414213 . . . , has the form x + iy, where i is √–1 . If y is zero, the complex produces an endless sequence number is real. If x is zero, the complex number is imaginary. of decimal digits, in particu- Algebraic numbers and transcendental numbers can be lar, a nonperiodic nontermi- complex, as hinted at by the downward arrows piercing the nating decimal number (see real number bubble and pointing to numbers like πi and figure 2.1). √–2 + 1. Of course, if I wanted to fully include complex num- bers, I might also include hypercomplex numbers—for exam- ple, higher-dimensional complex numbers like the quaternions Definition of algebraic of the form w + xi + yj + zk, which have more than one imagi- numbers. Most of the ordinary nary component. A quaternion with y = 0 and z = 0 is a simple positive and negative num- complex number. If x is also 0, the quaternion becomes a bers you know about are scalar, that is, a vector with one element. Would intelligent algebraic numbers. More aliens on other worlds develop a similar scheme? specifically, these numbers Several features of figure 2.1 are not perfectly accurate, due are real or complex numbers to the difficulty of making bubble diagrams of this sort. For that are solutions of poly- example, my floating of the complex numbers outside of the nomial expressions having algebraic numbers is a simplification in order to make the dia- rational coefficients. Here’s gram easier to draw. For instance, √–2 + 2 is algebraic and an example. Consider the contains real and imaginary parts. Radicals are algebraic; thus polynomial ax3 + bx2 + cx + d. there are real radicals, imaginary radicals, and complex radi- If r is the root or the solution cals that are neither real nor imaginary but a mixture of both. ax3 + bx2 + cx + d = 0,

54 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 55

then r is an algebraic number. Transcendental mystery. We know that π, Euler’s number e, As we said in the definition and eπ are transcendental. However, today, we don’t know of irrational numbers, the whether πe, ππ, or ee are transcendental. Perhaps we will never irrational numbers are con- know. sidered to be of two kinds, the algebraic irrational numbers and transcendental Definition of a Hamiltonian integer. This is a linear combina- numbers (see figure 2.1). tion of basis quaternions with integer coefficients.

Superthin dart. I randomly nions, 8 for the octonions, 16 we mentioned, quaternions toss a superthin dart at a for the sedenions). can be represented in four number line that represents dimensions by Q = a0 + a1i + all numbers from 0 to 1. a2 j + a3k, where i, j, and k are Given what you have already Definition of quaternions. A (like the imaginary number i) learned in this chapter, is the quaternion is an extension of unit vectors in three orthogo- dart more likely to land on an the complex plane, discov- nal directions, and they are algebraic number, such as ered in 1843 by William perpendicular to the real axis. 0.6, or a transcendental one, Hamilton while he was To add or multiply two such as π? If you feel that attempting to define three- quaternions, we treat them as transcendentals are more dimensional multiplications. polynomials in i, j, and k but likely, how much more Quaternions have since been use the following rules to likely? (See Answer 2.6.) used to describe the dynamics deal with products: of motion in 3-space. The i2 = j2 = k2 = –1 space shuttle’s flight software Definition of hypercomplex uses quaternions in its com- ij = – ji = k numbers. Hypercomplex num- putations for guidance, navi- jk = – kj = i bers are higher-dimensional gation, and flight control for ki = – ik = j extensions of the complex reasons of compactness, numbers; they include such speed, and avoidance of sin- numbers as quaternions, octo- gularities. (In mathematics, a nions, and sedenions. Com- singularity is a point at which Quaternions and plex numbers, such as 2 + 3i, a given mathematical object quadrupeds. “It is as unfair to can be viewed as points in a is not defined or lacks some call a vector a quaternion as plane. Similarly, hypercom- useful property, such as dif- to call a man a quadruped” plex numbers can be viewed ferentiability.) (Oliver Heaviside, 1892, as points in some higher- Quaternions define a four- quoted in Paul Nahin, Oliver dimensional Euclidean space dimensional space that con- Heaviside, 1988). (4 dimensions for the quater- tains the complex plane. As

Cool Numbers 55 c02.qxd 5/16/05 3:06 PM Page 56

Definition of a magic square. through 9, and with the magic example, if you look at the Some of the problems in this sum 15 along the three rows, square on the left, you’ll see book relate to magic squares. three columns, and two diag- that the sum of the numbers A magic square is a square onals. In some sense, only in the first row is 4 + 9 + 2 = matrix drawn as a checker- one unique arrangement of 15. The sum of the numbers board that’s filled with num- digits, and its mirror image, in the first column is 4 + 3 + bers or letters in particular is possible for a third-order 8 = 15. One of the diagonal arrangements. Mathemati- square: sums is 4 + 5 + 6 = 15, and cians are most interested in so forth. We can also use arithmetic squares consisting the magic sum formula to of N 2 boxes, called cells, 4 9 2 compute the magic sum: filled with integers that are all 3(32 + 1)/2 = 15. Notice that different. Such an array of 3 5 7 the mirror image is also a numbers is called a magic magic square. By rotating square if the sums of the 8 1 6 the square four times by 90 numbers in the horizontal degrees, you can produce rows, the vertical columns, Third-Order Magic Square eight third-order magic and the main diagonals are squares. all equal. As far back as 1693, the 2 9 4 If the integers in a magic 880 different fourth-order square are the consecutive 7 5 3 magic squares were published numbers from 1 to N 2, the posthumously by the French square is said to be of the Nth 6 1 8 mathematician Bernard order, and the magic number, Frénicle de Bessy (1602– or the sum of each row, is a Mirror Image 1675). Frénicle, one of the constant symbolized as S: leading magic square researchers of all time, was NN()2 +1 S = Here N = 3, because there are an eminent amateur mathe- 2 3 rows and 3 columns, and matician working in Paris (The magic number is the magic sum S is 15 during the great period of sometimes referred to as the because the numbers in the French mathematics in the magic sum or the magic rows, the columns, and two seventeenth century. constant.) diagonals sum to 15. For A few examples will help to demystify these mathemat- ical definitions. The simplest Definition of a sedenion. A sedenion is a hypercomplex num- magic square possible is one ber constructed from sixteen basic elements. A sedenion may of the third order, with 3 × 3 be represented as an ordered pair of two octonions. The word cells containing the integers 1 sedenion is derived from sexdecim, meaning “sixteen.”

56 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 57

Definition of an octonion. operations. Two equal nim- Definition of a biquaternion. An octonion is a hypercom- bers always add to 0. If the A biquaternion is a quater- plex number that can be nimbers are different, and if nion with complex coeffi- written as a linear combina- the larger of the two nimbers cients. tion of eight basic elements. is 1 or 2 or 4 or 8 or 16 or An octonion may also be . . . , then you add them just represented and written as as you would add the corre- On counting. “Waclaw an ordered pair of two sponding ordinary numbers. Sierpinski, the great Polish 4-dimensional quaternions. Multiplication of nimbers mathematician, was very is even more exotic, and interested in infinite num- you can learn more at the bers. The story, presumably Definition of nimbers. Wikipedia online encyclope- apocryphal, is that once Nimbers are ordinal numbers dia, en.wikipedia.org/wiki/ when he was traveling, he that have been recently devel- Nimber, or in John Conway’s was worried that he’d lost oped by John Conway and are book On Numbers and one piece of his luggage. fascinating because of their Games. ‘No dear!’ said his wife, addition and multiplication ‘All six pieces are here.’ ‘That can’t be true,’ said Sierpinski. ‘I’ve counted Bombs on magic squares. I’ve dropped bombs on several of them several times: zero, the numbers in this magic square, where consecutive numbers one, two, three, four, five’” from 0 to 63 are used, and each row, each column, and two (John Conway and Richard main diagonals have the same sum. Can you replace the Guy, The Book of Numbers, bombs with the proper numbers? (See Answer 2.7.) 1996). As an aside, in 1944, the Nazis burned Sierpinski’s 2 60 11 53 9 house, destroying his library and personal letters. More 13 51 4 58 6 56 than half of the mathemati- cians who lectured in 16 46 18 44 27 37 25 39 Poland’s academic schools 31 33 29 42 22 40 were killed, and Nazis burned down the Warsaw 52 10 54 1 61 3 University Library, which contained several thousand 59 5 57 7 48 14 50 12 volumes, magazines, and mathematical books. Sierpin- 36 26 38 24 47 17 ski was the author of 724 papers and 50 books. 21 41 23 32 30

Cool Numbers 57 c02.qxd 5/16/05 3:06 PM Page 58

Liouville constant. In 1844, the French mathematician pause and continue counting, Joseph Liouville (1809–1882) considered the following inter- “4, 5, 6” on the second pizza. esting number Now count backward while pointing to the second pizza, L = 0.110001000000000000000001000 . . . “6, 5, 4.” You are now point- known today as the Liouville constant. Can you guess its sig- ing to the first pepperoni in nificance or what rule he used to create it? (See Answer 2.8.) the second pizza and have said the word four. Next, you say, “four, and three more on the first pizza makes seven.” Viete’s formula for π. The first person to uncover an infinite What is wrong with this product formula for pi was the French mathematician François argument? How would chil- Viete (1540–1603). This remarkable gem involves just two dren of various ages respond? numbers—π and 2: (If you have access to a child, 2 2 2 please tell me how he or she π =⋅2 ⋅ ⋅ ... responded.) Sure, this is 2 22+ 222++ crazy, but can you articulate precisely what’s wrong with the child’s argument? (See Answer 2.9.) Integer satisfaction. “What The paradox of pepperonis. could be more beautiful than Perhaps you’ve heard this a deep, satisfying relation sort of fallacy when you Taxicab numbers. What do between whole numbers. were a child. (A fallacy pro- British taxicabs have to do How high they rank, in the duces a wrong answer using with the number 1,729? realms of pure thought and explanations that sometimes Why is 1,729 such a special aesthetics, above their lesser appear to be very logical.) and famous number in the brethren: the real and com- Before you are six pepper- history of mathematics? (See plex numbers . . . ” (Manfred onis, three on each of two Answer 2.10.) Schroeder, Number Theory in pizzas: Science and Communication, 1984). Transcendence. We know that π (3.1415 . . .) and e Math anagrams. Apart A child will now try to prove (2.7182 . . .) are the most from the fact that they are there are really seven pepper- famous transcendental num- equal, ONE PLUS TWELVE and onis. Try this on friends. bers. Is (π + e) transcenden- TWO PLUS ELEVEN are ana- Start counting “1, 2, 3” on tal? Is (π×e) transcendental? grams of each other. the first pizza, and then (See Answer 2.11.)

58 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 59

Special class of numbers. who proved Goldbach’s con- ends in the digits 17, 37, 57, This puzzle is for extreme jecture between March 20, or 97, where p > 1 (Journal of math lovers. The following 2000, and March 20, 2002, Recreational Mathematics). numbers represent a special but the prize went unclaimed, class of numbers that mathe- and the conjecture remains maticians have studied for open. In 2003, the conjecture Champernowne’s number. years: 12, 18, 20, 24, 30, 36, was verified up to 6 × 1016. Here is a very famous num- 40, 42, 48, 54, 56, 60, 66, 70, ber called Champernowne’s 72, 78, 80, 84, 88, 90 . . . number: These numbers are so unique Fermat numbers. In 1650, 0.1234567891011121314 . . . that mathematicians have a the French scholar and lawyer special name for them. Can Pierre de Fermat rashly Do you see how it is created? you determine what mathe- proposed that all numbers of What makes it so interesting? 2p matical property these num- the form Fp = 2 + 1 were (See Answer 2.13.) bers have in common, aside prime numbers. He knew that from the fact that the num- this was true for the first five bers in this limited list are such numbers corresponding Calculating π. The first all even numbers? (See to p = 0 ,1 , 2, 3, 4. Alas, computer calculation of π Answer 2.12.) Leonhard Euler in 1732 occurred in 1947, yielding proved that the fifth number 2,037 decimal digits in 70 was not prime. In fact, today, hours. Today we know π to Goldbach conjecture. In many believe that all Fermat over a trillion digits. 1742, the mathematician numbers greater than F4 are Christian Goldbach conjec- composite. tured that every integer π on a tombstone. The greater than 5 can be written fencing master Ludolph van as the sum of three primes, Fermat numbers. In 2003, Ceulen (1540–1610) gave π like 21 = 11 + 7 + 3. As reex- Thomas Koshy proved that to 20 decimal digits in 1596. pressed by Euler, an equiva- every (num- Several digits of π were lent conjecture (called the bers of the form F = 22p + 1) engraved on his tombstone. “strong” Goldbach conjec- p ture) asserts that all positive even integers greater than 2 Wallis’s equation for π. In 1655, the English mathematician can be expressed as the sum John Wallis (1616–1703) devised this wonderful-looking infi- of two primes. (Note that 1 is nite product involving only rational numbers to calculate pi: not considered a prime num- ber.) The publishing giant π ∞  ()2n 2  22⋅ 44⋅ 66⋅ =   = Faber and Faber offered a ∏ ... 2 n =1  ()()2121nn−+ 13⋅ 35⋅ 57⋅ $1,000,000 prize to anyone

Cool Numbers 59 c02.qxd 5/16/05 3:06 PM Page 60

No train stops at π. “Pi is Copeland-Erdös constant. Here’s a famous number that not the solution to any equa- caused quite a stir in 1945: tion built from a less-than- 0.23571113171923 . . . infinite series of whole numbers. If equations are Can you determine how this number was constructed? (See trains threading the landscape Answer 2.14.) of numbers, then no train stops at pi.” (Richard Preston, “The Mountains of Pi,” New Thue constant. This number is called the Thue constant: Yorker, 1992). 0.110110111110110111110110110110110111110110 . . . Can you figure out how it was generated or determine its remarkable properties? (See Answer 2.15.) Chung-chih formula for π. Astronomer Tsu Chung-chih (430–501) gave the following string 16,470 starts in posi- up of digits not included π value of , which is correct to tion 16,470, and so forth. in itself: 639,1722 = six decimal digits. 408,540,845,584. Can you 355 π = 113 = 3.141592 . . . find the only other six-digit Numerical axis of evil. The example? Do any exclusion- This value was not improved Russian computer specialist ary cubes or exclusionary upon in Europe until the six- Timofei Shatrov has discov- numbers of higher orders teenth century, more than a ered a relationship between exist? (See Answer 2.16.) thousand years later. 13, 666, and 911, the date of the World Trade Center disas- ter: 911 =13 + 666 + 2 × 116. As you can see, 116 is The grand search for iso- Self-location and π. 911, flipped upside down. primes. Note that 11 is an iso- Humanity is aware of just a prime, a prime number with few “self-locating” strings all digits the same. (A prime within π. Defining the first Exclusionary squares. I number is divisible only by digit after the decimal point have a particular penchant for itself and 1.) Do any other as digit 1, Jeff Roulston has an unusual class of numbers isoprimes exist in base 10? found the following numbers called “exclusionary Similarly, 101 is an oscil- that can self-locate in the first squares,” such as the very lating bit prime (base 10). 50 million decimal digits of special number 639,172. It Do any others exist? For π; 1; 16,470; and 44,899. For turns out that this is the example, 10,101 is not prime. example, the digit 1 is found largest integer with distinct Neither is 1,010,101. (See in position 1 in 3.1415. The digits whose square is made Answer 2.17.)

60 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 61

Special augmented primes. namely, 83. Are there other man is able to discover them. One of my favorite bizarre such numbers? How rare are The miracle of the appropri- number quests involves a spe- special augmented primes? ateness of the language of cific kind of prime number (See Answer 2.18.) mathematics for the formula- called a “special augmented tion of the laws of physics is a prime.” You can augment a wonderful gift which we nei- prime simply by placing a 1 Unreasonable effectiveness ther understand nor deserve” before and after the number. of mathematics. “The enor- (Eugene P. Wigner, “The The augmented prime is “spe- mous usefulness of mathemat- Unreasonable Effectiveness of cial” if it yields an integer ics in natural sciences is Mathematics in the Natural when divided by the original something bordering on the Sciences,” 1960). prime number. For example, mysterious, and there is no 137 is such a number because rational explanation for it. It is 137 is prime and because not at all natural that ‘laws of Body weights. What would 11371/137 yields an integer— nature’ exist, much less that happen if everyone’s body weight was quantized and came in multiples of π Triangle of the Gods. An angel descends to Earth and shows pounds? (See Answer 2.20.) you the following simple progression of numbers:

1 Jesus and negative numbers. Would Jesus of Nazareth ever 12 have worked with a negative 123 number, like –3? (See Answer 1234 2.21.) 12345 123456 Jesus notation. What kinds 1234567 of written numbers did Jesus 12345678 of Nazareth, or a comparable 123456789 figure of his era, use? Did these people use numbers that 1234567890 looked like the numbers we 12345678901 use today? (See Answer 2.22.) 123456789012 1234567890123 . . . Jesus and multiplication. The angel will let you enter the afterlife if you can determine Could Jesus of Nazareth what is the smallest prime number of this kind. Can you do multiply two numbers? (See so? (See Answer 2.19.) Answer 2.23.)

Cool Numbers 61 c02.qxd 5/16/05 3:06 PM Page 62

The digits of π. Is it true The grand Internet undulat- Most obstinate numbers that I can find consecutive ing obstinate number search. In that we have discovered are digits, like 1, 2, 3, . . . 1848, Alphonse Armand prime themselves. The first 1,000,000, all neatly in a row Charles Georges Marie, bet- composite obstinate number in the decimal digits of π? ter known as the “Prince de is 905. What is the largest (See Answer 2.24.) Polignac,” conjectured that obstinate number that every odd number is the sum humanity can compute? of a power of 2 and a prime. What is the smallest differ- Living in the π matrix. Is it (For example, 13 = 23 + 5.) ence between adjacent true that we all live forever, He claimed to have proved obstinates? coded in the endless digits of this to be true for all numbers Do any obstinates undu- π? (See Answer 2.25.) up to three million, but de late? (Undulating numbers Polignac probably would are of the form ababababab have kicked himself if he had . . . For example, 171,717 is Numbers and sign language. known that he missed 127, an undulating number, but In American sign language, a which leaves residuals of it’s not obstinate.) (See person puts up one finger for 125, 123, 119, 111, 95, and Answer 2.29.) 1, two fingers for 2, and so 63 (all composites—that is, forth. How would a deaf per- nonprimes) when the possible son sign “100” without grow- powers of 2 are subtracted ing one hundred fingers? (See from it. There are another Mystery sequence. What is Answer 2.26.) 16 of these odd numbers— the missing number in the which my colleague Andy following sequence? No Edwards calls obstinate numbers may repeat in this Adding numbers. It would numbers—that are less than sequence. be a tough job to add all the 1,000. There is an infinity of 13, 24, 33, 40, 45, 48, ? numbers between 1 and obstinate numbers greater 1,000. What formula would than 1,000. (See Answer 2.30.) you use to do this quickly? (See Answer 2.27.) Strange code. If ..--- + ....- equals -...., what does .---- + ..--- equal? (See Answer 2.31.) The mystery of 0.33333. 1 We all know that ⁄3 = 0.3333 . . . repeating. Multiplying both sides of the equation by Mystery sequence. What number comes next? 3, we find that 1 = 0.9999 . . . 1, 9, 17, 3, 11, 19, 5, 13, 21, 7, 15, ? How can this be? (See Answer 2.28.) (See Answer 2.32.)

62 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 63

Mystery sequence. Replace the with the correct num- [1876–1948], quoted in John bers in this interesting sequence: Barrow’s Pi in the Sky, 1992). 1, 8, 15, 3, , 19, 9, 18, 10, , 14, 7, 5, 4, , 13, 0, 12, 16, a2 + b2 + 1? In 1996, (See Answer 2.33.) Daniel Schepler, a student at Washington University, St. Louis, Missouri, answered Mystery sequence. What is the significance of the following the following cool question: sequence? “For what pairs of integers a, b does ab exactly divide a2 + 2357, 1113, 1719, 2329, 3137, 4143 b2 + 1?” Schepler proved that (See Answer 2.34.) the solution pairs (a, b) are

always (F2n + 1, F2n – 1), where Fn is the nth Fibonacci num- Time-travel integer. Pete Ostracism. Which of these ber. (For further reading, see tells Penny, “I want to travel numbers is the odd one out? Richard Guy and Richard back in time to a year that has Nowakowski, “A Recurrence 3 8 15 24 35 48 55 63 all even digits, like A.D. 246.” of Fibonacci,” The American Penny replies, “How about (See Answer 2.37.) Mathematical Monthly 103, the year 2000?” no. 10 [December 1996]: “No,” Pete says, “I want to 854–69). travel to a year before 2000. Natives and mathematics. Given this constraint, what’s “In Samoa, when elementary the most recent year that I can schools were first established, Mystery sequence. What travel to that has all even dig- the natives developed an rule am I using to determine its, with each digit different? I absolute craze for arithmeti- the numbers in this sequence? cal calculations. They laid want a recent year so that I’ll 18, 20, 24, 30, 32, 38, 42, . . . have a chance of enjoying aside their weapons and were some modern amenities.” to be seen going about armed (See Answer 2.38.) (See Answer 2.35.) with slate and pencil, setting sums and problems to one another and to European visi- Mystery sequence. The Mystery sequence. What is tors. The Honourable Freder- great trumpet player Dizzy the next number in the ick Walpole declares that his Lizzy plays a run of 767 sequence? visit to the beautiful island notes, then a run of 294, then was positively embittered by one of 72, then one of 14. 1, 2, 9, 64, 625, ? ceaseless multiplication and How many notes does she (See Answer 2.36.) division” (Robert Briffault play next? (See Answer 2.39.)

Cool Numbers 63 c02.qxd 5/16/05 3:06 PM Page 64

Mystery sequence. There is Cellular communication. Marvin is studying cells that live in a logical pattern to the fol- a warm sea on another planet. These cells emit puffs of tiny lowing sequence of numbers. bubbles when they communicate with each other. The bubbles What is the next number in come in two colors: red and blue, which we can symbolize as the sequence? and . Today, Marvin is trying to determine whether these cells 1, 5, 12, 22, 35, 51, 70, ? have any intelligence. The first cell emits a red bubble , then (See Answer 2.41.) its neighbor emits a red, followed by a blue bubble . The sequence of bubbles grows rapidly: Mystery sequence. You and your friend are enjoying desserts. Your friend, who is eating apple pie with whipped cream, asks you to supply the missing number in this very difficult sequence, which he has written using What rules are the cells using to determine bubble colors in vanilla ice cream: this growing sequence? (See Answer 2.40.) 1, 41, 592, 6535, ? Can you determine the miss- Definition of an . An automorphic number ing number? Your reward is is a number with a power (such as a square or a cube) that the cake or the pie of your ends in that number. For example, 6 is automorphic because choice, which your friend 62 = 36. Here’s another: 6252 = 390,625. The number will deliver to you personally. 40,081,787,109,376 is a magnificent example, because Hurry, the ice-cream numbers are melting! (See Answer 2 40081787109376 = 1606549657881340081787109376 2.42.)

Ostracism. Which product Here is a 100-digit automorphic num- Automorphic acumen. does not belong in this list? ber from Mr. R. A. Fairbairn of Toronto: 21 × 60 = 1,260 6,046,992,680,891,830,197,061,490,109,937,833,490, 15 × 93 = 1,395 419,136,188,999,442,576,576,769,103,890,995,893, 15 × 87 = 1,305 380,022,607,743,740,081,787,109,376 30 × 51 = 1,530 × (The square of this number ends with the digits of this number. 21 87 = 1,827 × The source for the Fairbairn number is Joseph S. Madachy’s 80 86 = 6,880 Madachy’s Mathematical Recreations [New York: Dover, 1979]). (See Answer 2.43.)

64 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 65

The amazing 5. Can you Mystery sequence. A violinist plays a seemingly random riff list four amazing mathemati- of short and long notes over and over again, which can be rep- cal facts about the number 5? resented as a string of 0s (long notes) and 1s (short notes): (See Answer 2.44.) 01101010001010001010001000001010000010001010... What rule is the violinist using to produce this sequence? (See Mystery sequence. What is Answer 2.47.) the value of the missing digit in this sequence? Mystery sequence. What rule is used to generate this very 6 2 5 5 4 5 6 3 ? difficult sequence? (I have never known anyone 3, 4, 5, 7, 11, 13, 17, 23, 29, 43, 47, 83, 131, 137, 359, who was able to solve this 431, 433, 449, 509, 569, 571, 2971, 4723, 5387, . . . puzzle.) (See Answer 2.45.) (See Answer 2.48.)

Mystery sequence. Supply the missing number in this 146, . . . Paul Erdös has product of 35 and 41. Can very difficult sequence: proved that there are infi- you find any others? (See nitely many untouchables. Answer 2.50.) 2, 71, 828, ? (See Answer 2.46.) The Lego sequence. What Jewel thief. A jewel thief rule is used to generate the with long, spindly fingers has Definition of an untouchable Lego sequence? a burlap bag containing 5 sets number. An untouchable num- of emeralds, 4 sets of dia- 1, 3, 7, 19, 53, 149, 419, . . . ber is a number that is never monds, and 3 sets of rubies. the sum of the factors of any (See Answer 2.49.) A “set” consists of a large, a other number. In particular, medium, and a small version an untouchable number is an of each of these gems. The integer that is not the sum of Vampire numbers. Vampire electricity is out, and it is the proper of any numbers are the products of dark. How many gems must other number. (A proper divi- two progenitor numbers that he withdraw from his bag to sor of a number is any when multiplied survive, be sure that he has a complete of the number, except itself. scrambled together, in the set of one of the gems? How Example: the proper divisors vampire number. Consider many gems must he withdraw of 12 are 1, 2, 3, 4, and 6.) one such case: 27 × 81 = to ensure that he has removed The first few untouchables 2,187. Another vampire num- all of the large gems? (See are 2, 5, 52, 88, 96, 120, 124, ber is 1,435, which is the Answer 2.51.)

Cool Numbers 65 c02.qxd 5/16/05 3:06 PM Page 66

The amazing 1/89. Although not widely known, the decimal Dr. Brain’s Mystery expansion of 1/89 (0.01123 . . .) relates to the Fibonacci series sequence. Dr. Brain asks you when certain digits are added together in a specific way. to consider this number Examine the following sequence of decimal fractions, sequence: arranged so that the right-most digit of the nth Fibonacci 1, 3, 6, 10, 15, 21, . . . number is in the n + 1th decimal place: What number comes next? n (See Answer 2.53.) 1 .01 2 .001 3 .0002 Poseidon’s sequence. Posei- 4 .00003 don, the Greek god of the oceans, extended his pitch- 5 .000005 fork and drew on a seashell: 6 .0000008 7 .00000013 727, 98,72, 14, 4 .0112359 . . . He turned back to his Unbelievably, class. “Can anyone tell me how the following sequence 1/89 = arises?” Jessica instantly 0.01123595505617977528089887640449438202247191 . . . stuck up her hand. “Sir, in Fantastic! Why should this be so? Why on Earth is 89 so ‘727, 98, 72, 14, 4,’ each special? term is the product of the digits of the previous one.” “Jessica, you are amazing. Now let me tell you about Palinpoints of arithmetical commutes with rev(n), that is, 727’s persistence. The per- functions. Dr. Joseph Pe and f(rev(n)) = rev(f(n)). Ignore sistence of a number is the others have studied arithmeti- leading 0s. number of steps (4 in our cal functions having domain For example, let f(n) = n2. example) before the number and range that are sets of Because 3112 = 96,721 and collapses to a single digit. integers. Let rev(n) denote 1132 = 12,769. And Now, consider my mighty the digit reversal of the f(rev(311)) = rev(f (311)), so difficult question: What is integer n; for example, that 311 is a palinpoint of f. the smallest number with rev(123) = 321 and rev(–29) Can you find any multidigit persistence 4? I will take = –92. The palinpoints palinpoints of f(n) = you on a tour of all of the (“palindronomic points”) Prime(n), that is, palinpoints Earth’s oceans if you can of an arithmetical function f for prime numbers? (See solve this problem.” (See are arguments n at which f Answer 2.52.) Answer 2.54.)

66 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 67

Mystery sequence. What Each day a zookeeper chooses several Mystery sequence. number comes next? additional animals for the zoo. Row 1 shows his choices for day 1. Row 2 are his choices for day 2, and so forth. What 1; 8; 81; 1,024; ? rule is he using? (See Answer 2.57.)

Very rare square pyramidal numbers that are also square. In the answer to the 69,696 question (see page 68), we defined a square number as an integer of the form y = x2. Square numbers count the number of balls in the follow- ing figure: 1, 4, 9, 16, . . . :

(See Answer 2.55.)

Constructions with 1, 2, and 3. Today, we will construct inte- gers using just 1s, 2s, and 3s, and any number of +, –, and × signs. You are also allowed , but you cannot concatenate numbers to form multidigit numbers. As an exam- Square pyramidal numbers ple, let’s first consider the problem where only the digit 1 is count the number of balls allowed. The number 40 could be written: in a growing pyramid of balls formed by square layers and 40 = (1 + 1 + 1 + 1 + 1) × (1 + 1 + 1 + 1) × (1 + 1) grow according to the If we let f(n) be the least number of digits that can be used sequence 1, 5, 14, 30, . . . to represent n, then we see that f(40) ≤ 11. A contest that For years, people had won- allows only 1s for forming small numbers turns out not to be dered how many numbers very interesting. However, once the digits 2 and 3 are also existed that were both square allowed, the problem becomes fascinating. Here is an exam- and square pyramidal. ple: 121 = (2(2 + 1) + 3)2 Here f(121) ≤ 5. Is this the best you Finally, in 1918, G. N. can do? Watson proved that only one Here is my challenge to you for this contest! Your goal is to multidigit square pyramidal represent the numbers 40, 61, 263, and 500 with as few digits number exists that is also as possible. (See Answer 2.56.) square: 4,900.

Cool Numbers 67 c02.qxd 5/16/05 3:06 PM Page 68

Blue liquid. A mad scien- Mystery consecutive integers. Consider the sequence of tist gazes into a vial of blue integers consisting of all square numbers and cube numbers, liquid. “This substance is still starting at 4: a liquid at minus 40 degrees,” 4, 8, 9, 16, 25, 27, 36, 49, 64, 81, 100, . . . he tells his assistant, Boris. Boris replies, “Is that Notice how 8 and 9 are consecutive integers. Are there any Centigrade or Fahrenheit?” other consecutive numbers in this sequence? For years, mathe- With his dark eyes, the sci- maticians and computer scientists have searched for other entist looks at Boris and says, examples, but, besides 8 and 9, no consecutive powers were “It doesn’t matter.” Why did ever observed. (For further reading, see Paulo Ribenboim, the scientist say that? (See “Catalan’s Conjecture,” The American Mathematical Monthly Answer 2.58.) 103, no. 7 [August–September 1996]: 529-32.) The conjecture that 8 and 9 are the only such consecutive integers was finally proved by Preda Mihailescu of the University of Paderborn in Grasshopper sequences. Germany and published in “A Class Number Free Criterion Consider the numbers gener- for Catalan’s Conjecture,” Journal of Number Theory 99, no. 2 ated by the following expres- (2003): 225–31. sions, where x is an integer, and we start with x = 1. x → 2x + 2 30, 26, and 78. All the num- the positive integers less than x → 6x + 6 bers that have appeared so or equal to n is called “n fac- far, when arranged in numeri- torial,” usually denoted as n! These mappings generate two cal order, are 1, 4, 10, 12, 26, For example, 3! = 3 × 2 × 1. ) branches of a “binary tree” 30, 78, . . . No number seems The number 145 is a facto- (figure 2.2). to appear twice in a row—for rion because it can be example, 1, 4, 10, 10, . . . expressed as Does a number ever appear 145 = 1! + 4! + 5! twice? Maybe we don’t see a repetition now, but would we How many others can you see one after thousands of find? (See Answer 2.60.) years? (See Answer 2.59.) Figure 2.2 Grasshopper sequences. 69,696. What is special about the number 69,696? Pretend that each generation The loneliness of the (See Answer 2.61.) of children requires a day to factorions. Factorions are compute. For example, after numbers that are the sum of one day, we have 4 and 12 as the factorial values for each The beauty of 153. What’s “children” of the “parent” 1. of their digits. (For a positive so special about the number The next day produces 10, integer n, the product of all 153? (See Answer 2.62.)

68 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 69

Definition of a googol. and that 153 saints would rise The majesty of 153. My A “googol” (not to be con- from the dead in the escha- favorite integer is 153. Why? fused with the Internet search ton. St. Augustine was fasci- First, as we just mentioned, engine Google) is a large nated by a New Testament 153 = 13 + 53 + 33. But, number equal to 10100 (1 fol- event (John 21:11) where the more than that, 153 = 1! + 2! lowed by 100 zeroes). The Apostles caught 153 fish + 3! + 4! + 5!, where the “!” word googol was coined by from the Sea of Tiberias. symbols mean factorial. the American mathematician Seven disciples hauled in the Also, when the cubes of the Edward Kasner (1878–1955) fish, using nets. St. Augustine digits of any three-digit in 1938. According to the reasoned that these seven number that is a story, Kasner asked his were saints. Why, you ask? of 3 are added, and the digits young nephew what name Because there are seven gifts of the resulting number are he would give to an incredi- from the Holy Ghost that cubed and added, and the bly large number, and enable men to obey the Ten process continued, the final “googol” was the nephew’s Commandments, Augustine result is 153. For instance, response. An equivalent thought that the disciples start with 369, and you get name for googol is “ten must therefore be saints. the sequence 369, 972, dotrigintillion.” Moreover, 10 + 7 = 17, and if 1,080, 513, 153. Want more we add together the numbers reasons? Because 153 is also 1 through 17, we get a total the 17th , Christians and 153. St. of 153. The hidden meaning and I just told you why St. Augustine, the famous Chris- of all this is that 153 saints Augustine thought that 17 tian theologian, thought that will rise from the dead after was important. It’s the sum of 153 was a mystical number the world has come to an end. 10 (for the Ten Command- ments of the Old Testament) and 7 (for the Gifts of the Spirit in the New Testament). Ten silver boxes. In each of ten shiny, silver boxes in Row 2 in the following diagram, write a one-digit number. The digit in the first box indicates the total number of zeros in Row 2. The box beneath “1” in Row 1 indicates the total number of 1s Erdös equation. I know in Row 2. The box marked “2” indicates the total number of 2s of only three different in Row 2, and so on. solutions to n! + 1 = m2, where n and m are integers. 0123456789 Row 1 Can you find at least one of Row 2 these solutions? (See Answer 2.64.) Is there a solution to this problem? Are there many solu- tions to this problem? (See Answer 2.63.)

Cool Numbers 69 c02.qxd 5/16/05 3:06 PM Page 70

String theory and ancient led to modern string theory, Reversed numbers and math. Ancient math can find which says that all of the palindromes. If you select an obscure applications cen- fundamental particles of integer, reverse its digits, add turies later and can even the universe consist of tiny the two numbers together, describe the very fabric of strings of energy. and continue to reverse and reality. For example, in 1968, add, the result often becomes Gabriele Veneziano, a a palindrome—that is, the researcher at CERN (a Euro- Square numbers. Can you number reads the same in pean particle accelerator lab), tell me every positive integer both directions (see the observed that many proper- whose square contains the example on page 71). With ties of the strong nuclear same decimal digits as its some numbers, this happens force are perfectly described double? (See Answer 2.66.) in a single step. For example, by the Euler beta-function, an 18 + 81 = 99, which is a obscure formula devised for palindrome. Other numbers purely mathematical reasons √ 2 is irrational. Can you may require more steps. For two hundred years earlier by prove, in just a few simple example, 19 + 91 = 110. Leonhard Euler. In 1970, steps, that √2 is irrational? And 110 + 011 = 121. Of three physicists, Nambu, Do this in such a way that a all the numbers under Nielsen, and Susskind, pub- high-school student could 10,000, only 249 fail to form lished their theory behind the understand it and agree with palindromes in 100 steps or beta-function; this eventually you. (See Answer 2.67.) less. In 1984, Gruenberg noted that the smallest number that seems never to become Perrin sequence. Consider a simple sequence defined by palindromic by this process addition: is 196. (It has been tested u(n + 3) = u(n) + u(n + 1). through 50,000 steps.) I have tested the starting num- We can “seed” the sequence with three terms: u(0) = 3, u(1) = ber 879 for 19,000 steps, 0, and u(2) = 2. Then, the first few terms are producing a 7,841-digit number—with no palin- n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 drome resulting. Statistical u(n) 3 0 2 3 2 5 5 7 10 12 17 22 29 39 51 tests indicate an approxi- n prime? p p p p p p mately equal percentage of occurrence of digits 0 Notice that it is easy to locate prime numbers n, because they through 9 for this large num- seem to occur whenever u(n) = n or is a multiple of n. How ber. Similarly, I have tested can this be? Is this always true? If not, what is the first exam- 1,997 for 8,000 steps, with ple to the contrary? (See Answer 2.65.) no palindrome occurring.

70 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 71

Fibonacci snakes. You go Catalan numbers. Catalan numbers are defined by the fol- to a neighborhood pet store lowing rules. The first two Catalan numbers are 1, which we and buy a pair of small can write as C(0) = 1 and C(1) = 1. The nth is snakes and breed them. The defined as

pair produces one pair of n−1 young after one year, and a = CCCnini∑ −−1 second pair after the second i =0 year. Then they stop breed- Can you write a program to print the first twenty Catalan num- ing. Each new pair also pro- bers? The first ten Catalan numbers are 1; 1; 2; 5; 14; 42; 132; duces two more pairs in the 429; 1,430; and 4,862. The Catalan numbers answer the ques- same way, and then stops tion “In how many ways can a regular n-gon be divided into n- breeding. How many new 2 triangles if different orientations are counted separately?” pairs of snakes would you The nth Catalan number can also be computed from have each year? (See Answer 2.68.) ()!2n = C n nn!(+1 )! The nth Catalan number can be approximated by Pascal’s triangle. One of the most famous integer pat- 4n C ≈ terns in the history of mathe- n π n 32/ matics is Pascal’s triangle. Blaise Pascal was the first to write a treatise about this pro- gression in 1653, although Each number in the triangle Palindromes on parade. the pattern had been known is the sum of the two num- Palindromic numbers are by Omar Khayyam as far bers above it. The role that positive integers that “read” back as A.D. 1100. The first Pascal’s triangle plays in the same backward or for- seven rows of Pascal’s trian- probability theory, in the ward. For example, 12,321; gle can be represented as expansion of binomials of the 11; 261,162; and 454 are form (x + y)n, and in various all palindromic numbers. 1 number theory applications How many palindromic num- 1 1 has been discussed in numer- bers are there that are less 1 2 1 ous references. If similar than or equal to the integer 1 3 3 1 expansions are made for P? We call this quantity (x + y + z)n for successive W(P). For example, 1 4 6 4 1 powers of n, Pascal’s Pyramid W(3) = 3, since 1, 2, and 3 1 5 10 10 5 1 can be generated. are palindromes. (See 1 6 15 20 15 6 1 Answer 2.69.)

Cool Numbers 71 c02.qxd 5/16/05 3:06 PM Page 72

Alpha and omega. Dr. Word frequency. What is The height of irrationality. Brain writes two unknown your estimate of the relative A wise man once challenged, integers, alpha and omega, occurrences of the English “Show, by a simple example, on a scrap of paper and words one, two, three, four, that an irrational number places the scrap in a black . . . , twenty on the Internet? raised to an irrational power box. Each integer is between Do you think that the number need not be irrational.” Can 2 and 99 inclusive. Dr. Brain of occurrences smoothly you do it? (See Answer 2.74.) tells his wife the product of decreases, starting from one alpha and omega. She looks to twenty? (See Answer 2.72.) at the product and says, A common fear. What is “Simply by looking at the paraskevidekatriaphobia? product, I can’t tell what Bad luck. Why is the num- (See Answer 2.75.) alpha and omega are.” ber 13 considered unlucky? From this little informa- (See Answer 2.73.) tion, can we exclude any values for alpha and omega to make a more informed Too many 3s. One unusual paper in a prestigious chemical guess at the possible values journal reported that many products and quotients of funda- of alpha and omega? (See mental constants have values very close to the number 3 Answer 2.70.) multiplied by a :

Function Numerical Value “A mathematician is a c 2.9976 × 1010 machine for turning coffee (ε/m )1/2 2.9995 × 101 into theorems” (Paul Erdös, 0 m /(2πε)1/2 3.0009 × 109 quoted in Paul Hoffman, The 0 √ × –14 Man Who Loved Only Num- m0 2.9990 10 bers, 1999). 2πε 2.9971 × 10–9 3Gc/2 2.9967 × 103

Does pi contain pi? Pi is an The author, J. E. Mills, claims that the high occurrence of infinite string of digits and values extremely close to the number 3 is “amazing.” (Do you contains an infinite number of think it is amazing if the results depend on the units in which

finite strings of digits. In fact, the constants are expressed?) In the table, m0 is the mass of an it probably includes every electron, c is the speed of light, G is the gravitational constant, possible string of finite digits. and ε the electronic charge. (J. E. Mills, “Relations between Does pi contain itself? (See Fundamental Physical Constants,” Journal of Physical Chem- Answer 2.71.) istry 36 (1932): 1089–1107.)

72 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 73

Apocalyptic Fibonacci numbers. The 3,184th Fibonacci num- 6 = 1 + 2 + 3). The perfection ber is apocalyptic, having 666 digits. For numerologist read- of the number 6 led to it ers, the apocalyptic number is becoming the symbol of cre- ation and reinforcing the 1167243740814955412334357645792141840689747174434394372363312 notion of God’s existence. 8273626208245238531296068232721031227888076824497987607345597 So important were perfect 1975198631224699392309001139062569109651074019651076081705393 numbers to the Jews in their 2060237984793918970003774751244713440254679507687069905503229 search for God that Rabbi 7133437094009365444241181520685790404104340056856808119437950 Josef ben Jehuda Ankin, in the 3001967669356633792347218656896136583990327918167352721163581 twelfth century, recommended 6503595776865522931027088272242471094763821154275682688200402 the study of perfect numbers 5850498611340877333322087361645911672649719869891579135588343 in his book Healing of Souls. 1385556958002121928147052087175206748936366171253380422058802 Why did the ancients have 6552914033581456195146042794653576446729028117115407601267725 such a fascination with num- 61572867155746070260678592297917904248853892358861771163 bers? Could it be that in diffi- cult times, numbers were the Definition of an emirp. An 60–120) knew of the first only constant thing in a emirp is a prime number that four: 6, 28, 496, and 8,128. chaotic world? turns into another prime The next two are 33,550,336 number when the digits are and 8,589,869,056. All per- reversed. Emirp is prime fect numbers discovered thus Ten and the Jews. Ten spelled backward. Example: far are even. appears often in Judaism. 37 and 73. When you reverse There are 10 commandments. the digit of most primes, you Judaism and perfect num- The Zohar, the central text of get a composite (43 becomes bers. The ancient Jews tried to the Kabbalah, says that the 34). Here are the first few use numbers to prove to athe- world was created in 10 emirps: 13, 17, 31, 37, 71, ists that the Old Testament words, because in Genesis 1, 73, 79, 97, 107, 113. . . . was part of God’s revelation. the phrase “And God spoke” The number 1,597 turns The famous Jewish philoso- is repeated not less than 10 out to be an emirp because pher and theologian Philo of times. There are 10 genera- 7,951 is also prime. Alexandria (20 B.C.–A.D. 40) tions between Adam and justified the story of Genesis Noah. There are 10 plagues in by first validating the asser- Egypt. On 10 Tishri, the Jew- Definition of a perfect tion that God created the ish Day of Atonement, the number. A , world in six days. He claimed confession of sins is repeated like 6, is the sum of its proper that the six-day creation must 10 times. On Rosh Hashanah, divisors (6 = 3 × 2 × 1 = 3 + be correct because 6 was the the Jewish New Year, 10 bibli- 2 + 1). The ancient mathe- first perfect number (since cal verses are read in groups matician Nicomachus (A.D. 6 is the sum of its divisors, of 10.

Cool Numbers 73 c02.qxd 5/16/05 3:06 PM Page 74

Christianity, Islam, and per- Sequence of primes. Carlos Rivera (primepuzzles.net)

fect numbers. Christians in the found the largest known sequence of primes p1, p2, p3, . . . pk 2 twelfth century were fasci- such that pi + 1 = 4pi + 1. The largest sequence has five mem- nated by the second perfect bers, starting with the prime 197,072,563: number, 28. For example, • 197072563 (9 digits) → since the lunar cycle is 28 • 155350380349555877 (18) → days, and because 28 is per- → fect, Albertus Magnus (A.D. • 96534962699006707074223324580956517 (35) 1200–1280), a philosopher • 372759960931944651956837446824866359434277985 and a theologian, expressed 14276247679661962579085157 (71) → the idea that the mystical body • 555799953895939612959240524483318020406137373 of Christ in the Eucharist 267839747469429032642724875296960105588196351 appears in 28 phases. 239745906766330878232666339034124111494274823 The perfect number 28 also 0858597 (142) plays an important role in Islam, because religious Mus- lims connect the 28 letters of years. Another Lamech 7 ovens, 7 scoops of earth the alphabet in which the should be avenged 77-fold from 7 door sockets, 7 pieces Koran is written with the 28 (Genesis 4:24). Zechariah, a of pitch from 7 ships, 7 hand- “lunar mansions.” For exam- major biblical prophet, speaks fuls of cumin, and 7 hairs ple, the famous medieval of the 7 eyes of the Lord. The from the beard of an old dog, mathematician al-Biruni idea of 7 divine eyes occurs in and tie them to the neck-hole (1048) suggested that this Sufism in connection with 7 of the shirt with a white connection proves the close important saints who are the twisted cord.” relation between the cosmos eyes of God. God is praised and the word of God. Note by creatures with 70,000 also that the Koran names 28 heads, each of which has The number 666 and soci- prophets before Mohammed. 70,000 faces. There are 7 ety. On July 10, 1991, Procter points in the body upon which & Gamble announced that it mystics concentrate their spir- was redesigning its moon- Number 7. There is an itual power. Seven is impor- and-stars company logo. The incredibly large number of tant for Kabbalists. In fact, company said that it elimi- occurrences of 7 in all reli- Trachtenberg, in his Jewish nated the curly hairs in the gions. In the Old Testament, Magic and Superstition, men- man-in-the-moon’s beard that Lamech, the father of Noah tions the following cure for to some looked like 6s. The and the son of the famous tertian (malarial) fever: “Take fall 1991 issue of the Skepti- long-lived Methuselah, is 7 pickles from 7 palmtrees, 7 cal Inquirer notes that “the born 7 generations after chips from 7 beams, 7 nails number 666 is linked to Satan Adam. Lamech lives for 777 from 7 bridges, 7 ashes from in the Book of Revelation,

74 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 75

and this helped fuel the false Continued fraction. Here’s a Definition of coprime or rel- rumors fostered by funda- nice-looking continued frac- atively prime. Number theorists mentalists.” A federal judge tion for you to ponder late at call two numbers A and B in Topeka, Kansas, has night: that have no common factors approved settlements in the (except 1) “relatively prime” 1 last of a dozen lawsuits filed 21=+ or “coprime.” The probability by Procter & Gamble Co. to 2 + 1 that two numbers selected at 2 + 1 1 2 + π 2 halt rumors associating the ... random are coprime is 6/ . company with Satanism. Pi crops up in all areas of Here’s another: mathematics. 1 More on 666. President 31=+ 1+ 1 Ronald Reagan altered his 2 + 1 1 Picasso on computers. 1 + 1 California address to avoid 2+ 1+... “Computers are useless. They the number 666. His name can only give you answers” becomes 666 if you count the (Pablo Picasso). letters in his name. The incredible π2/6. The value π2/6, denoted by λ, is every- Even more on 666. Do you where in mathematics. For example, it appears in the sum of find it interesting that when the reciprocals of the squares of the positive integers: you add up the Roman π 2 ∞ 1 numerals I = 1, V = 5, X = λ ==∑ 2 10, L = 50, C = 100, and D = 6 n =1 n 500, you get 1 + 5 + 10 + 50 The probability that a randomly chosen integer is square + 100 + 500 = 666? free (not divisible by a square) is 1/λ. The hypervolume of a 4-dimensional hypersphere = 3λr4. The integral from 0 to infinity of x/(ex – 1)dx is λ. We also have: Too much more on 666. ∞ On May 1, 1991, the British π 2 19  =−2e 3 ∑ cos  vehicle licensing office 2  22  6 n =1 n nnππ+−9 stopped issuing license plates bearing the number 666. The π 2 ∞ cos(2n ) =−+π 1 ∑ winter 1992 issue of the 2 6 = n Skeptical Inquirer reports two n 1 reasons given for the deci- Yes, there are countless examples of π2/6 in the realm of sion: cars with “666” plates mathematics. In fact, Clive Tooth is so excited about the were involved in too many fantastic occurrences of π2/6 in mathematics and beyond accidents, and there were that he has devoted and dedicated a web page to this topic: “complaints from the public.” www.pisquaredoversix.force9.co.uk/.

Cool Numbers 75 c02.qxd 5/16/05 3:06 PM Page 76

Ramanujan’s most “beautiful” formula. Ramanujan’s formula, expressed as a fraction and as follows, draws a shocking connection between an infinite can only be approximated series (at left) and a continued fraction (middle). It is wonder- using computers. Knox ful that both the series and the continued fraction can be demonstrated that amateurs expressed through the famous numerical constants π and e, continue to make strides in and their sum mysteriously equals √πe/2 . mathematics and can help to find more accurate ways of 1 1 1 1 1+ + + + +=... calculating fundamental 13⋅ 135⋅⋅ 1⋅⋅⋅357 1⋅⋅⋅⋅3579 mathematical constants.

1 πe = π 12+ 1 The vast application of . 1+ 2 3 π 1 + As an example of how far 4 1+ 1+... has drifted from its simple geometrical interpretation, consider the book A Budget of Paradoxes, where Augus- Calculating pi. In 1998, outside by those uninitiated tus De Morgan explains an seventeen-year-old Colin into its mysteries. . . . Under- equation to an insurance Percival calculated the five standing [its] methods is salesman. The formula, trillionth binary digit of pi. reserved for those who devote which gives the chances that His accomplishment is sig- years to the study of mathe- a particular group of people nificant not only because it matics” (Andrew Gleason, would be alive after a certain was a record-breaker, but “Evolution of an Active number of days, involves the because, for the first time Mathematical Theory,” Sci- number π. The insurance ever, the calculations were ence, 1964). salesman interrupts and distributed among twenty- exclaims, “My dear friend, five computers around the that must be a delusion. world. In all, the project, Amateurs and e. In 1998, What can a circle have to do dubbed PiHex, took five the self-taught inventor Har- with the number of people months of real time to com- lan Brothers and the meteor- alive at the end of a given plete and one and a half years ologist John Knox developed time?” of computer time. an improved way of calculat- Even more recently, π has ing a fundamental constant e turned up in equations that (often rounded to 2.718). describe subatomic particles, The temple of mathematics. Studies of exponential light, and other quantities that “Like many great temples of growth—from bacterial have no obvious connection some religions, mathematics colonies to interest rates— to circles. may be viewed only from the rely on e, which can’t be

76 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 77

The ubiquity of π. “Every and natural languages and Even prime number. The now and again one comes gives insight into the ultimate numeral 2 is the only even across an astounding result potential of machines. You prime number. In the words that closely relates two for- can learn more about this of Richard Guy, this makes it eign objects which seem to constant here: “Chaitin’s the “oddest prime of all.” have nothing in common. Constant,” en2.wikipedia.org/ Notice that 2 + 2 = 2 × 2, Who would suspect, for wiki/Chaitin’s_constant and which gives it a unique example, that on the average, “Chaitin’s Constant at Math- arithmetic property among the number of ways of world,” mathworld.wolfram. the positive integers. expressing a positive integer com/ChaitinsConstant.html. n as a sum of two integral squares, x2 + y 2 = n, is π” (Ross Honsberger, Mathe- Definition of Euler’s gamma. Euler’s gamma (γ) has a numeri- matical Gems III, 1997). cal value of 0.5772157 . . . This number links the exponentials and logs to number theory, and it is defined by the limit of Definition of Chaitin’s (1 + 1/2 + 1/3 + . . . + 1/n – log n) as n approaches infinity. constant. Chaitin’s constant The reach of γ is far and wide, playing roles in such diverse (Ω) is an irrational number areas as infinite series, products, probability, and definite that gives the probability that integral representations. a “Universal Turing Machine” Calculating γ has not attracted the same public interest as (for any set of instructions) calculating π, but γ has still inspired many ardent devotees. will halt. The digits in Ω are While we presently know π to trillions of decimal places, only random and cannot be com- several thousand places of γ are known. The evaluation of γ is puted prior to the machine considerably more difficult than π. Here are the first few digits: halting. (A Turing Machine 0.57721 56649 01532 86060 65120 90082 40243 is a theoretical computing 10421 59335 93992 35988 05767 23488 48677 machine that consists of an 26777 66467 09369 47063 29174 67495 . . . infinitely long magnetic tape on which instructions can be Today, γ is often known as the Euler-Mascheroni constant; written and erased, a single- however, the term Euler’s constant is also used because in bit register of memory, and a 1781, Euler symbolized this constant by γ and calculated it to processor capable of carrying sixteen digits. No one knows whether γ is rational, algebraic, out certain simple instruc- or transcendental. We do know that if γ is rational, its denomi- tions. The machine keeps nator is huge. I talk more about γ in chapter 3 when discussing processing instructions until the harmonic series. it reaches a particular state, John Conway and Richard Guy write in The Book of Num- causing it to halt.) Chaitin’s bers, “Nobody has shown that γ cannot be rational. We’re pre- constant has implications for pared to bet that it is transcendental, but we don’t expect to see the development of human a proof during our lifetime.”

Cool Numbers 77 c02.qxd 5/16/05 3:06 PM Page 78

Poussin proof. In 1838, Cool equation. The follow- Mathematics and passion. Dirichlet proved that the aver- ing equation is certainly eye- “The union of the mathemati- age number of divisors of all catching. Notice that the cian with the poet, fervor the numbers from 1 to n is sums on each side of the “=” with measure, passion with very close to ln n + 2γ – 1. In sign total 365—the number correctness, this surely is the 1898, de la Vallee Poussin of days in a year. ideal” (William James, proved that if a large number Collected Essays, 1892). 102 + 112 + 122 = 132 + 142 n is divided by all the primes up to n, then the average frac- tion by which the quotient falls short of the next whole γ number is . For example, if Calculating π. In 1996, the researchers David Bailey, Peter we divide 29 by 2, we get Borwein, and Simon Plouffe found a novel formula to calcu- 14.5, which falls short of 15 late any digit of π without having to know any of the preced- by 0.5. ing digits, an accomplishment that was assumed for centuries to be impossible.

Beautiful equation. Here’s ∞ 1  4 2 1 1  a beautiful and wondrous π = ∑  − − −  k = 16  81kk+ 84+ 85 kk+ 86+  expression involving a limit k 0 that connects not only π and (This formula permits one to compute the nth binary or e, but also radicals, , digit of π by means of a simple scheme that and infinite limits. Surely, requires very little memory and no multiple precision this little-known beauty software.) makes the gods weep for joy:

enn ! lim = 2π n→∞ nnn ⋅ Large triangular numbers. We can construct arbitrarily large triangular numbers by adding zeros to 55, such as in 55; 5,050; 500,500; and 50,005,000. These are all triangular! Therefore, one large triangular number is Ubiquitous 2. Powers of 2 appear more frequently in 50000000000000000000000000000000 \ mathematics and physics 50000000000000000000000000000000 than do those of any other number. (The “\” indicates continuation of the number on the next line.) We defined triangular numbers earlier, in the puzzle titled “Dr. Brain’s mystery sequence.”

78 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 79

Prime triangle. In the The Golay-Rudin-Shapiro sequence. This is a famous and seventeenth century, mathe- unusual number sequence in the history of mathematics. We maticians showed that the can examine the terms in the GRS sequence {a(n)}, which can following numbers are all be defined recursively by the equations prime: a(2n) = a(n), 31 a(2n + 1) = (–1)n a(n), n ≥ 0, 331 3331 a(0) = 1 33331 We know from past work completed in the 1990s that the solu- 333331 tion to this recurrence may be expressed as 3333331 k 33333331 ++ =−ee01... ekk− 1 e =r = an() (120 ) , where n∑ er , er or 1 At the time, some mathemati- r =0 cians were tempted to assume Thus, the GRS sequence is a sequence of ±1s. The first few that all numbers of this form terms of the sequence, starting with n = 0, are 1, 1, 1, –1, 1, 1, were prime; however, the –1, 1, and the big question is, Does the number of +1s exceed next number in the pattern— the number of –1s as we examine more terms? In other words, 333,333,331—turned out as we add up more terms, do successive sums remain positive? not to be prime because Mathematically, the question can be stated, Is s(n) > 0 for n ≥ 333,333,331 = 17 × 0, where s(n) is defined as 19, 607,843. n sn()=>∑ ak (), n 0 . k =0 73,939,133. Amazingly, The values of s(n) start out as 1, 2, 3, 2, 3, 4, 3, 4, 5, 6, 7, 6, 5, this is the largest number 4, 5, 4, . . . I’d be curious to hear from readers who have solved known such that all of its dig- this mystery. (For further reading, see John Brillhart and its produce prime numbers as Patrick Morton, “A Case Study in Mathematical Research: The they are stripped away from Golay-Rudin-Shapiro Sequence,” The American Mathematical the right! Monthly 103, no. 10 [December 1996]: 854–69.) 73939133 7393913 739391 Prime number theorem. In called the prime number the- 73939 the nineteenth century, it was orem and written as 7393 n shown that the number of π ()n ≈ 739 primes less than or equal to n ln n 73 approaches n/(ln n) as n gets A rough estimate for the nth 7 very large. This is often prime is n × ln n.

Cool Numbers 79 c02.qxd 5/16/05 3:06 PM Page 80

Pi-prime. The number Undulating primes. Undulating prime numbers are primes 31,415,926,535,897,932,384, with oscillating digits. Here’s a nice one for you: 626,433,832,795,028,841 7 + 720 × (10049 – 1)/99 = contains the first 38 decimal digits of pi and is also a 72727272727272727272727272727272727272727272727 prime number. Mark Ganson 272727272727272727 has searched for other pi- primes and has found no oth- 2727272727272727272727272727272727 ers with more than 38 digits, Mark Ganson discovered the following 515-digit example in even after he scanned succes- 2004: sive digits to create increas- ingly large numbers up to the 92929292929292929292929292929292929292929292929292 first 3,000 digits of pi. 92929292929292929292929292929292929292929292929292 92929292929292929292929292929292929292929292929292 92929292929292929292929292929292929292929292929292 God’s formula. This for- 92929292929292929292929292929292929292929292929292 mula is one of the most pro- 92929292929292929292929292929292929292929292929292 found and enigmatic formulas 92929292929292929292929292929292929292929292929292 known to humans: 92929292929292929292929292929292929292929292929292 92929292929292929292929292929292929292929292929292 1+ eiπ = 0 92929292929292929292929292929292929292929292929292 Some people believe that this 929292929292929 compact formula is surely proof of a Creator. Others have actually called 1 + eiπ union was regarded as a mys- and therefore we know it must = 0 “God’s formula.” Edward tic union, containing repre- be the truth.” Kasner and James Newman, sentatives from each branch in Mathematics and the Imag- of the mathematical tree: ination, note, “We can only arithmetic is represented by 0 Golden ratio. The golden reproduce the equation and and 1, algebra by the symbol ratio, symbolized by φ, not stop to inquire into its i, geometry by π, and analysis appears with amazing fre- implications. It appeals by the transcendental number quency in mathematics and equally to the mystic, the sci- e. The Harvard mathematician nature. I can explain the entist, the mathematician.” Benjamin Pierce said about proportion most easily by This formula of Leonhard the formula, “That is surely dividing a line into two seg- Euler (1707–1783) unites the true, it is absolutely paradoxi- ments so that the ratio of the five most important symbols cal; we cannot understand it, whole segment to the longer of mathematics: 1, 0, π, e, and and we don’t know what it part is the same as the ratio of i (the square root of –1). This means, but we have proved it, the longer part to the shorter

80 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 81

part: AB/AC = AC/CB = 1.61803 . . . (See figure 2.3a).

Figure 2.3a Golden ratio.

If the lengths of the sides of a rectangle are in the golden ratio, then the rectangle is a golden rectangle. It’s possible to divide a golden rectangle Figure 2.3b Eye of God. into a square and a golden God.” We can keep magnify- rithmic spiral that “envelops” rectangle. Then we can cut ing the figure but can never the Eye of God. Logarithmic the smaller golden rectangle get to the Eye using finite spirals are everywhere— into a smaller square and a magnifications. seashells, horns, the cochlea golden rectangle. We could The golden rectangle is the of the ear—anywhere that continue this process indefi- only rectangle from which a nature needs to fill space eco- nitely, producing smaller and square can be cut so that the nomically and regularly. A smaller golden rectangles. remaining rectangle will spiral is strong and uses a If you draw a diagonal always be similar to the origi- minimum of materials. While from the top left of the origi- nal rectangle. If we connect expanding, it alters its size nal rectangle to the bottom the vertices, we form a loga- but never its shape. right, and then from the bot- tom left of the baby golden rectangle to the top right, the Mathematical cranks. According to Underwood Dudley’s intersection point shows the Mathematical Cranks, one eccentric mathematician put forth point to which all the baby this seemingly elementary equation that, alas, incorrectly golden rectangles converge relates the golden ratio φ and π in a compact formula: (see figure 2.3b). And the 6 diagonals’ lengths are in φπ2 = golden ratio to one another. 5 In honor of the various Another favorite but incorrect formula relates the value of pi “divine” properties attributed to various physical constants, such as the speed of light, c, and to the golden ratio over the Planck’s constant, h: centuries, I call the point to E which all the golden rectan- 5 hc/ kλ T πλ=⋅−Jeλ ()1 gles converge “The Eye of 12/ mc 2

Cool Numbers 81 c02.qxd 5/16/05 3:06 PM Page 82

Golden ratio. The golden Approximation to e. Ed Cool formula for π. I like ratio φ = (1 + √5 )/2 pops up Pegg Jr. derived the following this formula (Calvin Claw- in the most unlikely of approximation for Euler’s son, Mathematical Mysteries, places. In figure 2.4, the number: 1996, p. 138): radius of the large circle e ≈−3 5 divided by the diameter of 63 4 1 =+ one of the small circles is the 1 π 3+ 4 5+ 9 golden ratio. 16 7+ 25 9+ π 36 Approximation for . Bor- 11+ 13+... wein, Borwein, and Bailey once showed that 1+π  1  1+  ≈ π Cool formula for π. I also  π  like this formula:

Figure 2.4 Golden circles. 41 = π + 12 1 2 2+ 3 52 Cool formula for π. In 1666, Isaac Newton found π to 16 2+ 72 2+ places using 22 terms of this series: ...

33  1 1 1 1  π =+24 −− − − ...  ⋅ 579⋅ ⋅  4 12 52 28 2 72 2 Physics and π. In quantum Regarding this queer formula, he wrote, “I am ashamed to tell physics, the Heisenberg you to how many figures I carried these computations, having Uncertainty Principle no other business at the time.” involves π. Heisenberg’s prin- ciple states that one cannot simultaneously know both the Ramanujan π formula. Srinivasa Ramanujan (1887–1920) position and the momentum proposed this formula for computing pi: of a given object to arbitrary precision. One can measure 122∞ ()!(4kk1103+ 26390 ) = ∑ the uncertainty in position ∆x π 44k 9801 k =0 (!)k 396 and the uncertainty of the momentum ∆p and get Ramanujan’s notebooks contain about 4,000 theorems, with about two-thirds being new to mathematics. The other one- h ∆∆ ≥ third represented independent rediscoveries of other mathe- xp 4π maticians’ work (Robert Kanigel, The Man Who Knew Infinity, 1991, p. 203). where h is Planck’s constant.

82 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 83

Isaac Asimov and π. Isaac Chudnovsky π formula. Near the end of the twentieth cen- Asimov once proposed the tury, the Chudnovsky brothers proposed this formula for com- mnemonic technique to puting π: memorize a sentence in which 1 ∞ ()()!(−+16k kk13591409 545140134 ) the number of letters in each = 12 ∑ π 3332k + / word in turn is equal to each k =0 ()!(!)3kk640320 corresponding digit of pi, 3.1415 . . . : How I want a drink, alcoholic, of course, after the heavy lectures Pi. Here is π to 1,000 decimal digits: involving quantum mechanics! 3.14159265358979323846264338327950288419716939937510582097494 4592307816406286208998628034825342117067982148086513282306647 0938446095505822317253594081284811174502841027019385211055596 Cool formula for π. I love 4462294895493038196442881097566593344612847564823378678316527 this pretty-looking formula 1201909145648566923460348610454326648213393607260249141273724 for pi: 5870066063155881748815209209628292540917153643678925903600113 ∞ 3053054882046652138414695194151160943305727036575959195309218 ∏(1+ 1 ) 41n2 − 6117381932611793105118548074462379962749567351885752724891227 π = n=1 ∞ 9381830119491298336733624406566430860213949463952247371907021 ∑ 1 7986094370277053921717629317675238467481846766940513200056812 41n2 − n=1 7145263560827785771342757789609173637178721468440901224953430 (From J. Sondow, “Problem 1465495853710507922796892589235420199561121290219608640344181 88,” Math Horizons [Septem- 5981362977477130996051870721134999999837297804995105973173281 ber 1997], pp. 32 and 34). 6096318595024459455346908302642522308253344685035261931188171 0100031378387528865875332083814206171776691473035982534904287 5546873115956286388235378759375195778185778053217122680661300 Mathematics and God. 19278766111959092164201989 “One merit of mathematics few will deny: it says more in fewer words than any other Euler and primes. Leonhard On the value of Euler’s science. The formula, eiπ = –1 Euler expressed a pleasing number e: “Dead bodies lose expressed a world of thought, and remarkable infinite prod- heat exponentially, and there- of truth, of poetry, and of the uct formula that relates pi to fore e can be used in an religious spirit. ‘God eter- the nth prime number: appropriate equation to deter- nally geometrizes’” (David 2 mine how long individuals π = Eugene Smith, in N. Rose, ∞ have been dead” (Calvin ()(−−112p )/ Mathematical Maxims and  + n  Clawson, Mathematical ∏ 1   p n  Minims, 1988.) n =2 Mysteries, 1996).

Cool Numbers 83 c02.qxd 5/17/05 9:41 AM Page 84

Cool π formula. James Cool π equation. Beginning with any positive integer n, Gregory (1638–1675) and your job is to round it up to the nearest multiple of (n – 1), Gottfried Leibniz (1646–1716) then up to the nearest multiple of (n – 2), and so on, up to the found this eye candy for pi: nearest multiple of 1. Let f (n) denote the result. Then the ratio turns out to be, amazingly, π =−+−41( 1 1 1 ...) 3 5 7 n 2 Alas, this sum converges so = π lim slowly that 300 terms are not n→∞ fn() sufficient to calculate π cor- For example, f (10) = 34, because the procedure yields: 10 → rectly to two decimal places. 18 → 24 → 28 → 30 → 30 → 32 → 33 → 34. It’s possible to prove that as n tends to infinity, the ratio n2/f (n) tends to π. Note that π is the limit of many infinite sums and infinite Rivera palindromic π: products. However, this is one of the most remarkable proce- 666 dures that I’ve ever seen. If we let g(n) = n2/f (n), then, for π ≈ example, g(22) = 22/7, a useful approximation. The most 212 accurate approximation with n < 10,000 is g(5,076) ~ 3.141592357, which has the first six decimal places correct. Mathematical laws. “Num- Figure 2.5 is a graph of g(n) versus n, with n in the range of bers written on restaurant 0 to 200. A horizontal line is at y = π. Notice that g(n) does bills within the confines of exceed π occasionally. restaurants do not follow the same mathematical laws as g(n) numbers written on any other pieces of paper in any other 3.25 parts of the Universe. This single statement took the 3.2 scientific world by storm. It 3.15 pi completely revolutionized it. So many mathematical con- 3.1 ferences got held in such 3.05 good restaurants that many of the finest minds of a genera- n 50 100 150 200 tion died of obesity and heart failure and the science of math was put back by years” Figure 2.5 g(n) is a close approximation to π as n increases. (Douglas Adams [1952– 2001], Life, the Universe and Everything, 1995).

84 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 85

Knowing π. “It can be of intolerable not to know” Gosper equation. William no practical use to know that (E. C. Titchmarsh, in N. Gosper found this nice- π is irrational, but if we can Rose, Mathematical Maxims looking relationship: know, it surely would be and Minims, 1988). 2 n π lim ∏ = 41/ π n→∞ −1 in= 2tan i Cool π formula. Leonhard Euler found this cute-looking formula for π:

π =⋅++61( 1 1 ++1 ...) 2 2223 4 Cool π equation. An approximation for π, from I presented this formula in a slightly different format a few Schroeppel and Gosper’s π2 pages earlier when I talked about how the value /6 is every- “Hakmem”: where in mathematics. Of this and related formulas for π, ∞ nn!! 4 2π Calvin Clawson writes in Mathematical Mysteries: “How can ∑ =+ this be? How can the sum of an infinite series be connected to n=0 ()!2n 3 93 the ratio of the circumference of a circle to its diameter? This demonstrates one of the most startling characteristics of math- ematics—the interconnectedness of, seemingly, unrelated ideas. . . . It is as if there existed some great landscape of Cool π equation. The meta-mathematics, and we are only seeing the peaks of mathe- value of (π + 20)i is matical mountains above the valley fog.” extremely close to the Could some intelligent aliens have such superior brains that integer –1. In particular, the fog is lifted from their eyes and all the interconnections (π + 20)i ≈ –0.9999999992 – become apparent? 0.0000388927i.

Cool π formula: Mathematical microscope. π   “If the entire Mandelbrot set =+1 1 1111++++2 ( 3 ( 4 ( ...))) 2 3  5 7 9  were placed on an ordinary sheet of paper, the tiny sec- tions of boundary we exam- ine would not fill the width Cool Ramanujan π formula. Ramanujan discovered this of a hydrogen atom. Physi- gem for computing π—a method that involves two attractive- cists think about such tiny looking double factorials. objects; only mathematicians 1 ∞ ()()!!1103+−− 26390nn 2 1()!! 4 n 1 have microscopes fine = 8 ∑ enough to actually observe π 42nn+ 3 n =0 99 32 (!)n them” (John Ewing, “Can We

Cool Numbers 85 c02.qxd 5/16/05 3:06 PM Page 86

See the Mandelbrot Set?” απφ20=⋅13 14 10 −43 Stonehenge! Weisstein The College Mathematics includes such curious very Journal, 1995). At his “World of Physics” close approximations given Web site (scienceworld. by wolfram.com/physics/), Eric α–1 ≈ π –1 –1 W. Weisstein notes that the 44 – cos (e ) = 1/137. The fine-structure fine structure constant contin- 137.03600 . . . constant in physics is a ues to fascinate numerolo- and dimensionless number that is gists, who have claimed that very nearly equal to 1/137. It connections exist between α, α–1 ≈ 96(e1/2 + 21/3)1/3 = is also called the “electro- the Cheops pyramid, and 137.03599 . . . magnetic coupling constant” and measures the strength of the electromagnetic force that Prime numbers and e. The mathematician Joseph Pe enjoys governs how electrically trying to write e (2.7182 . . . ) as a concatenation of prime charged elementary particles, numbers. Here is the beginning of his research: such as electrons, interact with photons. The German 2, physicist Arnold Sommerfeld 7, introduced the quantity in 1828182845904523536028747135266249775724709369995957496696762 1916. Because the constant is 7724076630353547594571382178525166427427466391932003059921817 nearly equal to 1/137, some 4135966290435729003342952605956307381323286279434907632338298 mathematicians and mystics 8075319525101901157383418793070215408914993488416750924476146 have wondered whether it has 0668082264800168477411853742345442437107539077744992069551702 a more cosmic significance or 7618386062613313845830007520449338265602976067371132007093287 a mathematical significance 0912744374704723069697720931014169283681902551510865746377211 like other fundamental con- 1252389784425056953696770785449969967946864454905987931636889 stants, such as pi or e. The 2300987931277361782154249992295763514822082698951936680331825 physicist Arthur Eddington at 2886939849646510582093923982948879332036250944311730123819706 one time argued that the 841614039701983767932068328237646480429 (649 digits), number somehow related to the number of electrons in the 5, universe—a theory that most 3, physicists did not accept. Just 11, this year, I even saw a paper . . . by a creative Russian To find these numbers, Pe continues to scan by adding a digit researcher that relates the fine at a time until he finds a prime. For example, scanning “1719” α π structure constant to and from left to right, we see first the prime, 17; then, continuing φ the golden ratio : with the leftover digits, we see the prime 19.

86 A Passion for Mathematics c02.qxd 5/18/05 12:51 PM Page 87

Feynman and 1/137. “There Mandelbrot set and π. In 1991, David Boll discovered a is a most profound and beauti- strange connection between π and the classic Mandelbrot set ful question associated with (figure 2.6), which can be visualized as a bushy object that the observed coupling con- describes the behavior of z = z2 + c, where z and c are stant, the amplitude for a real complex numbers. electron to emit or absorb a real photon. [A simple num- ber 1/137] has been a mystery ever since it was discovered more than fifty years ago, and all good theoretical physicists put this number up on their wall and worry about it. Immediately you would like to know where this number for a coupling comes from: is it related to pi or perhaps to the base of natural logarithms? Nobody knows. It’s one of the greatest damn mysteries of physics: a magic number that comes to us with no under- standing by man. You might say the ‘hand of God’ wrote that number, and ‘we don’t know how He pushed His pencil.’ We know what kind of a dance to do experimentally to measure this number very accurately, but we don’t know Figure 2.6 Mandelbrot set. what kind of dance to do on the computer to make this number come out, without Boll studied points lying on a vertical line through the putting it in secretly!” (Rich- point z = (–0.75, 0) and discovered that the number of itera- ard Feynman, QED, 1988). tions needed for these points to escape a circle of radius 2 (centered at the origin) is related to π. In particular, consider Cool π equation. Note that points z = –0.75 ± εi and the n iterations needed for orbits eπ – π is almost an integer. It of these points to escape the circle. As ε goes to 0, nε equals 19.9990999 . . . approaches π.

Cool Numbers 87 c02.qxd 5/16/05 3:06 PM Page 88

Prime contest. Researchers Prime test. Is it possible for a person of average intelli- sometimes hold zany but gence to determine whether this large number is prime or curious contests in which composite (not prime) within 19 seconds? they search for prime num- 5,230,096,303,003,196,309,630,967 bers within the decimal digit expansion of 1/137 = (See Answer 2.76.) 0.007299270072992700 . . . For example, the mathemati- cian Jason Earls has discov- Definition of an amenable number. An amenable number is an ered that the following is integer that can be constructed from integers m1, m2, m3, . . . , prime: mk by both multiplication and addition such that k k 72992700729927007299270072992 = ∑ mmii∏ 70072992700729927007299270072 i =1 i =1 99270072992700729927007299270 Here are some examples: 07299270072992700729927007299 27007299270072992700729927007 2 + 2 = 2 × 2 = 4 29927007299270072992700729927 1 + 1 + 2 + 4 = 1 × 1 × 2 × 4 = 8 00729927007299270072992700729 For more information, see Harry Tamvakis, “Problem 10454,” 92700729927007299270072992700 The American Mathematical Monthly 102 (1995): 463. 72992700729927007299270072992 70072992700729927007299270072 99270072992700729927007299270 earth at its center, and imag- Conceive the long line thus 07299270072992700729927007299 ine its surface to pass through fixed by all the microbes as 270072992700729927007 Sirius, which is 8.8 light years the diameter of a circle, and This number includes the first distant from the earth [8.8 imagine its circumference to 371 digits of 1/137, with the years × 186,000 miles per sec- be calculated by multiplying first two zeros omitted. ond]. Then imagine this enor- its diameter by π to 100 deci- mous sphere to be so packed mal places. Then, in the case with microbes that in every of a circle of this enormous Hermann Schubert, Sirius, cubic millimeter millions of magnitude even, the circum- microbes, and pi. In 1889, the millions of these diminutive ference so calculated would Hamburg mathematics profes- animalcula are present. Now not vary from the real circum- sor Hermann Schubert conceive these microbes to be ference by a millionth part of described how there is no unpacked and so distributed a millimeter. This example practical or scientific value to singly along a straight line will suffice to show that the knowing pi to more than a few that every two microbes are as calculation of π to 100 or 500 decimal places: “Conceive a far distant from each other as decimal places is wholly sphere constructed with the Sirius from us, 8.8 light years. useless.”

88 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 89

π3 and antennas. I have Definition of a father prime. 191 → 83 → 3. Until stumbled upon a practical According to the retired math recently, the longest known example of the term π3 occur- teacher Terry Trotter, a ancestral lines consisted of 5 in physics. In particular, “father” prime is a prime generations, such as 1,499 → π3 occurs in equations that number for which the sum of 179 → 131 → 11 → 2. My relate to gravitational wave the squares of its digits is also colleague Mark Ganson dis- antennas and energy absorp- a prime. The sum is therefore covered a series of related tion rates, which have terms the “child” prime. For exam- ancestral lines consisting of that look like ple, 23 is a “father” prime 6 generations each. The line because 22 + 32 = 4 + 9 = 13. with the smallest starting π3 3 2λ 2 ML QG/3C S That is, 23 is the “father” of a prime is 28,999,999,999 prime child, 13. Here is an → 797 → 179 → 131 → where M is the reduced mass, example of an “ancestral 11 → 2. L is the length, Q is the qual- line” of fathers and children: ity factor, G is Newton’s gravitational constant, C is the speed of light in a vacuum, λ is the wavelength, Definition of a . A cyclic number, C, is an inte- and S is the length occupied ger that—when multiplied by any number from 1 to the num- by a single plane quadrupole. ber of digits of C—always contains the same digits as C. Also, (See Melvin A. Lewis, these digits will appear in the same order but begin at a differ- “Gravitational Wave vs. ent point. An example will clarify this. 142,857 is cyclic Electromagnetic Wave because Antennas,” June 1995 issue 1 × 142,857 = 142,857 of IEEE Antennas and × Propagation Magazine.) 2 142,857 = 285,714 Can you find any other 3 × 142,857 = 428,571 examples of π3 in physics × or geometry? 4 142,857 = 571,428 5 × 142,857 = 714, 285

Never prime? Does this 6 × 142,857 = 857,142 formula always produce a Here are two more cyclic numbers: 588,235,294,117,647 number that is never prime: and 52,631,578,947,368,421. Notice that these numbers can a2 + b2 + c2 + d2? Variables a, be constructed from certain primes in the following way. For b, c, and d are different posi- example, 1/7 = 0.142857 . . . , 1/17 = 0.0588235294117647 tive integers. (See Answer . . . , and 1/19 = 0.052631578947368421 . . . It has been 2.77.) conjectured, but not yet proved, that an infinite number of cyclic numbers exist.

Cool Numbers 89 c02.qxd 5/16/05 3:06 PM Page 90

Coincidental constant. This number is pretty cool: precisely √6π – 1 – e, or 1.5065916514855 . . . (from 2.506184145588769256292940922377 Robert P. Munafo’s “Mandel- 84727177139605213321283014 . . . brot Set Glossary and Ency- It is the solution to xx = 10, and, as Robert Munafo says, it is clopedia,” www.mrob.com/ curious that this is close to √2π , which is 2.5066 . . . pub/muency.html).

Asimov universe. “I believe Almost an integer. 621/2 × (127/1000) = 0.9999989999994 that scientific knowledge has 99999499999374 . . . (Angel Garcia, sci.math). fractal properties, that no matter how much we learn, whatever is left, however 666 equation. 666 = 13 + 23 + 33 + 43 + 53 + 63 + 53 + 43 + small it may seem, is just as 33 + 23 + 13. infinitely complex as the whole was to start with. That, I think, is the secret of the “It is a mathe- (1/e) Universe. 0.692200 . . . = (1/e) . Universe” (Isaac Asimov, I. matical fact that the casting This cool constant is the Asimov: A Memoir, 1994). of this pebble from my hand lowest point in the function alters the center of gravity of y = xx. the universe” (Thomas 666 equation. 666 = 36 – Carlyle [1795–1881], Sartor 26 + 16. Resartus III, 1831). 1.202056 . . . is Apéry’s constant. Please select three e π 163 positive integers at random. Integer hoax. Is an 0.065988 . . . . I’m in The odds of them having no integer? Why would I ask love with the constant common divisor are 1 in such a strange question? (See –e e 0.065988 . . . = e = (1/e) . 1.202056 . . . Answer 2.78.) It is the lowest value of the function y = x(1/x). Moreover, Impressive π formula. π≈ if you consider this beautiful 1.506592 . . . is the area ln(6403203 + 744/√163 , infinite power tower, of the famous fractal shape which is correct to 30 digits ... x x fx()= xx x known as the Mandelbrot after the decimal point! set. Cyril Soler, a French then 0.065988 . . . is the low- researcher at the Institut est value of x for which the National de Recherche en Impressive π formula. (π4 + function converges to a finite Informatique et Automatique, π5)/(e6) ~ 1. (To be precise, it value. conjectures that the value is equals 0.999999956 . . .)

90 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 91

Impressive π formula. Triangles and 666. As you can see in figure 2.7, 666 is a π≈(2143/22)1/4 = triangular number. Because it stands on a base of 36 marks, 3.14159265258264 . . . it is designated the 36th triangular number. (We defined trian- (Reichenbacher, 1900). gular numbers in the puzzle titled “Dr. Brain’s mystery sequence.”) Note that 36 is also triangular (the 8th triangular number). Smallest cube. Note that The 666th triangular number contains only 2s and 1s and is 8,000 is the smallest cube 222,111. that can be expressed as the sum of 4 consecutive cubes (8,000 = 203 = 113 + 123 + 133 + 143).

Cubes. In 1939, L. E. Dickson proved that all posi- tive integers can be repre- sented as the sum of at most 9 positive cubes. Interest- ingly, only two numbers exist that require all 9 cubes: 23 and 239 (L. E. Dickson, History of the Theory of Numbers, Vol. 2: Diophantine Analysis [New York: Chelsea, 1966]).

Figure 2.7 A visual proof that 666 is a triangular number. 666 equation. Let φ(n) be the number of integers smaller than n and relatively prime to n. Amazingly, we find that 666 equation. The 666 equation. Examine φ(666) = 6·6·6. number 666 is the sum of the prime factors of the squares of the first 7 666 = 2 × 3 × 3 × 37 and (Number theorists call two primes: 22 + 32 + 52 + 72 + add their digits. You get numbers A and B that have no 112 + 132 + 172. 18 = 6 + 6 + 6. common factors “relatively prime” or “coprime.”)

Cool Numbers 91 c02.qxd 5/16/05 3:06 PM Page 92

Tolstoy and the number 28. be buried where the mystical Cube square puzzle. Con- The great Russian novelist green stick was thought to sider an integer, N, and its Leo Tolstoy believed 28 to be have been hidden. cube, C, and its square, S. a special number for him. Together, C and S use all dig- He was born on August 28, its from 0 to 9 once. What is 1828. His son Sergei was born Definition of . Pri- N? (See Answer 2.79.) on June 28. When Tolstoy was morials are the product of the asked to choose poems for first N primes. For example, one of his essays, he deliber- 210 is a primorial because 1,001 and primes. The ately chose poems from page 210 = 2 × 3 × 5 × 7. Here are number 1,001 is a product of 28 of different poetry books. the first few primorials: 2; 6; three consecutive primes: During Tolstoy’s youth, his 30; 210; 2,310; 30,030; 1,001 = 7 × 11 × 13. older brother Nikolai said 510,510; 9,699,690; he’d written the secret of hap- 223,092,870; 6,469,693,230; piness on a green stick and 200,560,490,130; An approximation for π. hid it by a road in the Zakaz 7,420,738,134,810; and 3.14159267204 . . . = forest. Tolstoy later asked to 304,250,263,527,210. [e(φ + 6)]/5 – 1 is a close approximation to π.

Digits of e and π. I wonder why we find such a weird corre- spondence (the digits 314 and 926) in the following: Palindromic triangular num- 23.140692632779269005 . . . = eπ ber. The 2,662nd triangular 3.141592653589793238 . . . = π number is 3,544,453, so both the number and its index, Is this pure coincidence, or does it signify something much 2,662, are palindromic. deeper?

Cube numbers. Consider 666 formula. Perhaps I’m obsessed with 666 equations, but an integer, N, that is the here is yet another: smallest cube number that 666 = 6 + 6 + 6 + 63 + 63 + 63 is the sum of three cube numbers. What is N? (A cube number is simply a number Definition of hyperfactorial. Hyperfactorials are of the created by cubing another. form 11 × 22 × 33 × 44 . . . The first few hyperfactorials For example, 125 is a cube are 1; 4; 108; 27,648; 86,400,000; 4,031,078,400,000; number because 125 = 53.) 331,976,639,877,120,000; and (See Answer 2.80.) 55,696,437,941,726,556,979,200,000.

92 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 93

Definition of amicable num- are amicable numbers. The Cube mystery. These num- bers. Two numbers are con- sums of their divisors are bers are very special: 1, 8, 17, sidered friendly or amicable equal to each other. 18, 26, and 27. Can you to each other if the sums of guess why? (Hint: The solu- their proper divisors equal tion has to do with the cubes each other. For example, 284 0s and 1s. Here are some of these numbers.) (See and 220 are amicable. To see strange equivalences: Answer 2.82.) why, let’s list all the numbers 011 = 8 by which 220 is evenly divisi- 1110 = ? ble: 1, 2, 4, 5, 10, 11, 20, 22, 0011 = 12 Surreal world. “Just as the 44, 55, and 110 all go into 10001 = 13 real numbers fill in the gap 220. Now add up all those 00111 = 23 between the integers, the sur- divisors: 1 + 2 + 4 + 5 + 10 + 010000001 = 26 real numbers fill in the gaps 11 + 20 + 22 + 44 + 55 = between Cantor’s ordinal 284. Now let’s try the same Can you determine what numbers” (John Conway and approach with 284. Its perfect logic I am using to equate Richard Guy, The Book of divisors are 1, 2, 4, 71, and these numbers and then can Numbers, 1996). 142. Now, add them up to get you solve the missing equiva- 220. Therefore 220 and 284 lence? (See Answer 2.81.)

Brun’s constant and Barbra Streisand. Brun’s constant, Hard to say. “In John Con- 1.90216 . . . , is the number obtained by adding the reciprocals way’s surreal number system, of the odd twin primes it’s possible to talk about whether ω is odd or even, to ( 1 + 1 ) ++( 1 1 ) ++( 1 1 ) ++( 1 1 ) + ... add 1 to infinity, to divide 3 5 5 7 11 13 17 19 infinity in half, to take its Twin primes are pairs of primes that differ by two. The first square root or logarithm, and twin primes are {3, 5}, {5, 7}, {11, 13,} and {17, 19}. It has so on. Equally accessible and been conjectured that there are infinitely many twin primes. amenable to manipulation are No one knows for sure. the infinitesimals—the num- The conjecture was even mentioned in the 1996 movie The bers generated by the recipro- Mirror Has Two Faces, which starred Barbra Streisand. It is cals of these infinities (for fascinating that the series converges to a definite, finite num- example, 1/ω). What can you ber, even if there are an infinite number of twin primes. This do with such numbers? It’s fact suggests the “scarcity” of twin primes relative to primes, still hard to say because very because the sum of the reciprocals of all prime numbers little research has been done diverges. We do not know very much about Brun’s constant. on them” (Ivars Peterson, For example, we don’t even know if it is rational, algebraic, or “Computing in a Surreal transcendental. Realm,” 1996).

Cool Numbers 93 c02.qxd 5/16/05 3:06 PM Page 94

Definition of surreal Martin Gardner has writ- member of the right set; and numbers. Surreal numbers are ten in Mathematical Magic (2) one number is less than a superset of the real num- Show, or equal to another number bers, invented by John if, and only if, no member of Conway for the analysis of Surreal numbers are an the first number’s left set is games, although the name astonishing feat of leg- greater than or equal to the was coined by Donald Knuth erdemain. An empty hat second number, and no mem- in his popular novelette Sur- rests on a table made of a ber of the second number’s real Numbers, perhaps one of few axioms of standard set right set is less than or equal the few times that a major theory. Conway waves two to the first number. mathematical discovery was simple rules in the air, Surreal numbers include published first in a work of then reaches into almost infinity and infinitesimals, fiction. Surreal numbers nothing and pulls out an numbers smaller than any have all kinds of bizarre infinitely rich tapestry of imaginable real numbers. properties. numbers that form a real For more information, see Surreal numbers include and closed field. Every John Horton Conway and the real numbers plus much real number is surrounded Richard K. Guy, The Book of more. Knuth explains in a by a host of new numbers Numbers (New York: Coper- postscript that his aim was that lie closer to it than nicus/Springer, 1996). See not so much to teach Con- any other “real” value also Surreal Numbers: How way’s theory as does. The system is truly Two Ex-Students Turned On “surreal.” to Pure Mathematics and to teach how one might go Found Total Happiness by about developing such a A surreal number is a pair Donald E. Knuth (Reading, theory. . . . Therefore, as of sets {X , X } where L R Mass.: Addison-Wesley, the two characters in this indices indicate the relative 1974). “The Story of How book gradually explore and position (left and right) of the Surreal Numbers Came to build up Conway’s number sets in the pair. Surreal num- Be Written” is told in system, I have recorded bers are fascinating because Mathematical People by their false starts and frus- they are built upon an Donald J. Albers and G. L. trations as well as their extremely small and simple Alexanderson (Boston: good ideas. I wanted to foundation. In fact, according Birkhauser, 1985). John give a reasonably faithful to Conway and Knuth, sur- Conway’s presentation of portrayal of the important real numbers follow two the theory appears in On principles, techniques, joys, rules: (1) every number cor- Numbers and Games passions, and philosophy of responds to two sets of previ- (Natick, Mass.: A. K. Peters, mathematics, so I wrote the ously created numbers, such Ltd., 2001). story as I was actually that no member of the left set doing the research myself. is greater than or equal to any

94 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 95

Definition of hyperreal num- Fibonacci formula. As we where φ = 1.61803 . . . is bers. Hyperreal numbers are explore larger and larger the golden ratio and φ′ =

an extension of the real num- Fibonacci numbers, Fn , we –0.618034 . . . is the negative bers that adds infinitely large, find that the ratio of a inverse of φ; in other words, as well as infinitesimal, num- to the one φ′ = –1/φ. bers to the real numbers. By before approaches the golden “infinite numbers,” I mean mean φ = 1.61803 . . . numbers whose absolute P-adic numbers. “Almost value is greater than any posi- F your entire mathematical life lim n = φ tive real number. By “infini- n+∞ has been spent on the real Fn−1 tesimal numbers,” I mean line and in real space working numbers whose absolute with real numbers. Some value is less than any positive have dipped into complex real number. For more infor- Fibonacci formula. We can numbers, which are just the mation, see “Hyperreal num- compute the nth Fibonacci real numbers after you throw

ber,” en2.wikipedia.org/wiki/ number, Fn , directly from in i. Are these the only num- Hyperreal_number. bers that can be built from the φφnn− ()′ = rationals? The answer is no. Fn 5 There are entire parallel uni- verses of numbers that are totally unrelated to the real and complex numbers. Wel- Fibonacci formula. The sum of the first n Fibonacci numbers come to the world of p-adic can be calculated from analysis—where arithmetic n replaces the tape measure and FFF=++... FF = −1 ∑ inn12+ 2 numbers take on a whole new = i 1 look” (Professor Edward For example, consider the Fibonacci numbers: 1, 1, 2, 3, 5, 8, Burger, from a Web page 13, . . . The sum of the first five terms is equal to 13 – 1 = 12. description of the Williams We can use this handy formula to compute the sum of all College undergraduate mini- Fibonacci numbers up to any term. course “Exploring p-adic Numbers” [www.math.ksu. edu/main/course_info/ courses/crs-des/burger.htm] Fibonacci formula. The sum of the consecutive Fibonacci [p-adic numbers can be used numbers squared is to help determine whether

n some equations have solu- 2 =++2 22 = ∑ FFFi 1 2 ... FFFnnn+1 tions in which the variables i =1 are all integers.]).

Cool Numbers 95 c02.qxd 5/16/05 3:06 PM Page 96

Consecutive prime numbers. discovered a prime gap of Prime mysteries. “Mathe- The difference between con- length 4,247 following maticians have tried in vain secutive prime numbers is 10314 – 1,929. (D. Baugh to this day to discover some always even, except for two and F. O’Hara, “Large Prime order in the sequence of particular prime numbers. Gaps,” Journal of Recre- prime numbers, and we have What are they? (See Answer ational Mathematics 24 reason to believe that it is a 2.83.) [1992]: 186–87). mystery into which the human mind will never pene- trate” (Leonhard Euler, in George Simmons, Calculus Composite number Wilson’s theorem: p is a Gems, 1992). sequence. If you were chal- prime number if and only if lenged to write down a (p – 1)! + 1 is divisible by p. sequence of consecutive com- posite numbers that is N numbers long, you could Strange radical formulas. Integers can be produced by simply choose any N and certain nested radicals; for example, create your list as follows: (N + 1)! + 2, (N + 1)! + 3, 2 = 2222++++... (N + 1)! + 4, (N + 1)! + 5 . . . , (N + 1)! + (N + 1). or For example, try this for 6303= ++++03030... N = 4. The results are guaran- teed to be composites. In general, you can impress your friends with an infinite num- ber of these identities of the form

= ++++ Gaps between primes. In K mmmm... the 1980s, the largest gap where m = K2 – K for m > 0. What do you think happens if m between primes of which I = 0 and K = 1? (For more information, see Calvin Clawson’s was aware was a run of 803 Mathematical Mysteries, p. 141.) composite numbers that exists between the primes 90,874,329,411,493 and Square root of zero. Although the square root of zero is 90,874,328,412,297 (J. Young zero, look at this amazingly odd beast in which we examine and A. Potler, “First Occur- the limit of the following nested radicals as n approaches rence Prime Gaps,” Mathe- zero. matics of Computation 52 [1989]: 221–24). A little 1 = limnnnn++++ . . . later, Baugh and O’Hara n→0

96 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 97

Definition of a . Exotic prime probe. The function F( j) is fascinating because A prime number, p, is a Wil- it is equal to 1 when j is prime and 0 whenever j is a compos- son prime when (p – 1)! + 1 is ite number: evenly divisible by p2. Today, humanity knows of only three  ()!j −+11 Wilson primes: 5, 13, and Fj()= cos 2 π   j  563. It is conjectured that the number of Wilson primes is The quantity in brackets is truncated to an integer; for exam- infinite. (For example, 5 is a ple, 4.5 would be truncated to 4, and 0.7 is truncated to 0. Wilson prime because 25 Calvin Clawson remarks, “This is truly an amazing function. divides 4! + 1 = 25.) How does it know when it’s dealing with a prime or a compos- ite?” (Calvin Clawson, Mathematical Mysteries, 1996). A near isoprime. In 1991, Harvey Dubner discovered Exotic prime number generator. To calculate the nth prime a prime number with a total number, we may use the following formula: of 6,400 digits that is com-  1  posed of all 9s except   n one 8. The precise value is   n    106400 – 106352 – 1. 2  n  p =+1 ∑  n  m   m=1    ∑ Fj()     Beautiful rules. “The math-  j=1  ematical rules of the universe are visible to men in the form where F(j) is defined in the previous factoid. Square brackets of beauty” (John Michel). indicate truncation of the number to an integer (Calvin Claw- son, Mathematical Mysteries, 1996).

Palindromic primes. The smallest palindromic prime Exotic prime number genera- to an integer. For example, containing all 10 digits is tor. The following formula for n = 2, we get the prime 1,023,456,987,896,543,201. yields only primes: number 13. Alas, because β is One of the largest known only an approximation and palindromic primes was β ...2 the precise value has not been discovered by Harvey Dubner, gn()= []2 2 calculated, at some point this a retired electrical engineer in formula fails humanity New Jersey. The number con- where β = 1.92878, and the (Calvin Clawson, Mathemati- sists of just 1s and 0s and has number of exponents to the cal Mysteries, 1996). 30,803 digits. (Notice that first 2 is equal to n. The 30,803 is also a palindrome.) brackets indicate truncation

Cool Numbers 97 c02.qxd 5/16/05 3:06 PM Page 98

Mills’s constant. The following formula yields only primes example, values of x from 40 for integers n: through 79 yield 33 primes. It turns out that 2x2 – 199 = αα()3 n  = is the second-degree polyno- Fn()   where mial that yields the greatest 1.30637788386308069046861449260260571 number of primes for the first 2916784585156713644368053759966434 . . . 1,000 values of x, which pro- duces 598 primes. The constant α is sometimes called the Mills’s constant. The brackets indicate truncation to an integer—sometimes called the “floor” operation. For example, for n = 3, we get the prime Definition of a Fibonacci number 1,361. Alas, because α is only an approximation and prime. A Fibonacci prime is a the precise value has not been calculated, at some point this Fibonacci number that is formula breaks down (Calvin Clawson, Mathematical prime. The 81,839th Mysteries, 1996). Fibonacci number is prime. It has 17,103 digits and is one of the largest known prime On prime numbers: “There Definition of a Sophie Ger- Fibonacci numbers. are tetradic, pandigit, and main prime. A prime number, prime-factorial plus one p, is a Sophie Germain prime On crazy numerical primes. And there are Cullen, if you can double it, add 1, coincidences. “The ratio of the multifactorial, beastly palin- and produce another prime. height of the Sears Building drome, and antipalindrome One of the largest such in Chicago to the height of × primes. Add to these the primes is 2,540,041,185 the Woolworth Building in 114729 strobogrammatic, subscript, 2 – 1 with 34,547 digits, New York is the same to four internal , and the discovered in 2003 by David significant digits (1.816 vs. elliptic primes. In fact, a Underbakke. 1816) as the ratio of the mass whole new branch of mathe- of a proton to the mass of an matics seems to be evolving electron” (John Paulos, Innu- that deals specifically with Euler’s prime formula. In meracy, 1988). the attributes of the various 1772, Leonhard Euler discov- kinds of prime numbers. Yet ered that f (x) = x2 + x + 41 understanding primes is only yields prime numbers for x = Four squares. In 1770, part of our quest to fully 0 through 39. Perhaps Euler Joseph-Louis Lagrange understand the number was very excited until he showed that every positive sequence and all of its tried x = 40, which, sadly, integer can be written as the delightful peculiarities” yields a composite number. sum of four squares. For ex- (Calvin Clawson, Mathemati- Still, it appears to produce ample, we can write the num- cal Mysteries, 1996). primes at a high rate. For ber 31 as 22 + 32 + 32 + 32.

98 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 99

Definition of round numbers. The smallest star-congruent prime containing all four prime Round numbers are numbers digits. The number 7,777,277,227,777,772,327,777,772,222, that, when factored, contain a 332,222,772,333,533,327,723,555,532,772,352,532,772,355, large number of primes. The 553,277,233,353,332,772,222,332,222,777,777,232,777,777, greater the number of prime 227,727,777 is the smallest star-congruent prime containing factors, the rounder the num- all four prime digits—and no other digits. This means that the ber. If you were to select a 121-digit number can be arranged in the form of a six-pointed number at random, you might star: be surprised at just how rare 7 “very round numbers” are. 7 7 Although this definition is 7 2 7 rather vague, it is easy to 7 2 2 7 rank numbers in order of 7 7 7 7 7 2 3 2 7 7 7 7 7 roundness; for example, from 7 2 2 2 2 3 3 2 2 2 2 7 least round to most round we 7 2 3 3 3 5 3 3 3 2 7 have 7 2 3 5 5 5 5 3 2 7 7 2 3 5 2 5 3 2 7 1,957 = 19 × 103 7 2 3 5 5 5 5 3 2 7 (2 factors) 7 2 3 3 3 5 3 3 3 2 7 7 2 2 2 2 3 3 2 2 2 2 7 1,958 = 2 × 11 × 89 7 7 7 7 7 2 3 2 7 7 7 7 7 (3 factors) 7 2 2 7 1,960 = 23 × 5 × 72 7 2 7 (6 factors) 7 7 7 362,880 = 27 × 34 × 5 × 7 (13 factors) This curious number was discovered by the mathematician Dr. Michael Hartley in 2003 and was featured at “Prime Pages’ Prime Curios!” managed by G. L. Honaker Jr. and Chris Cald- Ramanujan’s goddess. well (primes.utm.edu/curios/page.php?curio_id=5284). Hart- Ramanujan credits his mathe- ley is an associate professor at the Malaysia campus of the matical discoveries to Nama- University of Nottingham. A “congruent prime” contains giri of Namakkal, a Hindu “shapes” of identical digits nested about the center when goddess who appeared in his drawn in the form of squares, stars, hexagons, and so forth. dreams. (Narasimha was the For example, male consort of the goddess 7 7 7 Namagiri and also helped 7 6 7 is a square-congruent prime of order 3. Ramanujan with his visions.) 7 7 7

Cool Numbers 99 c02.qxd 5/16/05 3:23 PM Page 100

Five factors for big num- The smallest titanic hex-congruent prime. Dr. Michael Hartley bers. The number of different discovered this magnificent 1,027-digit prime number that can primes occurring in a number be arranged in the form of nested hexagrams (see the “small- may be denoted ω(n), which est star-congruent prime containing all four prime digits” on is approximately ln(ln(n)). page 99 for a definition of a square-congruent prime). To con- Here, “ln” is the natural loga- struct the original prime from this figure, simply concatenate rithm. Calvin Clawson com- each row of the hexagonal figure (primes.utm.edu/curios/page. ments in Mathematical php?number_id=2657). Mysteries, “If we consider the numbers in the range of 1080, 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 which is the approximate 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 number of protons in the uni- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 verse, we can determine that 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 most such numbers have 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 around five factors since 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 80 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 ln(ln10 ) = 5.22.” 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Ramanujan’s problem. Find 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 integer solutions to 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 N 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 7 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 – 7 = X 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 This equation was searched 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 to about N = 1040, and 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 humanity has found only 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Ramanujan’s original solu- 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 tions (N = 3, 4, 5, 7, 15). It 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 has recently been proved that 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 these are the only ones. 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Ramanujan’s beauty. “When we comprehend some of Ramanujan’s equations, we In the mid-1980s, Samuel Yates started to compile a list realize that he was a true known as the “Largest Known Primes” and coined the name artist, expressing deep and “titanic prime” for any prime with 1,000 or more decimal beautiful mathematical truth digits. in familiar symbols” (Calvin Clawson, Mathematical Mysteries, 1996).

100 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 101

Ramanujan synchronicity. Definition of the Landau-Ramanujan constant. The Landau- “It is not guaranteed that a Ramanujan constant is 0.764223653 . . . Let N(x) denote the great mind will automatically number of positive integers not exceeding x that can be find the nurturing support expressed as a sum of two squares. Edmund Landau and required for success. If Ramanujan independently proved that Ramanujan had not been a Brahmin, or his mother had ln(x ) not been as patient, or if lim ⋅=Nx() K x→∞ Hardy had ignored his letter, x then Ramanujan might have For example, M(8) = 5 because 1 = 02 + 12, 2 = 12 + 12, 4 = 02 slipped into obscurity, and his + 22, 5 = 12 + 22, and 8 = 22 + 22. Here, K is given by wonderful notebooks and equations would have been 1 1 K = ∏ = 0.764223653 ... lost forever” (Calvin Claw- −2 2 pk=+431− p son, Mathematical Mysteries, 1996). The product is taken over all primes p congruent to 3 modulo 4. The convergence to the constant K, known as the Landau- Ramanujan constant, is very slow. Here it is to a few more Math in bed. “It is amazing digits, to impress your friends: to see the quantity of mathe- 0.76422365358922066299069873125009232811 matics that Ramanujan com- 6790541393409514721686673749614641658732 municated to Hardy from 8588384015050131312337219372691207925926 hospital beds in England!” 3418742064678084323063315434629380531 (Krishnaswami Alladi, “Review of Ramanujan: Let- Many more digits of the Landau-Ramanujan constant have ters and Commentary,” The been calculated by Philippe Flajolet at INRIA Paris (Institut American Mathematical National de Recherche en Informatique et Automatique) and Monthly 103, no. 8 [1996]: Paul Zimmermann. 708–11).

Ramanujan and π. Ramanujan enjoyed finding approxima- π Ramanujan’s fractions. tions to . Here’s a nice one: Ramanujan excelled at pro- π ≈ 99 2 (correct to 8 places) ducing infinite fractions. Here 2206 2 is an example. 1 1 = Hilbert sleeping. “If I were to awaken after having slept for a e −1 1+ 2 thousand years, my first question would be: Has the Riemann 2+ 3 4 3+ 4+... hypothesis been proven?” (David Hilbert, 1862–1943).

Cool Numbers 101 c02.qxd 5/16/05 3:06 PM Page 102

Ethereal plane. “Because Zebra numbers. In my book The Mathematics of Oz (2002), it lies on a cool, ethereal I defined a class of irrational numbers that have remarkable plane beyond the everyday patterns in their strings of digits. Most of the usual irrational passions of human life, and numbers we think of, like √2= 1.4142135623 . . . , seem to be because it can be fully patternless. Zebra numbers are a class of irrational numbers grasped only through a lan- with patterns, and are so named because the zebra’s skin dis- guage in which most people plays obvious patterns. Given the Zebra formula: are unschooled, Ramanujan’s work grants direct pleasure fn()=×+−=9 /121 100n ( 112 44 n )/ 121 to only a few hundred pure we find that the 50th Zebra is mathematicians around the world, perhaps a few thou- f ()50=×+−×= 9 / 121 10050 ( 112 44 50 )/ 121 sand . . . ” (Robert Kanigel, The Man Who Knew Infinity, 1991). 2 72727 27272 72727 27272 72727 27272 72727 27272 72727 2727.272727 27272 72727 27272 72727 27272 72727 27272 72727 26956 36363 63636 36363 63636 36363 63636 36363 63636 36363 63636 36363 63636 36363 63636 36363 63636 36363 63636 36363 From Ramanujan. 45287 27272 72727 27272 72727 27272 72727 27272 72727 27272 e π −1 π 72727 27272 72727 27272 72727 27272 72727 27272 72727 27251 = π + + π 2 e 1 2 2 44232 72727 27272 72727 27272 72727 27272 72727 27272 72727 6+ π π 2 10+ 27272 72727 27272 72727 27272 72727 27272 72727 27272 69640 14+... 9556363636 36363 63636 36363 63636 36363 63636 36363 63636 3636363636 36363 63636 36363 63636 36363 63636 36358 62418 and, more generally, 4680727272 72727 27272 72727 27272 72727 27272 72727 27272 e x −1 x 7272727272 72727 27272 72727 27272 72727 27272 71855 15358 = x + + x 2 8991999999 99999 99999 99999 99999 99999 99999 99999 99999 e 1 2 2 6+ x x 2 9999999999 99999 99999 99999 99999 99999 99998 41025 13993 10+ 14+... 62559 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99700 33238 87798 42559 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 99999 42064 26183 07695 The foundation of math. 61599 99999 99999 99999 99999 99999 99999 99999 99999 99999 “If you disregard the very 99999 99999 99999 99999 99999 99999 99885 75072 43302 7758 . . . simplest cases, there is in all of mathematics not a single My book explains these numbers in greater detail. infinite series whose sum has been rigorously deter- mined. In other words, the

102 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 103

most important parts of An infinite product. From Ramanujan: mathematics stand without a foundation” (Niels H. Abel, ∞  p 2 +1 5 in G. F. Simmons, Calculus ∏  =  2 −  Gems, 1992). p p 1 2 Here, the infinite product symbolized by ∏, steps through every prime number; for example, Alien ships. Alien ships  212 +   312 +   512 +   712 +  5 descend on America. The   ⋅  ⋅  ⋅  ...= president shivers in fear. On  212 −   312 −   512 −   712 −  2 the first day, 3 ships come. On the second day, 6 ships come. Each day, the number Prime glue. In 1737, Euler discovered the following rela- of ships increases as tionship, which appears to glue together the prime numbers 3; 6; 18; 72; 144; and the sequence of natural numbers in a fascinating way: 432; 1,728; ? ∞ 11 Find the eighth number in ξ()s ==∑ ∏ s 1 = n = 1− this sequence to determine n 1 p primes p s how many ships come on For Euler, the variable s could be any real number! We can the last day. (See Answer rewrite this formula as 2.84.) 1 1 1 1 ξ()s =+ ++ +... = 1ssss2 3 4 Trains with crystal balls. My         friend is superstitious and is 1 1 1 1         ... riding in a train with seven  1   1   1   1   1−   1−   1−   1−  cars. Below are the numbers 2 ssss3 5 7 of crystal balls he places in ξ(s) is called the zeta function. For values of s >1, the zeta each car for good luck. function converges to a limit. For s = 1, the zeta function is 42, 63, 94, 135, 96, 157, ? just the harmonic series, which diverges. These numbers form a sequence. How many crystal balls are in the seventh car? From Ramanujan. (See Answer 2.85.) 1 =−1 1111−−−−1 1 1 ... 2 2 4 8

Cool Numbers 103 c02.qxd 5/16/05 3:06 PM Page 104

Mr. Zanti’s ants. My friend, A delight from Ramanujan. Mr. Zanti, collects ants, which he places in 7 ant farms. In 3 3 3 15− ( 1 ) + 9( 13⋅ ) − 13( 13⋅⋅⋅ 5) +=... 2 the first ant farm are only 6 2 24⋅ 246⋅⋅ π ants. The next ant farm con- (Ramanujan; James R. Newman, The World of Mathematics, tains 26 ants. What number Volume 1 [New York: Simon and Schuster, 1956], pp. of ants comes last in the fol- 371–72). lowing sequence? 6; 26; 106; 426; 1,706; 6,826; ? (See Answer 2.86.) Another delight from Ramanujan.

a − a 2 − 2 e Integer representation as ∫ edxx =−1 π 12/ 2 2a + 1 sums. An integer can be repre- 0 a+ 2 3 2a+ 4 sented as the sum of the a+ 2a+ .. . squares of two rational num- bers if, and only if, it can be represented as the sum of the squares of two integers. This From Ramanujan. means, for example, that   there are no rational numbers, 1 55+ 51+ 2 =  −  ⋅ e r, s, such that r2 + s2 = 3. + e −2 π   π 1 −4 π  2 2  5 1+ e 1+...

Factorial. Stirling’s for- Note that the term in parentheses can be reduced to √2+φ – φ, mula can be used to approxi- where φ is the golden ratio. mate n factorial (n!): nnne!(/)≈ 2π n It’s interesting that factorial From Ramanujan. should be related so inti- ∞ ()−1 kk−12x xxx34 mately with π and e. ln x +=γ ∑ =−x + − +... k =1 kk! 41896 Prime king. The kings in a where γ = 0.5772157. . . is the Euler-Mascheroni constant. deck of cards abscond with all the cards that show prime numbers on their faces. How From Ramanujan. many cards does your deck now contain? (See Answer −=2 3 −+66663 −+3 −+3 −+... 2.87.)

104 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 105

Euler’s conjecture on powers. From Ramanujan. Euler once conjectured that ∞ 1 1 1 an nth power cannot be 10 −=π 2 ∑ = + + 3333 33 expressed as the sum of fewer = kk()+1 12⋅ 23⋅ k 1 than n smaller nth powers. 1 1 Today we know that the sim- + + + ... 3433⋅ 45 33⋅ plest known counter example to Euler’s conjecture is 31,858,749,840,007,945,920, 321 = 422,4814 = 95,8004 + From Ramanujan. 217,5194 + 414,5604. ∞ 1 1 1 1 ln 2 =+1 ∑ =+ + + 2 3 33 = ()22kk− 2 22− 44− k 1 Pi deck. How many 1 1 consecutive digits of pi + + (3.1415 . . . ) can you display 6633− 88− with a deck of cards, using the numbers on the cards and starting at any point you like A formula that unites. Here’s a gem from Ramanujan relat- in the digit string of pi? You ing π, a natural logarithm, and the golden ratio. (Can you find can omit the cards with no the golden ratio?) numbers, like the jacks and

2 the aces. (See Answer 2.88.) π 2  51+  ∞ ()(!)−1 k k 2 − 3ln  = ∑ = + 2 6  2  k =0 ()!()221kk Mathematical profundity. “In the company of friends, 1 (!)2 2 (!)3 2 (!)4 2 1− + − + ... writers can discuss their 23! ⋅ 2 45! ⋅ 2 67! ⋅ 2 89! ⋅ 2 books, economists the state of the economy, lawyers their latest cases, and businessmen their latest acquisitions, but From Ramanujan. mathematicians cannot dis- x x −1 ()()xx−−12 cuss their mathematics at all. =− + − 1 And the more profound their 21x − x +1 ()()xx++12 work, the less understandable it is” (Alfred Adler, “Reflec- ()()()xx−−123 x − + ... tions: Mathematics and Cre- ()()()xx++123 x + ativity,” New Yorker, 1972).

Cool Numbers 105 c02.qxd 5/16/05 3:06 PM Page 106

On the disorder of π. In A prime connection. Here is an approximation from 1997, the mathematicians Ramanujan that connects the constant e, logarithms, and Steve Pincus and Rudolf primes. As x approaches zero, we have Kalman applied a statistical ∞ P 2 357 ln x method called “approximate ∑ k =+ + + +≈−... kx xxxx234 2 entropy” to assess the disor- = eeeee x k 1 der of the digits in transcen- dental numbers like π and algebraic numbers like the square root of 2. Pincus ini- From Ramanujan. tially had a gut feel that the digits in transcendental num- −1  1 3  bers were more disorderly ∞ ()61n + ( )  2 Poch() n  than in algebraic numbers, π = 4 ∑  n 3  n=0 4 (!)n  but he was wrong. Although   π had the most irregular sequence of digits, the where the subscript n refers to the Pochhammer notation that square root of 2 was the is explained in the definition on page 107. second-most disorderly digit string tested. In order of randomness, Pincus and Kalman found From Ramanujan. π = 3.141592 . . . π = √2 = 1.414235. . . −1  1 1 2  ∞ ()15n + 2 ( ) ( ) ( )   n e = 2.718281 . . . 27  2 Poch() n3 Poch () n3 Poch () n 2  ∑   √  3    3 = 1.732050. . . 4  n=0 (!)n 27  I do not know if more com- where the subscript Poch(n) refers to the Pochhammer prehensive entropy lists of notation. transcendental and algebraic numbers continue to show this mixing. For further read- ing, see Charles Seife, “New Nested radicals. Ramanujan presented this nested radical in Test Sizes Up Randomness,” The Indian Journal of Mathematics: Science 276, no. 5312 (April 25, 1997): 532. 3121=+ +31 + 41 +...

106 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 107

The wonderful number 37. called Viswanath’s constant, are natural numbers that have The numbers 111, 222, 333, C = 1.13198824 . . . (Divakar more palindromic divisors 444, 555, 666, 777, 888, and Viswanath, “Random than any smaller number. In 999 are all evenly divisible by Fibonacci Sequences and the other words, if a natural num- 37, leaving no remainder. Number 1.13198824 . . . , ” ber p is a palindion, then no Mathematics of Computation n has as many 69 [2000]: 1131–55). palindromic divisors as p where 0 < n < p. In 2004, Vibonacci numbers. We’ve Jason Earls discovered the already discussed Fibonacci palindion 2,666,664, which numbers, in which each term Large palindions and hyper- has 50 palindromic divisors. (except for the first two) is palindions. As already dis- It satisfies the definition of a the sum of the two preceding cussed, a palindrome is a palindion because no smaller terms. We can produce the natural number that does not numbers exist with so many

sequence by Fn = Fn – 2 + change when its digits are palindromic divisors. Its Fn – 1 to yield 1, 1, 2, 3, 5, 8, reversed. Examples of palin- palindromic divisors include 13, . . . The mathematician dromes include 101; 33; 80,808; 333,333; and Divakar Viswanath has stud- 1,234,321; and 2. Palindions 888,888. Later in 2004, Mark ied the Vibonacci sequence— a new variation on the Fibonacci sequence, in Pochhammer notation defined. The Pochhammer symbol pro- which, instead of always vides a way to simplify mathematical formulas and is used in adding two terms to produce some of the notations for the Ramanujan formulas in this the next term, we either book. In particular, add or subtract, depending on the flip of a coin at each stage × × × × (x)n or (x)Poch(n) = x (x + 1) (x + 2) . . . (x + n – 1) in the calculation. This can be

expressed as Vn = Vn – 2 ± Sometimes, the subscript n is written “Poch(n)” to visually Vn – 1, where we choose to differentiate it from an ordinary subscript. Let’s try it with an add or subtract with equal example that uses “5” as the Pochhammer subscript: probability. An amazing degree of 3  1  3  1   3  5   7   9   order can be found in the   =   ×   ×   ×   ×    “randomized” sequences.  2  5  2   2   2   2   2   In particular, the absolute

value of Vn grows exponen- The subscript value effectively tells you how many terms to tially as n increases, with a include in the product. The Pochhammer symbol should have growth rate controlled by a higher priority than the exponent, so that the Pochhammer newly discovered constant symbol is applied first, and then the result is cubed.

Cool Numbers 107 c02.qxd 5/16/05 3:06 PM Page 108

Ganson discovered a few Palindromic primes. This list of palindromic primes was cre- larger palindions, including ated by G. L. Honaker Jr. in 1999: 134,666,532, which has 80 palindromic divisors. All 2 multidigit palindions that have been discovered so far 30203 are multiples of 6. (The rea- 133020331 son for this is currently a mystery.) 1713302033171 Hyperpalindions are 12171330203317121 palindions that themselves are palindromic. The largest 151217133020331712151 known hyperpalindion is 1815121713302033171215181 2,772, with 16 palindromic 16181512171330203317121518161 divisors: 1, 2, 3, 4, 6, 7, 9, 11, 22, 33, 44, 66, 77, 99, 252, 331618151217133020331712151816133 and 2,772. 9333161815121713302033171215181613339 11933316181512171330203317121518161333911

11,410,337,850,553. The pyramid is unique, in that each palindromic prime is Arithmetic progressions are related to the previous by appending two digits to the start and number sequences in which the end of the previous palindromic prime. For further read- each term differs from the ing, see “On-Line Encyclopedia of Integer Sequences,” preceding one by a constant. primes.utm.edu/curios/page.php?number_id=2393. For example, the sequence 5, 11, 17, 23, and 29 happens to contain prime numbers in Ben Green, of the University News 165, no. 17 [April 24, which successive primes dif- of British Columbia, and 2004]: 260–61). fer by 6. The longest known Terence Tao, of the Univer- arithmetic progression of sity of California, offered a prime numbers contains just proof that demonstrates that Math scribblings. “After 22 terms. One 22-term there are infinitely many Ramanujan’s death, Hardy progression starts at prime progressions of every received the loose sheets of 11,410,337,850,553, and finite length (Erica Klarreich, paper on which Ramanujan the difference between “Primal Progress: Pattern had scribbled mathematical successive terms is Hunters Spy Order among formulas in his dying 4,609,098,694,200. In 2004, Prime Numbers,” Science moments. Contained in these

108 A Passion for Mathematics c02.qxd 5/16/05 3:06 PM Page 109

sheets were several deep used computational tricks determined the exact number formulas for the mock-theta known as repeated squaring, of digits in 666!666!. Readers functions” (Krishnaswami addition chains, and Karat- may write to me for details of Alladi, “Review of Ramanu- suba’s algorithm (a fast his approach. jan: Letters and Commen- algorithm for multiplying tary,” The American integers). As part of this Mathematical Monthly 103, project, Ravikumar also no. 8 [1996]: 708–11).

π-palindromic prime. The number 31,415,926,535,897, 932,384,626,433,833,462,648,323,979,853,562,951,413 is a palindromic prime formed from the reflected decimal Legion’s number. In my expansion of π. (G. L. Honaker Jr., primes.utm.edu/curios/ book The Mathematics of Oz, page.php?number_id=130). Carlos B. Rivera reports that the I wondered whether humanity next two larger π-palindromic primes have 301 and 921 could ever compute the first digits. Similarly, Jason Earls has discovered the following ten digits of the number φ-palindromic prime, based on the first few digits of the 666!666!, which I called golden ratio, φ: “Legion’s number of the sec- ond kind.” (Legion’s number 16180339887498948482045868343656381177203 0 of the first kind was a mere 30277118365634386854028484989478893308161 666666.) The number 666!666! is so large that it has roughly 101596 digits. The answer in my previous book turned out Baxter-Hickerson prime numbers. Mathematicians of all to be incorrect for various levels of sophistication continue to search for elusive Baxter- technical reasons, and I Hickerson prime numbers. As background, in 1999, Lew would like to update readers Baxter discovered that (2 × 105n – 104n + 2 × 103n + 102n + with the correct number. 10n + 1)/3 produces numbers whose cubes lack zeros. The first After reading about Legion’s few terms for n = 0, 1, 2, . . . are 2, 64037, 6634003367, number in The Mathematics 666334000333667, . . . Baxter-Hickerson prime numbers of Oz, B. Ravikumar, of Cali- occur for n = 0, 1, 7, 133, . . . yielding f(0) = 2, f(1) = 64037, fornia State University, f(7) = 66666663333334000000033333336666667, . . . The Sonoma, used various mathe- largest known Baxter-Hickerson prime number is 66666 . . . matical tricks to determine 66667 (665-digits) and was discovered by G. L. Honaker Jr. the first ten digits, For your interest, cubing f (7) produces a number that is 2765838869, using a personal zero free and equal to 2962962518518629629624814815925 computer that ran for just two 9259814814877777791111111777777881481489259259814 minutes. In particular, he 8148629629651851852962963.

Cool Numbers 109 c02.qxd 5/16/05 3:06 PM Page 110

On prime numbers. If an 97 by 7 gives a remainder of 2, Rare sums. Only 31 num- integer p is a prime number, as does dividing 9 by 7. Any bers exist that cannot be then for all integers j, dividing integer p that fails this test is expressed as the sum of dis- both jp and j by p gives a not prime. For further reading, tinct squares. Only one prime result with the same remain- see Ivars Peterson, “Prime number exists that is equal to der. For example, if p = 7 Pursuit,” Science News 162 the sum of the decimal digits (a prime) and j = 9, dividing (October 26, 2002): 266–67. of its 7th power.

110 A Passion for Mathematics c03.qxd 5/16/05 2:33 PM Page 111 1 2 33 Algebra,Algebra, Percentages,Percentages,4 WWeirdeird Puzzles,Puzzles, andand MarvelousMarvelous 5MathematicalMathematical ManipulationsManipulations6

N WHICH WE ENCOUNTER TREASURE CHESTS OF ZANY AND EDUCATIONAL MATH Iproblems that involve algebra, fractions, percentages, classic recreational puzzles, and various types of mathematical manipulation. Some are based on problems that are more than a thousand years old. Others are brand new. Get ready to sharpen your pencils and stretch your brains!

Algebra is about constants and variables and relationships between them. If numbers are soldiers, algebra sets the rules of engagement.

111 c03.qxd 5/16/05 2:33 PM Page 112 c03.qxd 5/16/05 2:33 PM Page 113

Free association. “Rarely Loyd’s Leaning Tower of Pisa. Sam Loyd, the famous do I solve problems through a nineteenth-century American puzzlemaster, proposed “The rationally deductive process. Leaning Tower of Pisa” problem, illustrated in figure 3.1. If an Instead I value a free associa- elastic ball is dropped from the Leaning Tower of Pisa at a tion of ideas, a jumble of height of 179 feet from the ground, and on each rebound the three or four ideas bouncing ball rises exactly one tenth of its previous height, what dis- around in my mind. As the tance will it travel before it comes to rest? He gave a solution urge for resolution increases, but, alas, never said how he solved this. How would you solve the bouncing around stops, this? (See Answer 3.3.) and I settle on just one idea or strategy” (Heinz Pagels, Dreams of Reason, 1988).

1 ⁄2 puzzle. What number gives the same result when 1 it is added to ⁄2 as when it is 1 multiplied by ⁄2? (See Answer 3.1.)

Math metaphysics. “Alge- bra is the metaphysics of arithmetic” (John Ray, 1627–1705).

Shrunken heads puzzle. Gary and Joan collect lifelike shrunken heads made of leather. Gary said that if Joan gave him two shrunken heads, they would have an equal number, but if Gary gave Joan two of his, Joan would have twice as many as Gary. How many shrunken heads did they each have? (See Answer 3.2.) Figure 3.1 Sam Loyd’s Leaning Tower of Pisa.

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 113 c03.qxd 5/16/05 2:33 PM Page 114

A real mathematician. Loyd’s “teacher” puzzle. The teacher pictured in figure 3.2 is “A person who can within explaining to his class the remarkable fact that 2 times 2 gives a year solve x2 – 92y2 = 1 the same answer as 2 plus 2. Although 2 is the only positive is a mathematician” number with this property, there are many pairs of different (Brahmagupta [598–670], numbers that can be substituted for a and b in the equations on Brahmasphutasiddhanta the right of the blackboard, namely, [The Opening of the a × b = ya+ b = y Universe], A.D. 628). Can you find a value for a and b? For this puzzle, Sam Loyd asks us to give different values for a and b. They may be Chimpanzees and gorillas. fractions, of course, but they must have a product that is A chimpanzee, when asked exactly equal to their sum. (See Answer 3.6.) by a gorilla how old it was, replied, “My age is now five times yours, but three years ago, it was seven times yours. If you can tell me my age, I will reward you by bringing you a banana every day.” How old is the chimpanzee? (See Answer 3.4.)

RED + BLUE. Mr. Antón Buol walks down the street and sees a red-and-blue- striped pole. “Great!” he shouts, when he realizes that RED + BLUE = BUOL

forms an “alphametic,” in Figure 3.2 Sam Loyd’s classic a × b = y, a + b = y. which each letter is replaced by a digit. The same letter always stands for the same New tools. “The great unexpected discoveries, digit, and the same digit is advances in science usually because Nature’s imagination always represented by the result from new tools rather is richer than ours” (Freeman same letter. Can you solve than new doctrines. Each Dyson, in the introduction to the alphametic? (See Answer time we introduce a new tool, Nature’s Imagination, 1995). 3.5.) it always leads to new and

114 A Passion for Mathematics c03.qxd 5/16/05 2:33 PM Page 115

Worms and water. You go to The worms dry slightly in Fragile fractions. Is it pos- a bait store and buy 1,000 their hot, smelly enclosure, sible to construct the fraction 1 pounds of worms for your and an hour later they are 95 ⁄2 by summing other frac- fishing business. This particu- percent water. How much do tions of the form 1/x2? For lar species of worm is 99 the worms weigh now? (See example, you can choose var- 1 percent water. Answer 3.7.) ious denominators, as in: ⁄32 1 1 + ⁄52 + ⁄102 + . . . (but this is not an answer!). The solution Loyd’s mixed tea puzzle. According to Loyd, in Asia, the must have a finite number of blending of teas is such an exact science that combining dif- terms, and no value of x can ferent kinds of teas is done with utmost care (figure 3.3). In exceed 100 or be repeated. order to illustrate the complications that arise in the science of (See Answer 3.9.) blending teas, he calls attention to a simple puzzle that is based upon two tea blends only. Mr. Han, the human mixer, has received two cases, each Square pizzas. Abraham cubical but of a different size. The larger cube is completely has a stack of square pizzas, full of black tea. The smaller cube is completely full of green each with the numbers 1, 2, tea. Mr. Han has mixed together the contents and found that 3, and 10 at the corners, as the mixture exactly fills 22 cubical chests of equal size. shown in figure 3.4. Assuming that the interior dimensions of all the boxes and the chests can be expressed as exact (i.e., numbers with decimal parts that don’t repeat forever), can you determine the proportion of green tea to black? (See Answer 3.8.)

Figure 3.4 Abraham’s square pizza.

Abraham tosses the pizzas into a pile at random so that they are rotated haphazardly and create quite a mess. An angel of the Lord comes to Abraham and asks him if there is a way to stack the Figure 3.3 Sam Loyd’s classic mixed teas puzzle. pizzas so that the numbers in

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 115 c03.qxd 5/16/05 2:33 PM Page 116

a column through each corner The problem of the rich Among the alloys, the num- in the stack equal 67. In other jeweler. Here’s a difficult prob- ber of pink alloys is equal to words, Abraham can use as lem I invented to test my one-half plus one-fifth of the many pizzas as he likes, and brainy colleagues. Your pink objects in the room plus he is free to rotate them how- friend, a jeweler in New York twice the number of yellow ever he likes, if he can ensure City, walks with you to a alloys. The number of beige that each corner stack sums large room filled with three alloys is equal to one-third to 67. Is this possible? (See kinds of valuable objects: plus one-half the total of the Answer 3.10.) gems, cubical chunks of spe- green alloys. The number of cial alloys, and bottles of rare green alloys is equal to one- spices. There are four kinds fifth the number of pink of gems: one pink, another alloys plus one-sixth the total beige, a third yellow, and the number of the yellow alloys, last green. Among the gems, and the number of yellow the number of pink gems is alloys is equal to one-eighth equal to one-fourth plus one- plus one-third the total of the third the number of beige green objects in the room. gems plus the number of There are four colors of green gems. The number of spice bottles. The number of beige gems is equal to one- pink spice bottles is equal to seventh plus one-third the one-half the number of beige green gems plus half the objects in the room. The total number of yellow gems. The number of green and yellow number of green gems is spice bottles is equal to the equal to one-fifth plus one- total number of pink and eleventh the pink plus the beige spice bottles. beige gems. What is the least number We are also gazing at four of precious objects that are in colors of precious alloys. the room? (See Answer 3.11.)

A huge number? You have 99 constants labeled a1 to a99. Let a1 = 1. The value of each successive constant an is equal to n raised to the value of the previous constant an – 1. For exam- a1 a2 ple, a2 = 2 = 2 and a3 = 3 = 9, and so forth. What is the exact value of × × × × (a97 – a1) (a97 – a2) (a97 – a3) ...... (a97 – a99)? Figure 3.5 A stack of square pizzas. (See Answer 3.12.)

116 A Passion for Mathematics c03.qxd 5/16/05 2:33 PM Page 117

Phoenix and ex. “Who has Winged robot. Danielle is eating ice cream with her father not been amazed to learn that and her friend Kate. Danielle tells Kate, “My grandfather is the function y = ex, like a exactly the same age as my father.” phoenix rising again from its “No way!” says Kate. own ashes, is its own deriva- “It’s true!” Danielle says, bringing out a photo of her grand- tive?” (Francois le Lionnais, father and showing it to Kate. Great Currents of Mathemat- “You’re a liar,” Kate says. ical Thought, 1962). Suddenly, a winged robot descends and perches next to them. “I assure you that Danielle is telling the truth.” Danielle nods. “Kate, you can have my ice cream if I’m x 0? Can you show why lying.” x0 = 1? In other words, your Could the robot be telling the truth? (See Answer 3.14.) task is to informally demon- strate why you think that any number raised to the power of zero is 1. (See Fraction family. Which fraction is the odd one out? Answer 3.13.) 17 29 35 42 87 74 , , , , , 74 98 152 162 372 372 Mathematics and romance. (See Answer 3.15.) “Mathematicians are like lovers. Grant a mathematician the least principle, and he will draw from it a conse- Lev Nikolgevich Tolstoy one of the bottles. If you quence which you must also [1828–1920], in Howard point to a live tarantula, she grant him, and from this Eves, Return to Mathematical will tell the truth. If you point consequence another” Circles, 1987). to the dead tarantula, she will (Bernard Le Bovier randomly say “yes” or “no.” Fontenelle, quoted in V. H. Your mission is to find one of Larney, Abstract Algebra: A Tarantulas in bottles. the live tarantulas by asking a First Course, 1975). Tiffany places three opaque single question. What ques- bottles on the table before tion should you ask? (See you. One bottle contains a Answer 3.16.) The fraction of life. “A man dead tarantula. The other two is like a fraction whose bottles contain live tarantulas. numerator is what he is and Tiffany knows what is in each Large ape. A large ape whose denominator is what bottle, but you do not. enters your kitchen, along he thinks of himself. The You can ask Tiffany one with a zookeeper. The larger the denominator the yes-or-no question, but when zookeeper says to you, “I will smaller the fraction” (Count you do, you have to point to remove this ape from your

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 117 c03.qxd 5/16/05 2:33 PM Page 118

kitchen four days after two will live the rest of your life Journey. An old car starts days before the day before in bliss.” (See Answer 3.19.) at a city in New Jersey and tomorrow.” What day will travels at a speed of 21 miles you be free of the ape? (See per hour toward New York. Answer 3.17.) After reaching New York, the Starship journey. Captain car returns, traveling over Kirk’s starship leaves Earth exactly the same distance, at for Mars. Captain Eck’s star- Ψ substitution. What num- only 3 miles per hour. What ship leaves from Mars for ber should replace the Ψ? is the car’s average speed over Earth. Their ships start at the the entire journey? (Assume same time and travel at uni- 5 8 7 5 4 that the car turned around form speeds, but one is faster instantly once it reached New than the other. After meeting 2 7 3 5 1 York.) (See Answer 3.22.) and passing, Kirk requires 17 hours and Eck requires 10 6 5 8 4 5 hours to complete the jour- ney. Approximately what total Four intelligent gorillas. 1 7 2 2 Ψ time did each starship require Four intelligent gorillas in for its interplanetary journey? the forests of Africa are (See Answer 3.18.) Assume stationary planets. holding an election to deter- (See Answer 3.20.) mine who should be king of Angel number-guessing game. An angel materializes Missing numbers. Insert the consecutive numbers 1 through on your doorstep and speaks. 11 in the 11 empty cells. Each number in the gray cells is the “I am thinking of two whole sum of the adjacent empty cells (right, left, up and down) that numbers that represent the touch the gray cell. number of apples and grapes in the Garden of Eden. The product of these numbers 13 is 1,000 times larger than their sum. What are the two numbers?” 33 You frown. “Wait, that is not enough information.” 19 19 The angel nods. “You are right. There is more than one 10 solution, and you have 24 hours to give me any solu- tion. If you are correct, you (See Answer 3.21.)

118 A Passion for Mathematics c03.qxd 5/16/05 2:33 PM Page 119

the gorillas. At the recent pound. And he has peanuts Three arrays. I have filled election, a total of 8,888 that cost $2.50 a pound. How the following three arrays votes were received for the many pounds of peanuts with consecutive numbers four candidate gorillas, the would Noah have to mix with from 1 to 12. The sum of the winner beating its opponents all the cashews to get a mix- numbers in the first array is by 888, 88, and 8 votes, ture that costs $3.20 per 24; in the second array, 34; respectively. How many votes pound? (See Answer 3.24.) and the third array, 20. Fill in did the successful gorilla the missing numbers. (See receive? (See Answer 3.23.) Answer 3.27.) Human hands. Mike col- lects lifelike models of 1 ? 8 ? 6 ? George Nobl: A true story. human hands. He wants to ? 11 ? 5 ? 3 In 2003, the math teacher put them on shelves in his George Nobl often posed den. His first thought is to put math problems to passersby each one on a shelf, but when Perfect cubes? Let n be in New York’s Time Square. he tries this, two hands have a positive integer. Can both He laid out different math to share one shelf. Next, n + 3 and n2 + 3 be perfect problems on a table and Mike tries to place the hands cubes? (A perfect cube is a offered Snickers bars to on the shelves so that every number that is the cube of anyone who got them right. shelf contains two hands, but an integer, like 23 = 8 or 33 Here is one of my favorite when he tries this, one shelf = 27.) Nobl problems. is left empty. How many It would seem as if I gave Noah is a candy store hands does Mike own? How you too little information to owner. He has 20 pounds of many shelves is he using? solve this, and that is why cashews, costing $3.55 a (See Answer 3.25.) the problem is so fascinating. How can you answer this problem with such meager Ages. I have five wonderful friends, one of whom is quite information? (See Answer young. The sum of all their ages is 109. If I add pairs of ages, I 3.28.) get the following:

Harmonic series. The har- Name Name Age Sum monic series Teja Danielle 16 Danielle Nick 32 1 + 1/2 + 1/3 + 1/4 + . . . Nick Pete 52 grows without bound, but so Pete Mark 72 slowly that it requires 12,367 terms to make the sum How old are my friends? (See Answer 3.26.) greater than 10.

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 119 c03.qxd 5/16/05 2:33 PM Page 120

A super slow-growing series. The series Rational roots. Can you find a number, n, such that n, 1/(3log3loglog3) + 1/(4log4loglog4) + . . . n – 7, and n + 7 all have grows so slowly that it requires 1010100terms to make the sum rational square roots? In greater than 10. other words, the square root of each of these three num- bers can be expressed as an A very slow-growing series. The series integer or a fraction. (See Answer 3.31.) 1/(2log2) + 1/(3log3) + 1/(4log4) + . . . grows so slowly that it requires 104,300 terms to make the sum greater than 10. Consecutive integers. In 1769, Leonhard Euler conjec- tured that the following equa- tion has no solution for Four pets. I have four and can account for a feeling positive integers: pets: an iguana, a cat, a bird, that mathematics is dry as A4 + B4 + C4 = D4 and a large ape. Today, I dust, as exciting as a tele- loaned all the pets to friends phone book. . . . Contrari- However, 218 years later, who enjoy the company of wise, appreciation of this Noam Elkies and Roger Frye pets. The iguana is returned element makes the subject found solutions like (A, B, every 6 days. The cat comes live in a wonderful manner C, D) = (95,800; 217,519; home every 4 days. The bird and burn as no other creation 414,560; 422,481). Note also comes home every 3 days and of the human mind seems to that 275 + 845 + 1105 + 1335 the ape every 7 days. The pets do” (Philip J. Davis and = 1445. Recall that in chapter are always returned at noon Reuben Hersh, The Mathe- 1, we discussed the equation and stay with me for an hour matical Experience, 1981). an + bn = c n, n > 2 as having during my lunch break so that no positive integer solutions. I can enjoy their company This statement is called Fermat’s Last Theorem. before loaning them out Fractional swap. Swap two again. In how many days will numbers in the numerator all my pets be together again with two numbers in the Donald in my cozy home? (See denominator to form a frac- Donald Trumpet. Answer 3.29.) 1 Trumpet died, leaving a pecu- tion equaling ⁄3. liar will. His will states that 1630 he will leave one million dol- Aesthetic math. “Blindness lars to be split between his 4542 to the aesthetic element in son William and his daughter mathematics is widespread (See Answer 3.30.) Hillary. Hillary, his favorite

120 A Passion for Mathematics c03.qxd 5/16/05 2:33 PM Page 121

child, gets four times the the eagle get? (Hint: You may Four digits. Substitute four amount of William. If Hillary have to cut some of the different digits for A, B, C, takes less than 30 seconds worms to be fair and accu- and D to make the following to determine how much rate.) (See Answer 3.34.) mathematical expression cor- William will get, the money rect. (AB is a two-digit num- is distributed immediately; ber, and DAC is a three-digit otherwise, Hillary gets noth- Puzzle solving. “Mathemat- number. A, B, C, and D are ing. Can you help her? ics began to seem too much single-digit numbers.) What did William get? (See like puzzle solving. Physics is (AB + A) × C = DAC Answer 3.32.) puzzle solving, too, but of puzzles created by nature, not (See Answer 3.36.) by the mind of man” (Maria Rubies and emeralds. Goeppert Mayer, in Joan Three huge rubies and two Dash’s Maria Goeppert- Wizard’s card. A wizard in emeralds weigh 32 pounds. Mayer: A Life of One’s Own, a long white robe approaches Four rubies and three emer- 1973). you with a single card that alds together weigh 44 pounds. Assume that the three rubies have an identical Number grid. The grid specifies 6 mathematical formulas, 3 weight, as do the emeralds. horizontally and 3 vertically. (Recall that multiplication and What is the weight of two division are performed before addition and subtraction.) Fill in rubies and one emerald? the missing integer numbers. (See Answer 3.33.) (See Answer 3.35.)

Crow and eagle. A crow ÷ + = 6 and an eagle are gazing at × × 100 worms. The crow says, + “Because I am smaller than × you, you will get six times + = 34 the number of worms I will get. If you tell me how many + + – worms you will get in this × 24 fine deal, I will build a beau- + = tiful nest for you. If you are not that smart, I will get all = = = the worms.” The eagle said, “It’s a 59 11 3 deal!” How many worms did

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 121 c03.qxd 5/16/05 2:33 PM Page 122

has a 9 on one side and a 4 on Missing numbers. The missing numbers in the following the other. When the wizard grid are one-digit integers. The sums for each row and each tosses the card, it can land on column, and one diagonal, are listed outside the 4-by-4 array. either side. How quickly can you find the missing numbers? The wizard can toss the card as often as you like, and ? 3 ? 6 16 each time he tosses the card, 4 ? 4 ? 17 you add the number to the ? 0 ? 8 15 running sum. For example, he 2 ? 5 ? 17 might toss a 9 and 4 and 4, which gives us a score of 17. 10 6 19 30 18 What is the highest whole (See Answer 3.39.) number score that is impossi- ble to obtain while playing this strange game? (See realize that in 20 years, the physical strength. She gazes Answer 3.37.) turtle will be only twice as at some barbells, and a ques- old as I will be then. How old tion forms in her mind. If she is my turtle, and how old am weighs 120 pounds plus a Insert symbols. Insert + I? (See Answer 3.40.) fourth of her own weight, or – between the numbers to how much does she weigh? find the total. (See Answer 3.42.) 8 7 6 5 4 3 2 1 = 88 Find A and B. What are A and B in this mathematical (If you don’t place a symbol Ladybugs. Teja has a num- expression? (BA is a two-digit between the numbers, they ber of ladybugs in a jar. The number, and 176B is a four- merge to form a multidigit number of ladybugs plus 10 digit number.) number. For example, here is grasshoppers is 2 less than 5 one possibility that, alas, BAA = 176B times the number of lady- turns out to be incorrect: bugs. 8,765 – 4,321 = 88.) (See (See Answer 3.41.) In addition, Teja has ten Answer 3.38.) times the number of butter- flies as she has grasshoppers. Prosthetic ulnas. Suzy If you wish, denote the num- New Guinea sea turtle. My Samson is a world-champion ber of ladybugs by L and New Guinea sea turtle is four weight lifter with arms the number of grasshoppers times older than I am. As it strengthened by prosthetic by G. How many ladybugs ages, its shell will turn a ulnas shaped like helices. does Teja have? (See Answer bright green. As I ponder its Today, she is on a TV show, 3.43.) beautiful color, I suddenly demonstrating her mental and

122 A Passion for Mathematics c03.qxd 5/16/05 2:33 PM Page 123

Nebula aliens. Aliens from that no Martian is married to much more liquid does the Trifid Nebula descend to more than one Martian.) William carry than Monica? New Jersey. The surface area What is the least number of (See Answer 3.47.) and the volume of their Martians who could live in spherical spaceship are both the crater? (See Answer 3.45.) four-digit integers times π, Unholy experiment. There expressed in units of feet. are several humans and rab- Assume that the strange ship Dimension X. You are bits in a dirty cage (with no contains only air, and its vol- transported to a nearby other types of animal). Per- ume is (4/3) πr 3. What is the dimension where half of 6 is haps they are trapped there radius r of the alien sphere? 4, not 3, as you expected. for some kind of unholy If you solve this puzzle, the What would a third of 12 be? experimentation. aliens will give you their ship (See Answer 3.46.) All that we know is this: so that you can explore the there are 70 heads and 200 universe. (See Answer 3.44.) feet inside the cage. Do you Wine and vinegar. Monica have the gut feeling that walks along the New Jersey there are more rabbits than Martian females. In a Mar- Turnpike, carrying ten 3-cup humans? Exactly how many tian crater, three-sevenths of bottles of vinegar that are humans are there, and how the females are married to one-quarter full. Her friend many rabbits? (See Answer one-half of the males. What William is carrying five 4- 3.48.) fraction of the crater’s Mar- cup bottles of red wine that tians are married? (Assume are one-quarter empty. How Space race. America and Russia are in an important Hyperpower towers. Hyperpowers of the form race from Earth to Saturn. x = g(z) = zzz Both spaceships start at Moscow and end at Saturn. for real positive z comprise a fascinating reservoir for com- They start the race traveling puter study. You can define the sequence {zn} by z1 = z, at the same speed and neither zn zn + 1 = z , n = 1, 2, 3, . . . You can repeat this mathematical of them speeds up or slows feedback loop over and over again. Whenever the sequence down. The result is not a tie. {z(n)} converges, we write How is this possible? (See gz()= lim() zn Answer 3.49.) n→∞ You will find that the hyperpower tower diverges (gets larger and larger) for starting values greater than e1/e. You’ll Number journey. “Mathe- also find some interesting surprises when the starting value is matics is not a careful march less than e–e. Try it. down a well-cleared highway,

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 123 c03.qxd 5/16/05 2:34 PM Page 124

but a journey into a strange mighty sword to sever the Fluid pool. Creatures from wilderness, where the explor- number so that you retain the a nearby dimension penetrate ers often get lost. Rigor last two digits of this result, our reality and want to fill a should be a signal to the and multiply by 3 again. large swimming pool with historian that the maps have Repeat the process. For their lime-scented nutritional been made, and the real example, 13 becomes 39, fluid. From Hose A pours a explorers have gone else- then 117, which we cleave to green slime that would, by where” (W. S. Anglin, 17. Thus, starting with 13, we itself, take 30 minutes to fill “Mathematics and History,” produce 13 → 39 → 17 → 51 the pool. From Hose B surges The Mathematical Intelli- → 53 → 59, . . . How many a crimson slime that, by gencer, 1992). steps does the starting num- itself, would take 20 minutes ber 13 take to return back to to fill the pool. How long 13? Do such sequences would it take to fill the pool if Odin sequence. The Norse always return to their starting both hoses poured at the god Odin tells you to pick numbers? If so, how many same time? any two-digit number. Multi- steps are usually needed? The police will arrive at ply by 3, and use Odin’s (See Answer 3.50.) the scene in 15 minutes. If the creatures can fill the pool in under 15 minutes, they will Tanzanian zoo. Monica is visiting her zookeeper friend Bill deposit their spores in the liq- in the rain forests of Tanzania. Bill loves long-necked animals, uid, multiply at fantastic and his zoo is a strange one, for it consists of just two types of rates, and take over Earth. animal: giraffes and ostriches. Monica gazes across the Will the creatures succeed in wooded area. “How many animals do you have?” Bill replies, their plan for world con- “Among my animals, I have 22 heads and 80 legs in all. The quest? (See Answer 3.52.) number of ostriches is less than half the number of giraffe eyes minus 1. From this little information, can you tell me how many giraffes and ostriches I have?” Madagascar death snail. For the second problem, consider Bill’s other zoo in Kenya. Bill is racing his poisonous This zoo is filled only with long-necked birds. Monica is Madagascar snail on a strolling with Bill through the Kenya zoo. “How many birds circular track that is 1 foot do you have altogether?” she asks. in circumference. The first “In my vast collection of birds, all but two of them are time around, the snail travels geese, all but two of them are swans, and all but two of them at 30 feet per hour. How fast are ostriches. From my meager information, you should be must the snail go the second able to find the answer.” time around to average 60 “Are you some kind of nut?” feet per hour for the two “Not at all. Tell me the answer, and we’ll have a fine goose laps together? (See Answer for dinner.” (See Answer 3.51.) 3.53.)

124 A Passion for Mathematics c03.qxd 5/16/05 2:34 PM Page 125

Pulsating brain. Dr. Matrix Kama Sutra puzzle. In the Kama Sutra, an ancient Indian is a godlike being with a sex guide, we find a man who is tired of having sex, pausing brain so active that its glow- and asking his lover: ing pulsations can be seen Oh beautiful maiden with beaming eyes, tell me, since you through his glassine skull. He understand the method of inversion, what number multi- is also able to create minia- plied by 3, then increased by three-quarters of the product, ture universes. then divided by 7, then diminished by one-third of the Dr. Matrix points to a result, then multiplied by itself, then diminished by 52, shiny glass jar filled with whose square root is then extracted before 8 is added and black holes and glowing then divided by 10, gives the final result of 2? stars, and nothing else. In other words, there are only This is apparently a kind of mathematical foreplay. Can you two kinds of astronomical solve the puzzle? (See Answer 3.56.) objects to consider. Dr. Matrix tells you that the percentage of black holes exotic cuisine, so the aliens Alien robot insect. A tiny in his jar is more than 70 per- set out to harvest all living disabled alien robot insect is cent but less than 75 percent. humanity from Earth. attempting to climb over the Can there be as few as seven Their standard process edge of its spaceship, which astronomical objects in the involves dissolving the har- is 40 feet tall. The creature jar? (See Answer 3.54.) vest through a process of starts at the base of the ship enzymatic deliquescence and wall and takes a day to crawl pumping the noxious exudate 8 feet upward. The insect Grotesque vessel for total into a single titanium spheri- needs to recharge its fuel human harvest. My colleague cal vessel. Their standard cells and so rests. Ignis Fatuus Jaymz once spherical vessels come in A month later, the insect posed the following question diameter sizes of 1, 2, 4, 8, awakens and realizes that it to my discussion group. The 16, 32, and 64 kilometers. has slipped down 4 feet year is 2030. Several alien Queequeg, their most while sleeping. It begins its poachers, while flying senior hunter, instantly esti- upward journey, and 8 feet through space, discover Earth mates the correct size of later it sleeps and falls down on their way home from hunt- vessel to use, as the others by 4 feet. If this happens ing. They have unused space begin setting up the rendering every month, in about how in their cargo hold. Starting pumps and vats. He assumes many months will the insect in New York City, the aliens that an average human weighs reach the top of a 40-foot begin to examine all life on about 75 kilograms (165 wall of its craft? (See Answer Earth. After a cursory taste pounds). What size vessel did 3.57.) test, they decide that they can Queequeg specify? (See easily market humans as Answer 3.55.)

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 125 c03.qxd 5/16/05 2:34 PM Page 126

Goa party. You are party- same distance from neighbor- designed rocket holds the ing in Goa, India—listening ing columns. The columns at hamburger. Britney’s crazy to Goa trance music—and each corner of the square rocket has a complicated set suddenly see a group of Sikhs floor contain beautiful Doric of rocket boosters. She riding a total of thirteen tricy- caps. How many columns did believes that the distance of cles and bicycles. You also the ancient Romans use? the hamburger in miles from see thirty-five wheels. How How did you solve this? (See Earth can be represented as a many tricycles do you see? Answer 3.60.) function of time in seconds: (See Answer 3.58.) f(t) = 3t2 + 4t3. How fast is the hamburger Hamburgers in space. Brit- moving after it has traveled Gelatinous octopoid. Dr. ney Spiracle is a blonde pop 100 seconds? Do you think Eck is a gelatinous octopoid singer and a rocket hobbyist. Britney can actually get her living within a gas pocket ten She wants to make the Guin- hamburger to travel this long miles beneath the surface of ness Book of World Records and this fast? (See Answer Planet Uranus. He spent one- by being the first person to 3.61.) third of his life as a baby, launch a hamburger into the one-fifth as a youth, and one- air. A small, specially seventh as an active octopoid. If Dr. Eck finally spent 10 centuries as an old octopoid, Spores of death and madness. From my pocket, I withdraw a then how many centuries did small amber vial. Inside this vial are ten spores of an alien he spend as an active bacterium. I open the vial and place the ten spores in the cen- octopoid? (See Answer 3.59.) ter of a glass of milk. The bacteria multiply quickly. The bac- teria emit a foul stench, but we need not worry about that for now. This is, however, a dangerous experiment, because the Cloned Jefferson in Rome. spores are said to cause wild hallucinations if inhaled. Thomas Jefferson has been By tomorrow at this time, there will be 2 million bacteria in “resurrected” from the dead the milk. The milk can contain a total of 6 billion bacteria, and by a cloning technology and our goal is to determine when the milk will contain this num- sent back in time to visit ber of alien bacteria. ancient Rome. He comes To solve this problem, we need to know that exponential kt across a 0.3-by-0.3-mile- growth makes use of the formula N(t) = N0e . If this formula square marble floor with means nothing to you, skip to the answer. Exponential growth columns equally spaced along is growth that increases at a rate proportional to the current the periphery of the floor. He population. Or, to put it crudely: the more bacteria, the faster counts 15 columns along the population grows. Or, more specifically: given twice the each side of the wondrous number of bacteria, the population grows twice as fast. (See floor. Each column is the Answer 3.62.)

126 A Passion for Mathematics c03.qxd 5/16/05 2:34 PM Page 127

An ancient problem of Mahavira. Mahavira (A.D. 800– From alpha, Dr. Eck steals A.D. 870) (or Mahaviracharya, meaning Mahavira the Teacher) a number of beetles equal to lived in southern India. The only known book by Mahavira is one-third of the number of Ganita Sara Samgraha, dated A.D. 850. Here is one of his beetles already in omega and problems. puts these beetles into omega. Next, you retrieve the stolen A young lady has a quarrel with her husband and damages beetles from omega, a num- her necklace. One-third of the necklace’s pearls scatter ber equal to one-third of the toward the lady. One-sixth fell on the bed. One-half of what number remaining in alpha, remained (and one-half of what remained thereafter and and return them to alpha. again one-half of what remained thereafter) and so on, Together, alpha and omega counting six times in all, fell everywhere else. [Thus] 1,161 now have 70 beetles. How pearls were found to remain unscattered. How many pearls many beetles does each did the girl originally have in total? (See Answer 3.63.) pyramid contain? (See Answer 3.65.) would have been 10 years Passionate math. “Con- older than you were 3 years trary to popular belief, math- before I was half the age I ematics is a passionate Doomsday occurs in Novem- am now.” subject. Mathematicians are ber 2026. One day, while “Impressive that you driven by creative passions combing through a trash pile should say such a thing,” his that are difficult to describe, of old Science magazines, wife replied, with a slurping but are no less forceful than I found a gem from the year sound. “As for me, 12 years those that compel a musician 1960. The title is “Doomsday: ago, I would have been 3 to compose or an artist to Friday, 13 November, A.D. years older than you were 6 paint. The mathematician, the 2026.” That’s quite a title for years before I was a third of composer, the artist succumb a serious magazine! The my present age.” to the same foibles as any authors claimed that on How old are Dr. Oz and human—love, hate, addic- this date, human population his lovely wife? (See Answer tions, revenge, jealousies, will approach infinity—if it 3.64.) desires for fame, and money” grows as it has grown in the (Theoni Pappas, Mathemati- last two millennia. The cal Scandals, 1997). Lucite pyramids. Dr. Eck researchers’ work contains sets before you two Lucite the following formula for pyramids, one labeled alpha, world population N as a func- Alien slug. Dr. Oz is an the other labeled omega. tion of time t: alien slug. “Isn’t it interest- Both pyramids contain a 179. × 1011 ing,” he said to his jumentous number of beetles from the N = wife, “that 6 years ago, I Peruvian rain forests. (.2026 87 − t )099.

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 127 c03.qxd 5/16/05 2:34 PM Page 128

where time is measured in estimates of the world popu- •Howland, W. “Doomsday years A.D. Just plug in a year, lation available to him when (Letter to the Editor),” t, and you can calculate the he lived, he could have pre- Science 133 (March 1961): population for that year. The dicted Doomsday accurately 939–40. researchers derive their within 300 years. Elizabeth I • Shinbrot, M. “Doomsday model using a combination of of England could have pre- (Letter to the Editor),” empirical and theoretical rea- dicted the critical date within Science 133 (March 1961): soning that deals with fertil- 110 years, and Napoleon 940–41. ity and mortality rates. The within 30 years. Various tech- •von Foerster, H., P. Mora, surprise is that the formula nological revolutions in and L. Amiot. “Doomsday was so accurate. The formula human history show that food (Letter to the Editor),” gave remarkably close figures hasn’t been a limiting factor Science 133 (March 1961): for human population between to human growth. The 941–52. the years 1750 and 1960. It Doomsday authors suggest was even in agreement with our “great-great-grandchildren • Serrin, J. “Is ‘Doomsday’ world population estimates will not starve to death, they on Target?” Science 189 when Christ was born. will be squeezed to death.” (1975): 86–88. There is just one problem. If this little description has In the year 2026 the U.S. attracted your interest, you population is infinite. N goes can consult the original paper Strange paper title. In to infinity. Some religious for all the details: H. von 1988, Steven Strogatz pub- extremists have taken this to Foerster, P. Mora, and L. lished “Love Affairs and Dif- mean that in 2026 Armaged- Amiot, “Doomsday: Friday, ferential Equations” in the don comes—Doomsday. We 13 November, A.D. 2026,” prestigious Mathematics all die. Science 132 (November Magazine (61, no. 1: 35). Let me quote from their 1960): 1291–95. The paper analyzes the time- paper where they describe a The following are contro- evolution of the love affair parameter in their model versial responses to the von between Romeo and Juliet.

called t0: “For obvious rea- Foerster paper: sons, t [A.D. 2026] shall be 0 • Robertson, J., V. Bond, and called ‘doomsday,’ since it is Bakhshali manuscript: E. Cronkite. “Doomsday on that date, t = t , that N A true story. The famous 0 (Letter to the Editor),” goes to infinity and that the Bakhshali manuscript was Science 133 (March 1961): clever population annihilates found in 1881, in a stone 936–37. itself.” enclosure in northwest India, The authors’ methods were • Hutton, W. “Doomsday and it may date as far back so good that if Charlemagne (Letter to the Editor),” as the third century. When it had their initial equation, Science 133 (March 1961): was discovered, a large part N = K/τk, and also several 937–39. of the manuscript had been

128 A Passion for Mathematics c03.qxd 5/16/05 2:34 PM Page 129

destroyed and only about 70 the demonstration of which particular, using their formu- leaves of birch bark, of which lies so deep as not to be dis- las, the researchers can exam- a few were only scraps, sur- covered until after many ine just one interview and vived to the time of its dis- fruitless efforts; and even almost always correctly pre- covery. Here is one problem then it is obtained by some dict whether couples will from the manuscript: tedious and artificial process, divorce. One key input to the while the simpler methods of formulas is the degree to Before you are a group of proof long remain hidden which one subject displays a twenty people comprising from us” (Carl Friedrich contemptuous facial expres- men, women, and children. Gauss, 1849, quoted in Ivars sion as the partner speaks. They earn 20 coins Peterson, “Waring Experi- Happily, the researchers can between them. Each man ments,” 2004). improve relationships by earns 3 coins, each woman studying their love formulas 1.5 coins, and each child to guide several days of ther- 0.5 coin. How many men, Calculus of love. In 2004, apy. For further reading, see women, and children are the psychologist John Erica Klarreich, “The Calcu- there? Gottman and the mathemati- lus of Love,” Science News (See Answer 3.66.) cian James Murray, both of 165, no. 9 (February 28, the University of Washington, 2004): 142. created a set of equations that Mathematics and truth. accurately predicts whether a “The higher arithmetic pres- marriage will end in divorce. Strange paper title. In ents us with an inexhaustible They have tested their equa- 1983, Bruce Reznik pub- storehouse of interesting tions on videotaped inter- lished “Continued Fractions truths—of truths, too, which views made years earlier. In and an Annelidic PDE” in the are not isolated, but stand in the closest relation to one another, and between which, Defying imagination with a small formula. If you were asked to with each successive advance find the smallest rational number x (smallest in the sense of of the science, we continually smallest numerator and denominator) such that there exist discover new and wholly rational numbers y and z and unexpected points of contact. 2 2 2 2 A great part of the theories of x – 157 = y , x + 157 = z arithmetic derive an addi- the numerator and the denominator would be so large as to tional charm from the peculi- defy imagination. We know that a solution does exist, and you arity that we easily arrive by may contact me for the details. However, no one has ever induction at important propo- found a rational number solution for this: sitions, which have the stamp of simplicity upon them, but x2 – x – 193 = y2, x2 + 193 = z2

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 129 c03.qxd 5/16/05 2:34 PM Page 130

prestigious Mathematical Abu’l Wafa. The Muslim (a + b) = sin a cos b + cos a Intelligencer (5, no. 4: astronomer and mathemati- sin b. Abu’l-Wafa was a dis- 61–63). The term annelidic cian Abu’l Wafa (940–998) tinguished researcher at the means “earthwormlike.” The established this relation: sin caliph’s court in Baghdad. paper starts, “If you cut an earthworm (annelid) in two, each half will regenerate its Harmonic series and Euler’s γ. We’ve previously mentioned missing part and become a that the harmonic series grows very slowly. In fact, the follow- new earthworm.” ing “harmonic series” is divergent; that is, it approaches infin- ity as n does. ∞ 1 1 1 1 Riemann hypothesis. Over H ==+++∑ 1 ... = n 2 3 4 5,000 volunteers around the n 1 world are working on the Rie- For centuries, mathematicians mistakenly believed that the mann hypothesis, using a dis- harmonic series converges because each new term gets contin- tributed computer software ually smaller. Nicole Orseme (1323–1382) finally proved that package at Zetagrid.Net to it diverges. Interestingly, Leonhard Euler (1707–1783) discov- search for the zeros of the ered a formula to approximate the value of the sum of a finite Riemann zeta function. number of its terms: The Riemann zeta function m 1 is a very wiggly curve defined ∑ ≈+ln m γ for Re(s) > 1 by n=1 n ∞ 1 where ln m is the natural logarithm of the number of terms in ζ ():s = ∑ γ s the series, and is Euler’s constant. The formula becomes = k k 1 more accurate as m increases. Thus γ = According to the Riemann 0.57721566 4901532860 6065120900 8240243104 hypothesis, all nontrivial 2159335939 9235988057 6723488486 7726777664 zeros of the zeta function are 6709369470 6329174674 9514631447 2498070824 on the critical line 1/2 + it, 8096050401 4486542836 2241739976 4492353625 where t is a real number. 3500333742 9373377376 7394279259 5258247094 More than 300 billion zeros 9160087352 0394816567 . . . . have so far been studied using the software at Zetagrid.Net. In chapter 2, I mentioned how this constant is also known The verification of Riemann’s as the Euler-Mascheroni constant or Euler’s gamma. Human- hypothesis (formulated in ity knows more than a million digits of γ, but we don’t know 1859) is considered to be one whether γ is a rational number (the ratio of two integers a/b). of mathematics’ most chal- Yet if it is rational, the denominator (b) must have more than lenging problems. 244,663 digits!

130 A Passion for Mathematics c03.qxd 5/16/05 2:34 PM Page 131

Al-Battani. The Muslim Luminescent being. A so that your neighbors may mathematician Al-Battani luminescent being from help. (850–929) discovered and Alpha Centauri comes to 1. Consider an integer N that promoted various trigono- your home to test humanity’s is greater than 1. metric relationships and, as intelligence. If you answer 2. Consider the integer M, far as we know, was the first correctly, humanity may which is the square root person on Earth to produce a become part of a large inter- of N. table of cotangents that corre- galactic federation. If you sponded to every degree. His answer incorrectly, the 3. Given that M is the sum family had been members alien will shroud Earth in of the digits in N, what of the Sabians, a religious perpetual darkness. Here’s is N? group of star worshippers the problem that the alien (Hint: Only one value of N from Harran. writes on your front door, can possibly satisfy these properties.) (See Answer 3.67.) Al-Khwarizmi and algebra. The word algebra comes from the title of Al-Khwarizmi’s book Kitab Al-Mukhasar fi Hisab Al-jabr Wa’l Muqabala (The Book of Summary Concerning Mathematical romance. One Calculating by Transposition and Reduction). Al-Khwarizmi romantic evening in front of a (c. 790–847) was an Arab mathematician, and his book used warm fireplace, your sweet- no symbols but expressed mathematics as words. In fact, he heart turns to you and says, explained how to find solutions to quadratic equations of the “I will marry you if you can form ax2 + bx + c = 0, using only words, instead of writing out solve my mathematical chal- the solutions by using symbolic notations as we would today: lenge. Consider a multidigit −±2 − x = []/.bb42 aca integer N that is a power of 2. Moreover, each digit of N is also a power of 2. What is N?” Indefinitely divergent. The following series is “indefinitely You think about it, but no divergent” because it does not diverge, in the sense of being solutions pop into your head. unbounded, or converge to a limit. Your lover sighs, massages S = 1 – 1 + 1 – 1 + 1 – 1 + . . . the back of your neck, and finally whispers, “If you do We can group terms one way: not answer correctly, I will S = (1 –1) +(1 –1) + (1 –1) + . . . seek a more intelligent mate.” Can you satisfy your or another: potential spouse? (See S = 1 + (–1 + 1) + (–1 +1) . . . Answer 3.68.) to get seemingly different results, that is, 0 or 1, respectively.

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 131 c03.qxd 5/16/05 2:34 PM Page 132

A single solution? According to The Inquisitive Problem sum of all Mi equals N, what Solver, the only positive integer solution to is the smallest possible value for N?” A × B × C = C × D × E = E × F × G All the shoppers stop dead is 8 × 1 × 9 = 9 × 2 × 4 = 4 × 6 × 3, if we assume that each in their tracks. You look up variable must be a single digit. and shout, “We don’t under- stand!” The announcement contin- Harmonic series. Can you show that the harmonic series H ues, “Okay, here’s a hint. As diverges, that is, it sums to infinity? an example that does not work, consider 215. If we ∞ 1 1 1 1 H ==+++∑ 1 ... take every two-digit subset n=1 n 2 3 4 and add, we get 21 + 25 + 12 + 15 + 52 +51 = 176, which (See Answer 3.69.) does not equal 215. If you can solve my problem, you can have all of the items in Harmonic series on a diet. Show that the harmonic series H, the mall that you can bring to which normally diverges, does not diverge if we remove all the your car on a one-hour shop- terms with at least one 9 digit in the denominator of the terms. ping spree.” The people in the mall roar ∞ 1 1 1 1 H ==+++∑ 1 ... with delight, yet no one can n=1 n 2 3 4 solve the problem. Can you? (See Answer 3.71.) (See Answer 3.70.)

Castles and strings. You are in a damp castle with two Variable notation. The Shopping mall puzzle. Yo u lengths of string and a book philosopher René Descartes are in a large New Jersey of matches. If you touch the (1596–1650) established a shopping mall. Over the flame to the end of one convention of using letters at mall’s public address speaker string, the string will burn the end of the alphabet for comes a message: for exactly 10 minutes. Simi- variables (like x, y, and z) and “Consider an integer N larly, the shorter string will letters at the beginning for consisting of different digits. burn for exactly 1 minute.

constants (like a, b, and c). Next consider Mi—all the How do you measure 5 min- Example f (x) = ax + by + c. two-digit numbers that can be utes and 30 seconds using We still use this convention made by selecting two digits the matches and the strings? today. from N. If I told you that the Assume that the strings burn

132 A Passion for Mathematics c03.qxd 5/16/05 2:34 PM Page 133

at the same rate all along “A Nonlinear Recurrence of three numbers is 1, the their lengths. (See Answer Yielding Binary Digits,” 64, sum of their squares is 15, 3.72.) no. 3: 168–71). They note and the sum of their cubes is the unusual property that 3, what is the sum of their

u2n + 1 – 2u2n – 1 is just the nth fourth powers?” Target practice. A tiny digit in the binary expansion What is the answer, and, green elf hands you a bow of √2 . more interestingly, how and an arrow and points to a much time do you think it square target hanging on an would take someone to ancient oak tree. “With four Hobson gambit. My col- provide an answer? (See shots, hit four different num- league Nick Hobson blithely Answer 3.74.) bers on the target that total tossed out this problem to my 100.” Can you do it? discussion group: “If the sum

22 15 62 61 Magic light board. You are in an incense-filled psychedelic 87 23 13 63 shop in San Francisco. Black light posters adorn the walls. Music from Jefferson Airplane pours from an old stereo. 17 9 24 19 Before you is a magic light board. Each cell in this board of eight cells is one of eight colors: red, yellow, orange, green, 55 20 7 51 blue, indigo, violet, or tan. No color is repeated and all colors are used. Using the clues given, can you determine the color (See Answer 3.73.) of each cell? 1. One column has a red cell over a blue cell. Another column has an orange cell over a violet cell. A nonlinear recurrence yielding binary digits. Consider 2. Number 8 is tan. Number 1 is not yellow. the enigmatic properties of 3. Green is to the right of orange, and violet is to the right of the sequence 1, 2, 3, 4, 6, 9, indigo. 13, 19, 27, 38, 54, 77, . . . 4. Blue is on an odd number, and indigo is on an even number. defined by the recurrence 1 5. Blue is to the left of indigo, and both orange and green are u = 1, u = [√2 u + ⁄2 ], 1 n + 1 n in sections with higher numbers than both red and yellow. n ≥ 1, where [x] denotes the floor of x, the largest integer not larger than x. This for- 1 2 3 4 mula was discussed in the 5 6 7 8 June 1991 issue of Mathe- matics Magazine (Stanley Rabinowitz and Peter Gilbert, (See Answer 3.75.)

Algebra, Percentages, Weird Puzzles, and Marvelous Mathematical Manipulations 133 c03.qxd 5/16/05 2:34 PM Page 134

Aqueduct. You are trans- dier is on the Italian side of Students and math. “I ported back in time and to the aqueduct inside a small advise my students to listen another dimension and find hut. Every 10 minutes he carefully the moment they yourself on a thin stone path comes out of the hut to check decide to take no more math- on top of a Roman aqueduct the aqueduct path. Your mis- ematics courses. They might between Italy and Greece. sion is to escape from the be able to hear the sound of The aqueduct is guarded by a barbaric Romans and flee to closing doors” (James Roman soldier whose orders Greece. It takes 20 minutes to Caballero, “Everybody a are to kill anyone trying to cross the aqueduct. There is Mathematician?” CAIP leave Italy. no place to hide, and you Quarterly 2 [Fall 1989]). Anyone trying to come cannot go under the aque- into Italy from Greece will be duct. How do you escape? turned back. The Roman sol- (See Answer 3.76.)

134 A Passion for Mathematics 1 c04.qxd 5/16/05 2:44 PM Page 135 2 3 44 Geometry,Geometry,5 Games,Games,6 andand BeyondBeyond

N WHICH WE EXPLORE TILES, PATTERNS, POSITION PROBLEMS, ARRAYS, I Venn diagrams, tic-tac-toe, other games played on boards, Königsberg bridges, catenaries, Loyd’s and Dudeney’s puzzles, Sherck’s surface, magic squares, lituuses, inside-out Mandelbrot sets, the Quadratrix of Hippias, hyper- spheres, fractal geese, Pappus’s Arbelos, Escher patterns, Schmidhuber circles, and chess knights.

Geometry is about spatial relationships and glistening shapes that span dimensions. It’s the Silly Putty of mathematics.

135 c04.qxd 5/16/05 2:44 PM Page 136 c04.qxd 5/16/05 2:44 PM Page 137

Königsberg bridges. One of seven bridges without having my favorite branches of to cross any bridge more than mathematics deals with graph once. theory, or the mathematics of In other words, could you how objects are connected, take a complete tour of the which might be diagrammed town and return to the start- as linkages of dots connected ing point by crossing all of by lines. One of the oldest the bridges just once? This problems in graph theory problem had plagued them involves the seven famous for years, because no one had Königsberg bridges of Ger- ever been able to devise such many (now part of Russia), a tour. No one knew for sure schematically illustrated in until the Swiss mathemati- Figure 4.2 Simplified graph of figure 4.1. cian Leonhard Euler in 1736 the Königsberg bridges. People in old Königsberg was able to prove absolutely loved to take walks along the that this was impossible. Euler showed that one river and the island, and it Euler represented the could traverse the graph by had become a Sunday tradi- bridges by a graph in which going through every segment tion to take the walk of the land areas are represented by just once only if the graph had seven bridges. Over a few dots and bridges by lines. fewer than three vertices of centuries ago, people debated Figure 4.2 shows a simplified odd “valence.” The valence of whether it was possible to diagram of the Königsberg a vertex is the number of lines take a journey across all bridges. that start or stop at the vertex. For example, Point A in the Königsberg graph has a valence of 5, and Point B has a valence of 3. Because all of the vertices of the Königsberg graph have odd valences, it is not possible to traverse the graph without going through a line more than once. You can verify this your- self by trying to draw figure 4.2 with a pencil and not lift- ing the pencil from the paper. You cannot draw the Königs- berg graph without repeating Figure 4.1 Königsberg bridges. a line.

Geometry, Games, and Beyond 137 c04.qxd 5/16/05 2:44 PM Page 138

Venn diagrams. The “Mart- • All angels are winged ian bodies” puzzle that fol- creatures (Region A lies lows shows the usefulness of entirely within Region W). simple Venn diagrams for • No humans are winged practical problem solving. creatures (Regions H and John Venn (1834–1923), a W are nonintersecting). cleric in the Anglican Church, devised a scheme for visualiz- • No humans are angels ing elements, sets, and logical (Regions H and A are non- relationships. A Venn diagram intersecting). usually contains circular areas This is a depiction of a basic Figure 4.4 John Venn’s diagram representing groups of items rule of logic—namely, that for four sets, using ellipses. that share common proper- from the statements “all A is ties. For instance, within the W” and “no H is W,” it fol- universe of all real and leg- lows that “no H is A.” The by using ellipses (figure 4.4): endary creatures (the bound- conclusion is evident when we Venn tried to ensure that his ing rectangle in figure 4.3), look at the diagram’s circles. diagrams would always be Region H represents the Venn struggled with gener- “symmetrical figures . . . humans, Region W the alizing his diagrams for elegant in themselves.” winged creatures, and Region visualizing many sets with A century passed before A the angels. A glance at the intersecting areas. For exam- various means that satisfied diagram reveals that ple, he got as far as four sets Venn’s “elegance” statement were devised for larger num- bers of sets. For example, Branko Grünbaum, a mathe- matician at the University of Washington, was the first to show that there are rota- tionally symmetric Venn diagrams made from five congruent ellipses. Mathematicians gradually realized that rotationally sym- metric diagrams can be drawn only with prime num- bers of petals. Many different symmetrical Venn diagrams Figure 4.3 Venn diagram for real and legendary creatures, exist for five sets, including which include humans, winged creatures, and angels. the one shown in figure 4.5

138 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 139

that was made by rotating an cult to appreciate without ellipse. However, symmetri- using color. Figure 4.6 shows cal diagrams with seven Hamburger’s diagram after petals were so hard to find removing the exterior of one that mathematicians initially of the curves. The original doubted their existence. large and beautiful color In 2001, Dr. Peter Ham- image was created by Edit burger, of Indiana-Purdue Hepp, following the methods University in Fort Wayne, of Dr. Hamburger. You can Figure 4.5 Branko Grünbaum’s constructed an example for read more about these com- rotationally symmetric Venn diagram made from eleven petals. The diagram is plicated objects and artistic five congruent ellipses. so complicated that it is diffi- renditions at Dr. Hamburger’s

Figure 4.6 Symmetric 11-Venn diagram, after removal of one of the curves, courtesy of Dr. Peter Hamburger of Indiana-Purdue University and Edit Hepp.

Geometry, Games, and Beyond 139 c04.qxd 5/16/05 2:44 PM Page 140

Web site, www.ipfw.edu/ Combinatorics, Probability, baum, “Venn Diagrams and math/Hamburger/, and in and Computing 7 (1998): Independent Families of Barry Cipra, “Diagram 149–52. You can read more Sets,” Mathematics Magazine Masters Cry ‘Venn-i, Vidi, about the Branko Grünbaum 48 (January–February 1975): Vici’,” Science 299, no. 5607 work here: Branko Grün- 12–23. (January 31, 2003): 651. The mathematician Anthony Edwards, of Cam- bridge University, came up with “cogwheel representa- tions” for Venn diagrams. For example, figure 4.7 is Edwards’s version of a Venn diagram that shows intersec- tions of five sets. Edwards has extended his representations to as many Figure 4.7 Anthony Edwards’s “cogwheel representations” for displaying the intersections of five sets. intersecting sets as we may wish to show. Edwards has written Martian bodies and Venn diagrams. A group of theologians extensively on the subject, and scientists has discovered a humanoid race of creatures liv- including such books and ing in a crevice on Mars. Nine hundred Martians were exam-

papers as Cogwheels of the ined for pointed ears (a1), fangs (a2), and forehead horns (a3). Mind (Baltimore, Md.: Johns The number of Martians with the various characteristics can Hopkins University Press, be summarized as 2004); “Venn Diagrams for Many Sets,” Bulletin of the Body Characterics Number of Martians International Statistical Insti- a tute, 47th Session, Paris, 1 600 1989 (contributed papers, a2 390

Book 1, 311–12); “Venn Dia- a3 400 grams for Many Sets,” New a1 and a2 250 Scientist (7 January 1989): a and a 150 51–56; “Rotatable Venn 2 3 Diagrams,” Mathematics a1 and a3 200

Review 2 (February 1992): a1, a2, and a3 20 19–21; and “Seven-Set Venn Diagrams with Rota- How many Martians have none of these body characteristics? tional and Polar Symmetry,” (See Answer 4.1.)

140 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 141

Geometry and beyond. “It the increase of non-Euclidean Star of David. Is it possible was formerly supposed that systems, that Geometry to draw figure 4.9 without Geometry was the study of throws no more light upon lifting your pencil and with- the nature of the space in the nature of space than arith- out repeating lines? (Recall which we live, and accord- metic throws upon the popu- what we learned about graphs ingly it was urged, by those lation of the United States” and vertices in the section on who held that what exists can (Bertrand Russell, “Mathe- the Königsberg bridges.) (See only be known empirically, matics and Metaphysicians,” Answer 4.2.) that Geometry should really Mysticism and Logic and be regarded as belonging to Other Essays, 1918). applied mathematics. But it has gradually appeared, by

Tic-tac-toe patents. I collect U.S. patents dealing with tic-tac-toe and Rubik’s Cube–like games. For example, in 1995, U.S. Patent 5,433,448 was issued for a three- dimensional tic-tac-toe game (pictured in figure 4.8) that uses Velcro patches on the movable pieces. Figure 4.9 Draw the star without lifting your pencil and without repeating lines.

Mathematics as the uni- verse’s language. “The universe cannot be read until we have learnt the language and become familiar with the characters in which it is writ- ten. It is written in mathemat- ical language, and the letters are triangles, circles and other geometrical figures, without which means it is humanly impossible to com- prehend a single word” Figure 4.8 U.S. Patent 5,433,448: a three-dimensional (Galileo Galilei, Opere Il tic-tac-toe game. Saggiatore, 1623).

Geometry, Games, and Beyond 141 c04.qxd 5/16/05 2:44 PM Page 142

Tic-tac-toe and The Mondrian puzzle. In this hypothetical meeting, the Dutch Simpsons. In 1996, tic-tac-toe painter Piet Mondrian is showing Albert Einstein the painter’s was prominently featured on latest work (figure 4.10). The painting is made up of 18 rec- the hit TV show The Simp- tangles, which are drawn identically in the schematic figure sons. In an episode titled for simplicity of presentation. All intersecting lines form right “Much Apu about Nothing,” angles with one another. The areas of several of the rectangles Apu Nahasapeemapetilon, are shown inside the rectangles. the convenience store clerk, Mondrian wants to know the area of one rectangle in describes how he wrote the particular, denoted by the question mark. Einstein looks at the first computerized version of painting, wondering whether it is possible to calculate the par- tic-tac-toe for his doctoral ticular area, given the meager amount of information we have. thesis, using several thousand Can you help Einstein? (See Answer 4.3.) punch cards. It took Apu nine years to complete his thesis. Supposedly, only the top players in the world could beat his computer program, which is ridiculous because when played correctly, tic- tac-toe is always a tie!

Mathematician as poet. “A mathematician, like a painter or poet, is a maker of patterns. If his patterns are more permanent than theirs, it is because they are made with ideas” (G. H. Hardy, A Mathematician’s Apology, 1941). Figure 4.10 Mondrian puzzle.

Catenary. Many hanging shapes in nature (such as a rope suspended at two points Galileo once erroneously curve is also called the and sagging in the middle) believed that the curve of a alysoid or the chainette, and follow a catenary curve chain hanging under gravity its formula was discovered defined by (a/2)(e x/a + e–x/a). would be a parabola. The in 1691.

142 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 143

Compact formula. Is there a Tic-Tac-Chec. Tic-Tac-Chec is played with four chess compact formula relating e, pieces on a 4 × 4 board and is sold by Dream Green (Weirton, π, i, and φ, the golden ratio? West Virginia). Your goal is to get all four of your pieces in a (See Answer 4.4.) row (like tic-tac-toe). The board starts with no pieces, and players alternate taking turns. During each turn, you place one of your unused pieces on any empty square or move your Tic-tac-toe robot. In 1998, piece that’s already on the board. Pieces move as normal researchers and students at chess pieces do, except that pawns reverse direction once they the University of Toronto cre- reach the edge of the board. Pieces attack as normal chess ated a robot to play three- pieces do. Once a piece is taken, it is returned to its owner for dimensional (4 × 4 × 4) later placement. tic-tac-toe with a human. The robot used an arm powered by three motors to achieve three degrees of freedom (x direction, y direction, z direction) in its movement. An electromagnet was used to pick up the playing pieces, which were steel ball bear- ings. According to students Mark Ebden, Wilfred Lam, and Ryan Lausman, the final version of the tic-tac-toe robot won approximately 80 may mean” (G. H. Hardy, A Remarkable formulas percent of the time when it Mathematician’s Apology, involving 1. What is special went first, playing against a 1941). about these two remarkable second copy of itself. formulas that involve a single digit? What numbers do you Geometry and God. think they represent? (See Mathematicians and immor- “Geometry is unique and Answer 4.5.) tality. “Archimedes will be eternal, and it shines in the remembered when Aeschylus mind of God. The share of it ++++ is forgotten, because lan- which has been granted to 1111... guages die and mathematical man is one of the reasons ideas do not. ‘Immortality’ why he is the image of God” 1 1+ may be a silly word, but prob- (Johannes Kepler, “Conversa- 1+ 1 1+ 1 ably a mathematician has the tion with the Sidereal Mes- 1 1+ best chance of whatever it senger, ” 1610). ...

Geometry, Games, and Beyond 143 c04.qxd 5/16/05 2:44 PM Page 144

2 Goly. What is a golygon? famous “Cattle Problem,” r1 )/t, where n is the number (See Answer 4.6.) which involves tremendously of turns, l is the total length large numbers. of paper, t is the thickness of

a sheet of paper, r1 is the dis- The false theorems of tance from the center of the Archimedes. Archimedes (287 Special number. What is roll to the cardboard tube B.C.–212 B.C.), the ancient within the roll, and r is the Greek geometer, is often special about the number 2 φ √ distance from the center of regarded as the greatest = (1 + 5 )/2? (See Answer 4.7.) the roll to the outer edge of mathematician and scientist the toilet paper. of antiquity and one of the three greatest mathematicians to have walked on Earth— Mathematics of toilet paper. together with Isaac Newton In 1990, Don Thatcher of Mystery pattern. This and Carl Friedrich Gauss. But Leicester Polytechnic pub- mathematical object in figure did you know that he some- lished a paper titled “The 4.11 is my favorite of all times sent his colleagues Length of a Roll of Toilet shapes. What is it? Why is it false theorems in order to Paper” in a scientific book special? (See Answer 4.8.) trap them when they fre- on mathematical modeling quently stole his ideas? (Mathematical Modeling, In his book The Sand Oxford University Press). Reckoner, Archimedes He asks, “Given a roll of estimates that 8 × 1063 paper, find, without unwrap- grains of sand would fill the ping it, the total length of universe. We will discuss paper on the roll.” Archimedes further in He discusses the formulas π 2 chapter 5—specifically, his (n = r2 – r1)/t and l = (r2 –

Science and chess. “Even if the rules of nature are finite, like those of chess, might not science still prove to be an infinitely rich, rewarding game?” (John Horgan, Scientific American 6 [1992]).

Math application. “There is no branch of mathematics, how- ever abstract, which may not someday be applied to the phe- nomena of the real world” (Nikolai Lobachevsky, quoted in N. Rose, Maxims and Minims, 1988). Figure 4.11 Mystery pattern.

144 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 145

Knight-tac-toe. David Cut the crescent to make a cross. Here’s another favorite Howe invented a clever tic- from the nineteenth-century puzzlemaster Sam Loyd. tac-toe-like game in the late Astonishing as it may seem, it is possible to cut the crescent 1990s that is played on a 5 × moon shown here into as few as six pieces that can be fitted 5 board. The goal is to either together to make a perfect Greek cross (figure 4.12). The checkmate the opponent’s shape of the symmetrical cross is shown in miniature on the king or arrange one’s pieces head of the goddess. In forming the cross, it is necessary that to form three in a row in the one piece be turned over. (Notice that Loyd has put a straight center 3 × 3 area, as in the edge on the crescent at the top and the bottom of the figure game of tic-tac-toe. The nor- and that the two arcs of the crescent are arcs of a circle with mal rules of chess apply. the same-sized circumference.) Can you create the cross? For example, the king may (See Answer 4.9.) still not move into check. We believe that black has the advantage, although by modi- fying the starting positions, the game may be made more interesting.

Initial Board Setup for Knight-Tac-Toe

Three kinds of tori. A three- dimensional torus (ordinarily thought of as a doughnut shape) actually comes in three forms. If we let the Figure 4.12 Sam Loyd’s “Cross and Crescent” puzzle. radius from the center of the

Geometry, Games, and Beyond 145 c04.qxd 5/16/05 2:44 PM Page 146

hole to the center of the torus Green cheese moon puzzle. In the 1800s, Sam Loyd asked, “tube” be c and the radius of “If the moon were made of green cheese, into how many the tube be a, we can enumer- pieces could you divide it with five straight cuts of a knife?” ate the three shapes. First, we (figure 4.13). In other words, what is the maximum number of have the common ring torus pieces that you can cut a two-dimensional crescent, using (shaped like a doughnut, in straight lines? (See Answer 4.11.) which c > a), a horn torus (in which the hole in the middle has zero diameter, i.e., c = a), and a spindle torus (where the doughnut walls intersect, and c < a). I would enjoy hearing from those of you who have eaten doughnut tori in all three forms. This introduction to the torus leads to the next question.

Torus versus marmoset. A rich person offers to give you Figure 4.13 Sam Loyd’s green cheese moon puzzle. a free, spacious house in the shape of either a large torus or a large marmoset. Which Music and math. “Music is would you choose? Which do the pleasure the human mind you think most people would experiences from counting choose? (Assume that both without being aware that it is homes have the same ample counting” (Gottfried Leibniz, living space and that the land quoted in Marcus du Sautoy, on which they stand is simi- The Music of the Primes, lar. Also assume that the sur- 2003). face area of the torus, an object defined in the previous , is that for the usual ring Circle crossing. If three Figure 4.14 Circle crossing. torus: S = 4π2ac.) (See circles with the same radii Answer 4.10.) pass through a common point about the other three inter- (see arrow), what interesting section points? (See Answer observation can we make 4.12.)

146 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 147

Cow pi. I believe that π3 Sam Loyd’s fifteen puzzle. Sam Loyd’s “fifteen puzzle” is the appears very rarely in real equivalent of today’s sliding square puzzles that you may have physics or geometry prob- seen in novelty stores. These plastic puzzles have 15 squares lems. (One notable exception (tiles) and one vacant spot in a 4 × 4 frame or box. At startup, was discussed in chapter 2, in the squares sequentially contain the numbers 1 through 13, which π3 appears in antenna followed by 15, then 14. physics.) However, here’s a nice example of π3 in a practical geometry problem. 1234 A circular column is 20 feet 56 78 in diameter. A cow is tied to a point on the column wall. The 9101112 rope is 10π feet long. Assum- ing that the ground is flat, 13 15 14 the cow can cover an area (250/3) π3. Could you deter- Loyd’s Fifteen Puzzle mine how this solution was (Starting Position) derived? John Derbyshire dis- cusses these kinds of prob- The idea is to “slide” the squares up, down, right, and left lems at his “Dog on a Leash” to arrive at the sequence 1 through 15. In other words, the goal Web page, olimu.com/Notes/ is to rearrange the squares from a given starting arrangement DogOnLeash.htm. by sliding squares one at a time into the configuration shown as follows. Loyd offered $1,000 for the correct solution. Can you see a way to solve this? Find the bugs! A devious spy has planted bugging devices in a secret govern- 1234 ment facility composed of a 56 78 4-by-4 array of rooms. Here’s a top view of the facility 9101112 showing the 16 little square rooms. Your mission is to 13 14 15 determine the number of bugs in each room, given the Loyd’s Fifteen Puzzle following information. Two (Ending Position) of the rooms contain three bugs each. Two of the rooms (See Answer 4.13.) contain two bugs each. Four of the rooms contain one bug

Geometry, Games, and Beyond 147 c04.qxd 5/16/05 2:44 PM Page 148

each. The remaining rooms Tablet of Ezekiel. A tall, bearded man shows you three stone are bugless. Can you find the tablets divided into square tiles of beautiful colors. The first number of bugs in each tablet is a 16 × 19 array: room? The numbers at the ends of each row and each column and one diagonal indicate the total number of bugs in that row, that column, and that diagonal.

2

5

1

6 52344

(See Answer 4.14.)

Tablet of Ezekiel Strange dimension. You are in a strange dimension in × × another galaxy, overseeing The other two are 16 24 and 16 18 arrays. The man draws the construction of a new a straight line on the rectangular tablets from one corner to multidenominational town- another. On which of the three tablets does the diagonal line ship with sectors for the three cross the most tiles? How could you solve this without draw- major local religions, whose ing lines on each tablet and counting crossed tiles? (See houses of worship and reli- Answer 4.15.) gions are symbolized by , , and . Each of these religions is at war with the architect is to design the gious denomination. An others. To make it more diffi- township as a 3 × 3 matrix of aerial view of the religious cult for terrorists to bomb or sectors, so that (when viewed center looks like a tic-tac-toe shoot a laser through any one from above) each row and board, in which you are not religious class, and to mini- each column contain only one permitted to have two of the mize religious conflicts, the sector of a particular reli- same religion in any row or

148 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 149

column. Is this arrangement Nursery school geometry. possible? For a second prob- My nursery school has sev- lem, can you arrange the reli- eral unhappy children . I gions so that there are only want to position happy chil- two of the same religion in dren ☺ so that every sad each row and each column? child has exactly one happy The following is an A Dangerous Situation child next to him or her from arrangement prior to your a horizontally or vertically attempt to minimize conflict: (See Answer 4.16.) adjacent cell. To keep the room calm, two happy chil- dren can never be adjacent Ant mathematics. Aliens capture you and seat you in front (not even diagonally). The of a large terrarium containing colonies of red ants (R), black numbers at the ends of each ants (B), fire ants (F), and army ants (A), each species at one row and each column and one corner of a square (figure 4.15). diagonal indicate the number of happy children in that row, that column, or that diagonal. Can you determine where the happy children are? 1 0 1 1 2 1 1 2 0 2 0 1 1

Nursery School Geometry (See Answer 4.18.) Figure 4.15 Ant puzzle.

Your captors ask you to create a tunnel out of plastic tubing Mathematical ballet. that links all four species of ants together. You must use as lit- “Math is a perfection in tle tubing as possible and still allow access from any colony to expression, like ballet or a any other. The aliens provide you with a little glue to help shaolin class martial art” stick pieces of tubes together, if necessary. What is the best (V. Guruprasad, personal solution? (See Answer 4.17.) communication).

Geometry, Games, and Beyond 149 c04.qxd 5/16/05 2:44 PM Page 150

Frodo’s magic squares. Lost in hyperspace. White cadaverous creatures from a par- Your small friend Frodo allel universe abduct you from your bedroom and place you in loves magic squares. He asks a long narrow tube. Assume that you are executing an infinite you to exchange four of the random walk within the tube; that is, you walk forever by numbers in one array with moving randomly one step forward or one step backward in four of the numbers in the the tube (figure 4.16). Assume that the tube is infinitely long other to form two magic and that you don’t get tired. What is the probability that the squares in which each row, random walk will eventually take you back to your starting each column, and each point? (See Answer 4.20.) diagonal have the same sums.

16 3 2 13

5 10 11 8

9 6 20 3

4 10 14 22

15 18 1 14 1

11 24 7 7 12 Figure 4.16 Lost in hyperspace. 17 5 13 21 9

23 6 19 2 15 Heterosquares. Place the consecutive numbers 1 through 9, one number in each cell, so that the rows, the columns, and the 4 12 25 8 16 main diagonals have different sums.

How long does it take you to fulfill Frodo’s ambitious request?

(See Answer 4.19.)

(See Answer 4.21.)

150 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 151

Charged array. The Bouncing off the Continuum. An alien ship is located at devious Doctor Brain has position S in figure 4.17. The aliens wish to travel to a glim- designed a memory array mering violet wall in space called the Continuum, to refuel with 9 cells outlined in bold, their ship by using energy in the Continuum’s plasmoid wall, as follows. A third of the cells and then travel back to a star called Aleph-Naught, denoted have positive charges (+), a by A. They would like their trip to be as short a distance as third have negative charges possible. To what point on the edge of the Continuum should (–), and a third have no they travel? (See Answer 4.23.) charge (0). Your mission is to decipher the secret arrange- ment of charges. The symbols at the ends of each row and each column and one diago- nal indicate the sign of the charge for that row, that col- umn, or that diagonal. Place a “+” symbol, a “–” symbol, or a “0” symbol in the appropri- ate cells. (See Answer 4.22.)

? ? ? – ? ? ? – ? ? ? + + – 0 0

Figure 4.17 Bouncing off the Continuum.

Mathematical battle without conflict. “The tantalizing and compelling pursuit of mathe- out conflict, ‘refuge from the by the present-day kaleido- matical problems offers men- goading urgency of contin- scope of events” (Morris tal absorption, peace of mind gent happenings,’ and the sort Kline, Mathematics in West- amid endless challenges, of beauty changeless moun- ern Culture, 1953). repose in activity, battle with- tains present to senses tried

Geometry, Games, and Beyond 151 c04.qxd 5/16/05 2:44 PM Page 152

Alien heads. The following large square contains 49 little tiles and can be divided into a set of quadrilaterals (squares and rectangles) by drawing thick lines along the tile edges. I have already drawn one such quadrilateral in the upper left that “covers” 9 tiles. Can you draw exactly 10 more quadrilaterals, such that each quadrilateral contains exactly one alien head? Your 10 new quadrilaterals must “cover” the original bounding square completely, leaving no small tiles uncovered. (If useful to you, a single cell may be con- sidered a quadrilateral.) (See Answer 4.24.)

Sticky faces. Cliff, Danielle, and Pete are dropping sticky Relationship. One of the smiley faces on the following chart. Each face they drop gets gray cells should be white, 10, 13, and 17 points. The chart shows how many of each face and one of the white cells were dropped, but you don’t know how many of each face should be gray, in order to fit each person dropped. You do know this: Danielle has 56 a simple relationship. Which points. The number of Pete’s points is a two-digit number with cells should you change? both digits the same. Pete has 3 more points than Cliff. What (See Answer 4.25.) can we say about the number of each type of face each person dropped into the rows? 1 2 28 15

4 3 50 70 10 points ☺☺ ☺ ☺ 13 points ☺☺☺ ☺☺ 5 6 18 30 17 points ☺☺☺ ☺☺ ☺ 8 7 27 48 (See Answer 4.26.)

152 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 153

Bioterrorist puzzle. The If Romeo brings Juliet too Next to you are two heroin- year is 2010, and a bioterror- many vaccines, her medical laced ropes suspended from ist’s bacterium endangers the office will not be able to pay the 100-foot ceiling. The two planet. It is in this future for them all. If he brings her ropes are 2 feet apart. You world that we have some too few, she will not be able have scissors in your pocket. detective work to do. Romeo to inoculate all of the people If you can hand most of the is located at one number in in her office. Romeo now has rope to your captors, they the following 5 × 5 square exactly 93 vaccines to give will set you free. Otherwise, array, which represents an Juliet. Romeo starts on a they will lock you in a coffin aerial view of plots of land. square that is located imme- filled with monosodium Juliet is located at another diately to the left of Juliet’s glutamate and leave you square. Romeo travels up, square. On what cells do to die. down, right, or left (not diag- Romeo and Juliet initially sit? You think you can climb to onally) to reach Juliet. Note that Juliet is stationary the top of the ceiling and cut The numbers in the as she waits for the 93 vac- one of the ropes, but you squares represent numbers of cines. (See Answer 4.27.) must climb down a rope until vaccine patches. Romeo you are close to the ground starts with the number of before cutting it or you will vaccines that is indicated by Rope capture. You are die slamming into the hard the number in his starting being held captive in Grand floor. You think that there cell and adds all the vaccines Central Station, New York, by must be a better plan. What is in a cell to his sack as he five bearded drug dealers. your best strategy to get as traverses the array until he lands on Juliet’s cell and finally adds the number of Magic square. To create this test, I started with a magic vaccines in her cell. Once he square that has the same sums for the rows, the columns, and adds the vaccines to his sack, two diagonals. In the following square, I’ve swapped a few the square no longer contains tiles. Can you generate the original square, given the addi- any vaccines. tional condition that tiles with or shapes must be adja- cent horizontally and point to each other? For example, under this rule, 137 might go side by side, but 136 could 1 2 3 4 5 not. (See Answer 4.28.) 6 7 8 9 10 17 6 7 23 19 11 12 13 14 15 13 10 15 11 12 16 2 8 14 20 16 17 18 19 20 21 24 9 0 3 21 22 23 24 25 22 18 4 5 1

Geometry, Games, and Beyond 153 c04.qxd 5/16/05 2:44 PM Page 154

much rope as possible? Circle madness. Draw Circle 1. Arrange six circles around Assume that you have enough it of any size, labeled 2 through 7 in the diagram. As you cre- tools so that you can secure ate your visual masterpiece, Circle 3 must touch 2, Circle 4 yourself to the rope while must touch 3, Circle 5 must touch 4, Circle 6 must touch 5, cutting pieces off. (See and Circle 7 must touch 6. Circles 2 through 7 must all touch Answer 4.29.) the first circle. In this example, I happened to make Circle 7 enclose most of the others, but you can experiment with all kinds of arrangements. What can we say is interesting about Talisman square. Fill in the the relationship between the circles’ points of intersection with squares with consecutive Circle 1? (See Answer 4.31.) numbers 1 through 16 (one number to a cell) so that the difference between any one number and its neighbor is greater than some given con- stant. A neighboring number is defined as being in a cell that’s horizontally, vertically, or diagonally adjacent to the current cell.

(See Answer 4.30.) Figure 4.18 Circle madness.

length and angles of equal meeting at every vertex. The Platonic solids. A Platonic degrees; two examples of best known example of a Pla- solid is a multifaceted 3-D regular polygons are the tonic solid is the cube, whose object (or polyhedron) whose square and the equilateral faces are six identical squares. faces are all identical regular triangle. How many Platonic solids do polygons. A “regular poly- A Platonic solid also has you think we will ever dis- gon” has sides of equal the same number of faces cover? (See Answer 4.32.)

154 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 155

Mystery pattern. What does figure 4.19 represent? (See Answer 4.33.)

Figure 4.19 Mystery pattern by Patrick Grim and Paul St. Denis.

Fractals and brains. “I won- images that illuminates our late the pleasure I infer we der whether fractal images perception of art? Could it be all feel” (Professor Peter W. are not touching the very that a fractal image is of such Atkins, Lincoln College, structure of our brains. Is extraordinary richness, that it Oxford University, “Art as there a clue in the infinitely is bound to resonate with our Science,” The Daily Tele- regressing character of such neuronal circuits and stimu- graph, 1990).

Geometry, Games, and Beyond 155 c04.qxd 5/16/05 2:44 PM Page 156

Omega sphere. Dr. Brain sphere, I will unleash a All at once, creatures from places you in front of a rap- plague on the world that will each star system launch a idly spinning sphere called an kill 10,000 people.” What is devastating nuclear arsenal at omega sphere. The axis of your best strategy for rapid their nearest neighbor, and rotation rapidly changes as escape from Dr. Brain’s puz- they wait to see what hap- the sphere rotates. zle palace? (See Answer pens. None of the star sys- Dr. Brain approaches you 4.34.) tems has a defense against with a dart. “Throw the dart such awesome fury. Will all at the sphere three times. If seven races be annihilated, or your three points of impact Twinkle, twinkle, little stars. will at least one star system are all on the same half of the You look up at a cluster of escape injury? (See Answer sphere (hemisphere), I will seven stars in the night sky. 4.36.) reward you with $25,000 and Your astronomer friend tells let you leave immediately. If you that he believes that crea- your three points of impact tures from the seven stars are Mystery triangles. A giant are not all on the same hemi- at war with one another. No places an array of ice crystals sphere, I will remove a cubic two distances between any on the cold, snowy ground inch of your brain. If you two pairs of stars are the (figure 4.20). He then hands choose not to throw at the same. you a stick. “What is the maximum number of trian- gles without right angles that Cutting the plane. Create two areas, both of exactly the you can draw in the grid? same size and shape, so that both areas contain equal numbers None of the triangles can of each symbol. intersect or share the same vertices. Triangles may be nested inside one another. Each triangle must have its vertices on the ice crystals.” (See Answer 4.37.)

(See Answer 4.35.) Figure 4.20 Mystery triangles.

156 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 157

Space station jam. You are living in the new space station gargantuan cube having an circling Earth when you find a painted metallic object floating edge that is equal to the through space (figure 4.21). Upon closer inspection, you see north-south length of Greece. that the object is a collection of plates. Most of them are col- That’s a lot of dots! ored yellow (Y), green (G), red (R), or blue (B), but one of the For conceptual purposes, plates is white (W). The collection was constructed according you can think of the dots to a certain logic and will function as a teleportation device if as having unit spacing, being you can solve a small mystery. precisely placed at 1.00000 If you select the correct color that should replace the white . . . , 2.00000 . . . , 3.00000 plate, you and your crew will be transported to a wonderful . . . , and so on. When universe where you will be rewarded with eternal bliss and Gebeleizis uses the term will be able to solve humanity’s most pressing problems. Can infinitesimal, he means to you work out which color should replace the missing (i.e., imply that the dots are not white) color? (See Answer 4.38.) bulbous objects that cover a range of locations in space. They really are located exactly at 1.00000 . . . , 2.00000 . . . , and so forth, and do not have a thickness that would make them extend to, for example, 1.010000 . . . , 2.010000 . . . , and so on. Now, pick a dot, any dot, in this densely packed cube of dots. After you have made your selection, draw a straight line through the dot and extend it from that dot to the edge of the cube in both directions. Figure 4.21 Space station jam. Gebeleizis asks, “What is the probability that your line will intersect another dot in the fine grid of dots within Grid of Gebeleizis. larly vexing problem. He asks the cube the size of Greece?” Gebeleizis, the ancient you to consider a grid of (See Answer 4.39.) Dacian god of lightning, infinitesimal dots spaced comes to you with a particu- one millimeter apart in a

Geometry, Games, and Beyond 157 c04.qxd 5/16/05 2:44 PM Page 158

In an ancient tomb. You are exploring an meet at the north corner. Is it possible to ancient Egyptian tomb in search of a group of connect mummies bearing the same sym- six mummies that supposedly have rested bols using lines that you draw on the floor? there for several thousand years. After a few The lines may not cross or touch the tomb minutes, you come upon a large triangular walls. (For example, you must try to draw a room that contains the six mummies lying on line from the northmost mummy with the the cold, dusty floor. The room is covered hooklike symbol to the other mummy with with hieroglyphic symbols (figure 4.22). the hooklike symbol. You must also draw a Because you are a world-renowned expert in line from the mummy with the eye symbol hieroglyphics, you quickly decipher their to the other mummy with the eye symbol, meaning: etc.) Your lines may be curvy, but they can- not touch or cross each other, nor can they Three mummies are marked with three dif- go “through” the mummies. If you can ferent symbols, and each of these three solve this problem within five minutes, you mummies is touching the south wall of the will be granted great powers, wealth, and a tomb. Three other mummies, marked with long life. the same three symbols, are positioned so that one is touching the tomb walls that (See Answer 4.40.)

Figure 4.22 In an ancient tomb.

158 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 159

Poor Pythagoras. Zeus Alien colonies. On planet Zarf in the Zeta Reticuli star sys- steps out of the chariot and tem live alien bacterial colonies that come in many colors. walks toward Pythagoras. Each bacterium is circular and touches at least one other bac- Spirals of scarlet, thin as terium to exchange nutrients. Figure 4.24 shows one example, spider webs, float from in which different colors are represented by the numbers –3, Zeus’s hypnotic eyes. –2, –1, 0, 1, and 2. Pythagoras shakes his Scientists on Earth have obtained a few specimens and are sword. “Don’t come any trying to determine how each bacterium gets its color. Can closer. Last time you visited you determine the rules by which the bacterial colonies get me, you turned my wife into their colors? (See Answer 4.42.) stone.” “Listen, Pythagoras. I have a test for you. If you supply the proper answer, I will return your wife to normal.” Zeus places a marble table before Pythagoras. On the table are two circular disks that resemble Frisbees (Figure 4.23). Zeus motions to the table. “We gods call them Omega disks, and we use them to test all intelligent mortals with whom we come in contact. As you see, one disk is red, the other gold. Both disks are the same size. The red disk is Figure 4.24 Alien colonies. stuck to the table. The gold disk rotates around the red disk, touching it without slipping. When the gold disk What is your answer? (a) 1 has completed a turn around revolution, (b) 1.5 revolu- the red one, how many turns tions, (c) 2 revolutions, (d) has it made around its own 2.5 revolutions, (e) 3 revolu- axis?” tions, or (f) not on the list. Pythagoras does not What do you think is the answer, but he begins to most common answer given charge Zeus with his sword. to this problem? (See Answer Figure 4.23 Poor Pythagoras. Can you help Pythagoras? 4.41.)

Geometry, Games, and Beyond 159 c04.qxd 5/16/05 2:44 PM Page 160

Ant planet. Lisa is all simply by poking its head is inside or outside the alone in her bedroom, playing over the wires and looking Jordan prison? How can with bugs. Her long blond in one direction, whether or you easily tell if the ant in hair trails to her knees. She not it is on the inside or the the drawing can escape with- laughs. outside of the maze. What’s out actually trying to trace a Lisa enjoys making maze- the quickest way that a crea- path to the outside? (See like structures with leftover ture can determine whether it Answer 4.43.) wires from her electrical experiment. If an object touches the wire, it rings a buzzer. Today, Lisa is experimenting with ants. She places ants in these struc- tures, and, depending upon where the insect is located, it is possible or impossible to escape without ringing the buzzer. The ant prison mazes are of a peculiar type. Topologi- cally speaking, they are Jordan curves, such as the ones shown here, which are merely circles that have been twisted out of shape (figure 4.25). Recall that a circle divides any flat surface into two areas—inside and out- side. Like a circle, Jordan curves have an inside and an outside, and to get from one to the other, at least one line (wire) must be crossed. Let’s return to the ant story, in which Lisa is fanta- sizing about intelligent ants. One day, a “prisoner” ant named Mr. Nadroj is able to accurately determine, Figure 4.25 Ant planet.

160 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 161

Contact from Aldebaran. At Aesculapian mazes. Aesculapius, the Roman god of medi- 3:00 A.M. on August 15, the cine and health, devised the following problem for Romans so Norwegian fashion model that they could improve both their minds and their bodies. The Britney Bjørlykke was walk- object is to travel from start to finish by taking three steps at a ing near her home in Oslo. time and then turning right or left. Only those locations con- The air blew the spiral curls taining a vitamin pill (denoted by a dot) are valid points to of Britney’s blond hair out of land on and make turns (figure 4.26). If you desire, you may place just as she saw a sil- eat the pills along the way. very, disk-shaped craft in the sky. The UFO swooped down and a figure emerged. “We are from Aldebaran, a star 60 light-years from Earth,” the alien said. “We wish to assess your intelligence.” The alien gave Britney instructions and then placed her in a transparent spiral tube one mile in length. The diameter was so small that she had to crawl through the tube. She started at the center of the spiral at 5 A.M. and crawled until she reached the outlet of the spiral at 5 P.M. She traveled at varying speeds, and every now and then paused, rested, and ate from meager food rations strapped to her belt. When she arrived at the Figure 4.26 Aesculapian mazes. outlet of the spiral, she rested and then began her journey For example, when starting the maze, you land on the vita- back into the spiral the next min marked “1,” and then must turn to the vitamin marked day at 5 A.M., reaching the either “3” or “2.” You are not allowed to retrace or go back center of the spiral at 5 P.M. along your path during any part of your journey. How many “You have completed your vitamins can you collect along your way? (See Answer 4.44.) mission,” the alien said.

Geometry, Games, and Beyond 161 c04.qxd 5/16/05 2:44 PM Page 162

“Now answer a question. Detonation! It is midnight, a cold Saturday night in New What are the chances that York City. A phone call comes to the precinct station inform- there is a location along the ing the police that a mad bomber has planted an explosive spiral that you passed at device in the center of Grand Central Station. exactly the same time both The police rush to the scene and discover an intricate deto- days?” (See Answer 4.45.) nator that they must defuse. The detonator consists of a 6-by-6 wire mesh with white and black spheres containing two differ- ent explosive chemicals (figure 4.27). In order to defuse the Equation swirl. “Perhaps an bomb, the police must ever-so-carefully separate the white and angel of the Lord surveyed an the black balls by cutting through the wires and making two endless sea of chaos, then identically shaped cutouts—one containing the white spheres, troubled it gently with his the other containing the black spheres. finger. In this tiny and tempo- Your job is more difficult, because you know that one rary swirl of equations, our of the spheres has slipped and is in the wrong position. You cosmos took shape” (Martin must move it back to an adjacent grid position before cutting. Gardner, “Order and Sur- Tension mounts as the police bring out wire cutters. One prise,” 1950). false cut, and the bomb goes off! It seems impossible! Remember: the two cutouts must be identical in size and shape. Can you help? (See Answer 4.46.) Toilet paper and the infinite. My favorite toilet paper geometries are not the simple, realistic Archimedean spiral kinds, but rather the squashed Archimedean variety. These exotic nonlinear forms of toi- let paper rolls are pleasing to look at and can hold an amaz- ing length of paper. In particular, imagine a roll of toilet paper defined by the spiral r = a√θ, where a is 1 inch. Since the compression is nonlinear, your theoretical toilet paper can grow wildly in length while being con- strained to a small roll. For example, it’s been estimated that a mile of “imaginary” Figure 4.27 Detonation!

162 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 163

toilet paper of this form could smaller, always filling in the The figure shows the little- fit in a a√θ hypertoilet paper cracks and the spaces known Ford circles, named roll less than 50 inches in between larger ones. after L. R. Ford, who pub- radius. If you were to magnify the lished on this topic in 1938. foam, tiny bubbles would Ford circles provide an infi- always be interspersed with nite treasure chest to explore, Fractal Ford froth. Imagine larger ones, but the overall and the circles are among the a frothy milkshake with an structures would look the most mind-numbing mathe- infinite number of bubbles, same at different magnifica- matical constructs to contem- schematically illustrated in tions. In other words, the froth plate. In fact, it turns out that figure 4.28. As you stare into would be called a fractal they describe the very fabric the cosmological milkshake, because it displays “self- of our rational number sys- you notice bubbles of all similar” structures at different tem in an elegant way. sizes, touching one another size scales. Do you have any As a review, recall that but not interpenetrating. In guesses as to how this mathe- rational numbers are numbers this hypothetical foam, the matical structure, first dis- that can be expressed as frac- 1 1 bubbles become smaller and cussed in 1938, was created? tions. For example, ⁄2, ⁄3,

Figure 4.28 Fractal Ford froth.

Geometry, Games, and Beyond 163 c04.qxd 5/16/05 2:44 PM Page 164

2 and ⁄3 are all rational num- none will overlap, and each equal to 1 inch. Next, circum- bers. As you might expect, will be tangential to the scribe (i.e., surround) the cir- there is an infinite number of x-axis. We can get a visual cle with an equilateral such numbers. confirmation of this by mag- triangle. Next, circumscribe What follows is a mathe- nifying the froth. For much the triangle with another cir- matical recipe for creating a more information on the Ford cle. Then circumscribe this Ford froth, which character- froth, see my book Keys to second circle with a square. izes the location of rational Infinity. Continue with a third circle, numbers in our number sys- circumscribing the square. tem. You can use a compass Circumscribe the circle with and some graph paper to get Infinitely exploding circles. a regular pentagon. Continue started. No complicated Draw a circle with a radius this procedure indefinitely, mathematics is required for your journey. Let us begin by choosing any two integers, h and k. Gear turns. Figure 4.29 shows a collection of intermeshed Draw a circle with a radius gears. The numbers of teeth on certain gears are indicated by of 1/(2k)2 and centered at the numbers within those circles. Does the gear marked “4” at (h/k, 1/(2k)2). For example, if the upper left spin faster, slower, or at the same speed as the you select h = 1 and k = 2, gear marked “6” at the bottom right? (See Answer 4.47.) you draw a circle centered at (0.5, 0.125) and with a radius of 0.125. Note that the larger the denominator of the frac- tion h/k, the smaller the radius of its Ford circle. Choose another two values for h and k, and draw another circle. Continue placing cir- cles as many times as you like. As your picture becomes more dense, you’ll notice something quite peculiar. None of your circles will intersect, although some will be tangent to one another (i.e., just kissing one another). Even if we place infinitely many Ford circles, Figure 4.29 Gear turns.

164 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 165

each time increasing the piece must be identical to the Robotic worm. A robotic number of sides of the regu- others. Can this be done? (See worm named T’Pol creeps lar polygon by one. Every Answer 4.49.) through cells (right, left, up, other shape used is a circle and down), starting with A that grows continually as it and always repeating the pat- encloses the assembly of its tern ABCD, ABCD, ABCD, predecessors (figure 4.30). ABCD as it crawls. The worm starts its journey with an A on a cell in the grid. Here are hints that show the worm’s Figure 4.31 Hexagonal challenge. values in two cells. In the B

Magic circles. In figure 4.32, fill in the missing numbers so that numbers add up to 205 for each circle. The consecu- tive numbers 1 through 40 are used in the figure. (See Answer 4.50.)

Figure 4.30 Infinitely exploding circles.

If you were to repeat this process, always adding larger circles at the rate of a circle a minute, how long would it take for the largest circle to have a radius equal to the radius of our universe, 1026 feet? (See Answer 4.48.)

Hexagonal challenge. Dr. Brain walks with you in a for- est and hands you a hexagonal piece of wood and a chisel. He wants you to cut a regular hexagon into eight congruent quadrilaterals (figure 4.31). In other words, each four-sided Figure 4.32 Magic circles.

Geometry, Games, and Beyond 165 c04.qxd 5/16/05 2:44 PM Page 166

and the C cells shown, T’Pol region of space. Is ψ(x) Continuity. I ask you to is moving upward. Can you continuous? (See Answer draw a line on my hand, and fill in the rest of the letters? 4.52.) you draw a flowing curve How did you go about until I tell you to stop. Your solving this puzzle? (See curve is continuous because Answer 4.51.) you never lifted the pen off my hand as you drew the curve. Now, I want you to imagine a crazier curve. Can B a curve that has infinitely many turns or corners in a finite space still be continu- C ous, or must it “break up” or Figure 4.33 y = xsin(1/x) become discontinuous due to

Magic sphere. Figure 4.34 is a sphere containing the con- y = xsin(1/x). At night, I secutive numbers 1 through 26, arranged in nine circles. Each often dream of the function circle has eight numbers, and their magic sum is 108. Can you  1  fill in the missing numbers? (See Answer 4.53.) yx= sin   x 

The graph of this function for |x| < 1 shows smaller, yet more rapid, oscillations the nearer it approaches zero. The limit of this function as x approaches zero is zero (figure 4.33). We can define a very similar function ψ(x) as follows:

 1  ψ ()xx= sin  when x ≠ 0  x  otherwise, ψ ()x = 0 .

Like a Koch curve, this curve has infinitely many bumps, decreasing in size, in a finite Figure 4.34 Magic sphere.

166 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 167

the infinity of turns? (See Simple insertion often usually say that “the limit Answer 4.54.) works if we don’t produce a does not exist.” number that has 0 in a Let us try a more compli- denominator or a negative cated example. Can you find Limits. When we want to number inside a square root. the limit of take the “limit” of a function, But sometimes limits don’t x − 2 this means we want to find exist. For example, consider y lim x→2 x 2 − 4 out the function’s behavior as = 1/x2. As x approaches 0, y we approach a particular approaches infinity, and we (See Answer 4.55.) value; for example, we might want to know the value of the function f(x) as x approaches Space station scordatura. Four stars are located at the cor- a number a. ners of a planar quadrilateral (figure 4.35). Musical creatures Sometimes we can get a from each star want to build a space station where they can good idea about the limit of a practice music. For convenience, the sum of the distances function by examining its from the station to their stars must be as small as possible. graph. We can also compute Where should the creatures build the space station? (Assume limits without graphing a that the stars are static in space.) (See Answer 4.56.) function. Consider the simple parabola, y = x2. As x approaches 0 from either the positive or the negative direc- tion, the values of the func- tion f(x) approach the value of 0. For something simple like this, the limit of the func- tion as x approaches some number a is just a2. You just insert a into the function for x. We can write this as follows: lim x 2 = 0 x→0 For lim(x 2 −=3 ) ? x→0 we find a solution of –3. Simply insert the value for 0 for x, and you find that the limit is –3. Figure 4.35 Space station scordatura.

Geometry, Games, and Beyond 167 c04.qxd 5/16/05 2:44 PM Page 168

The Procyon maneuver. A funnel, he will slip down into The aliens turn to him and plantation owner is on a hunt- it. At the bottom of the funnel say, “If you are able to get to ing trip south of Caracas, is a sleep-inducing liquid that the central tower and touch it, Venezuela, when at 2:30 A.M. will instantly put him to sleep we will give Earth the cure he is paralyzed by a flash of for 8 hours if he touches it. for cancer. We will also give light. He is lifted to a cylin- As shown in figure 4.36, Earthlings the ability to see in drical craft by aliens in dusty there are two ankh-shaped the ultraviolet range, thereby silver suits and masks. In towers. One stands upon a opening up a vast new arena order to assess his intellectual cylindrical platform in the of sensory experience. If you prowess, they transport him center of the funnel. The plat- do not get to the tower, we to an Earthlike planet circling form’s top surface is at will leave you on this planet Procyon, a star that is 11 ground level. The distance after we have implanted a light-years from Earth. from the platform’s top sur- tracking device in your nose. In minutes, the plantation face to the liquid is 500 feet. Please note that with each owner is facing a large in- The other ankh tower is on passing hour, we will ground funnel that has a cir- land, at the edge of the fun- decrease the rope length by a cular opening 1,000 feet in nel, as illustrated. foot.” diameter (figure 4.36). The The aliens hand the planta- How can the plantation walls of the funnel are quite tion owner two objects: a owner reach the central ankh slippery, and if the plantation rope 1,016.28 feet in length tower and touch it? (See owner attempts to enter the and the skull of a chicken. Answer 4.57.)

1,000 FEET

Figure 4.36 The Procyon maneuver.

168 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 169

The meanness of mathe- spend immoderate amounts Spirals. The Fermat or maticians. “I once asked Gre- of time declaring each other’s parabolic spiral in figure gory Chudnovsky if a certain works trivial. ‘It is true,’ he 4.38 is pretty to ponder. impression I had of mathe- admitted” (Richard Preston, Pierre de Fermat studied this maticians was true, that they The New Yorker, 1992). form in 1636, and it can be created using the polar equa- tion r2 = a2θ. Fermat was Leaning tower of books. One day while walking through the only twenty-five when he New York City Public Library, you notice a stack of dusty studied this curve. Today, books leaning over the edge of a table (figure 4.37). It seems researchers sometimes use as if it is about to fall. A question comes immediately to mind: this form to model the Would it be possible to stagger a stack of many books so that arrangement of seedheads the top book would be far out into the room—say 10 or 20 in flowers. feet? Or would such a stack fall under its own weight? You ask several friends, and each gives a different answer. What is your answer?

Figure 4.38 Fermat or parabolic spiral.

Good notation. “A good notation has a subtlety and suggestiveness which, at times, make it almost seem like a live teacher” (Bertrand Russell [1872–1970], in J. R. Newman’s The World of Mathematics, 1956). Figure 4.37 Leaning tower of books.

(See Answer 4.58.)

Geometry, Games, and Beyond 169 c04.qxd 5/16/05 2:44 PM Page 170

Pappus’s Arbelos. I enjoy which has its center on the Loxodrome. A loxodromic

contemplating the mysteries of line, can be denoted C0 , the sequence of tangent spheres Pappus’s Arbelos (figure 4.39). next smaller circle is denoted in n-space is an infinite

To create the figure, draw the C1, and so on. Interestingly, sequence of spheres having two largest circles in figure the vertical distances from the property that every n + 2 4.39a that have a horizontal all the small circles’ centers consecutive members are line through their centers. in the crescent to the line mutually tangent (figure

These two circles, pointed to segment equal 2nrn , where 4.40). H. S. M. Coxeter has by arrows, create a crescent- r is the radius of each of shown that points of contact

shaped region between them. the circles, Cn. Pappus’s of consecutive pairs of Next, place another circle with Arbelos seems to have been spheres lie on a curve known its center on the line and tan- known to the early Greek as a loxodrome. If β is a con- gent to the two original cir- mathematicians. stant angle, while θ and φ are cles. Continue to fill the Figure 4.39b shows a Pap- the longitude and the latitude crescent area with tangent cir- pus chain with more circles of a point on the loxodrome, cles, as shown. This chain of filling the arbelos. Countless the loxodrome’s equation ever-diminishing circles is elegant and mind-boggling may be written x = sin φ called a Pappus chain, and the mathematical relations cos θ, y = sin φ sin θ, z = arbelos is the unfilled region describe the relationships cos φ, where θ = –tan β log outside the circles. between all the circles in this tan (φ/2). The first small circle, infinite structure. Doing a little historical

Figure 4.39a and b Pappus’s Arbelos.

170 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 171

research, you’ll find out that curve on the surface of a bearing. It is the spherical the loxodrome curve was sphere that makes a constant analog of the logarithmic spi- actually first conceived by angle with the parallels of lat- ral in the plane, which makes Pedro Nunes around 1550. itude—for example, a course a constant angle with concen- Note that a loxodrome is a with a constant compass tric circles.

Mystery swirly curve. Figure 4.41 is a beautiful and famous smoky-looking curve. Can you take a guess at its name or what class of shapes it represents? (See Answer 4.59.)

Figure 4.40 Loxodromic sequence of tangent spheres.

On the supernatural exis- tence of Borromean rings. Bor- romean rings are three mutually interlocked rings named after the Italian Renaissance family whose members used these on their coat of arms. Ballantine Beer also uses this configuration in its logo (figure 4.42). Notice that Borromean rings have no two rings that are linked, so if we cut any one of the rings, all three rings fall apart. Some histori- ans speculate that the rings represent the three families of Visconti, Sforza, and Figure 4.41 Mystery swirly curve. Borromeo, which formed a

Geometry, Games, and Beyond 171 c04.qxd 5/16/05 2:44 PM Page 172

tenuous union through inter- beauty—a molecular counter- nanometers across and con- marriages. part of interlocked Bor- tained an inner chamber that Structures such as these romean rings. Each molecule was a quarter of a cubic fall within a mathematical of the molecular Borromean nanometer in volume and was discipline known as “knot ring compound was 2.5 lined by 12 oxygen atoms. theory,” which is useful in polymer and theoretical Kissing circles. Figure 4.43 shows adjacent circles that are physics. Mathematicians now packed so that they osculate (“kiss” or just touch). I find that know that we cannot actually circle packing can provide a deep reservoir for striking construct a true set of Bor- images. How do you think I created this figure? Do you have romean rings with flat circles, even the slightest idea how to go about creating it yourself? and, in fact, you can see this The “bubbles” can be explored with a magnifying glass to for yourself if you try to cre- yield details at increasingly tiny-sized scales. In fact, the ate the interlocked rings out arrow points to an inset figure that is a magnification of a tiny of wire, which requires some region of the froth in the larger figure. (See Answer 4.60.) deformation or kinks in the wires. The theorem stating that Borromean rings are impossible to construct with flat circles is proved in Bernt Lindström and Hans-Olov Zetterström, “Borromean Circles Are Impossible,” The American Mathematical Monthly 98, no. 4 (1991): 340–41. In 2004, UCLA chemists created a breathtaking

Figure 4.42 Borromean rings. Figure 4.43 Osculatory circles.

172 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 173

Researchers speculate that cated one. Attractive it is not. Heron’s problem. Heron molecular Borromean rings It would appear that what (c. A.D. 500) asked whether could be used as highly Arnold Schoenberg has done we can find two rectangles, organized nanoclusters in a to music, I. J. Schoenberg with integral sides, such that materials setting, such as has done to Peano-curves” the area of the first is three spintronics, or in a biological (Hans Sagan, The American times the area of the second, context, such as medical Mathematical Monthly, and the perimeter of the imaging. 1986). second is three times the

Withers’s attractor. William Douglas Withers of the U.S. Thébault construction. In Naval Academy has described an interesting attractor for A(z) 1937, the French mathemati- = z2 – 2z*, where z is a complex number and z* is the complex cian Victor Thébault conjugate. (See the answer to the earlier entry in this chapter (1882–1960) discovered that titled “Mystery swirly curve” for more information on attrac- if you construct squares on tors.) The complex conjugate of a complex number is created the sides of any parallelo- by changing the sign of the imaginary part. Thus, the conju- gram, their centers form gate of the complex number z = x + iy is z* = x – iy. Starting another square when con- with any initial value for z, you will finally be positioned nected (figure 4.44). somewhere on a triangular-shaped object with vertices at (3, –3/2 ± 3√3 /2) as you repeatedly apply Withers’s formula in a mathematical feedback loop (figure 4.45). To implement this feedback loop or recursion, your new z value becomes input to the equation, and the mapping is repeated. For more informa- tion on this curve, see W. D. Withers, “Folding Polynomials and Their Dynamics,” The American Mathematical Monthly 95, no. 5 (1987): 399–407.

Figure 4.44 Thébault construction.

Schoenberg curve. “There is a discernible pattern [to the Schoenberg space-filling curve], albeit a very compli- Figure 4.45 Withers’s attractor.

Geometry, Games, and Beyond 173 c04.qxd 5/16/05 2:44 PM Page 174

perimeter of the first. Can The game of elegant ellipses. Many puzzles have been based you solve this? (See Answer on the problem of drawing straight lines in such a way that 4.61.) objects are segregated into separate regions on a plane. The game of elegant ellipses can be played with coins or ellipses that are thrown on a large piece of paper. In the example in Scherk’s surface. Scherk’s figure 4.46, can you draw four straight lines that will divide surface, discovered by Hein- the plane in such a way as to place each ellipse in a separate rich Ferdinand Scherk in region? (See Answer 4.62.) 1835, has the following form:

 cos y  z = ln   cos x 

where –2π < x < 2π and –2π < y < 2π. Can you have your computer draw this strange minimal surface? Stewart Dickson has actually created a 3-D physical model of this saddlelike surface, using a process called stereolithogra- phy, which employs a laser- based tool and a photosensitive liquid resin that hardens as it forms the 3-D object. Interestingly, Scherk’s sur- face is a plausible model for the structure of interacting polymers that prefer to have as little contact as possible. Carlo H. Sequin has sculpted these surfaces out of wood, and you can use Google to search for various renditions. For further information, see Stewart Dickson, “Minimal Surfaces,” The Mathematica Journal 1, no. 1 (1990): 38. Figure 4.46 The game of elegant ellipses.

174 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 175

Fractal caves. “Out of the cathedrals. Some were large, laws, utterly irrespective of vast main aisle there opened but one or two—and this is a size—were tiny. One little here and there smaller caves, wonderful instance of how nook, for instance, was no exactly, Sir Henry said, as Nature carries out her handi- larger than an unusually big chapels open out of great work by the same unvarying doll’s house, and yet it might

Schoenberg curves. The Schoenberg space- This curve continues to infinity in both filling curve is one of the most intricate and the +t and –t directions. Also, p(–t) = p(t), exotic of all space-filling curves discussed in p(t + 2) = p(t). To create the Schoenberg the world’s scientific literature. Space-filling monstrosity for different orders, connect each curves are interesting patterns that grow in vertex to its predecessor by a straight line, length without limit while they fill the region using in which they lie. The two most famous are ∞ the Hilbert and the Sierpinski curves. A more xft==()∑ p (3222kk− t )/ recent discovery is a self-similar curve, devel- k =1 oped by Mandelbrot, which fits exactly inside ∞ a Koch snowflake (see the April 1978 cover of ygt==()∑ p (3221kk− t )/ Scientific American). k =1 The Schoenberg curve was invented in 1938 by I. J. Schoenberg and further devel- The result is a complicated, chaotic assembly oped in 1986 by Hans Sagan. It is certainly a of zigzags. Schoenberg’s curve has vertices m challenge for mathematicians, programmers, for tn,m = n/3 , for m = 1, 2, 3, . . . , n = 0, 1, and computer graphics specialists. Hans 2, . . , and 3m, where m is the “order” of the Sagan speaks of the curve’s complexity: “To curve. My book Computers and the Imagina- draw a 5th order Schoenberg curve, with no tion shows a curve of order 4, and I believe simple pattern to serve as guide, would tax that the highest-order Schoenberg curve ever the manipulative skills of a seventeenth- to be plotted in a scientific journal is 7. century mathematician, and the mere thought You can read more about his curve in I. J. of going beyond that boggles the mind.” Here Schoenberg, “The Peano-Curve of Lebesgue,” I give the recipe for creating these curves and Bulletin of the American Mathematics you can read more about the gory details in Society 44 (1938): 519. Additional informa- Sagan’s paper. First, you must define a func- tion can be found in H. Sagan, “Approximat- tion p(t), which looks something like a ing Polygons for Lebesgue’s and Schoenberg’s chunky sine wave: Space-Filling Curves,” The American Mathe- p(t) = 0 for 0 ≤ t < 1/3 matical Monthly 93, no. 5 (May 1986): 361. For a general description of space-filling ≤ p(t) = 3t – 1 for 1/3 t < 2/3 curves, see F. Hill, Computer Graphics p(t) = 1 for 2/3 ≤ t < 1 (New York: Macmillan, 1990).

Geometry, Games, and Beyond 175 c04.qxd 5/16/05 2:44 PM Page 176

have been the model of the Dudeney began his career at are 12 circles arranged to whole place, for the water age nine, when he started form 6 identical squares dropped, the tiny icicles hung, composing puzzles that he when perpendicular lines are and the spar columns were published in a local paper. drawn between the circles. forming in just the same Later, he became angry when Remove just 3 circles to leave way” (Sir Henry Rider Hag- the American puzzle guru just 3 identical squares. You gard, King Solomon’s Mines, Sam Loyd published some of might experiment with coins. 1885). Dudeney’s puzzles without giving sufficient credit. Some     of Dudeney’s puzzles con-     Dudeney’s circles. Here’s a tinue to be of interest to mod- classic puzzle from British ern mathematicians.     puzzlemaster Henry Ernest Here’s one favorite Dudeney (1857–1930). Dudeney puzzle. Following (See Answer 4.63.)

Eschergrams. I created figure 4.47 by randomly posi- tioning a small square tile that con- tained 8 straight lines. In particular, the tile was placed in random orientations on a checkerboard to create this composite pattern. Can you draw the original tile? (See Answer 4.64.)

Figure 4.47 Eschergram.

176 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 177

Zenograms: Squashed increase n?) Spheres deform happens to the shape worlds. You can compress all in interesting ways as they of a sphere centered at the of mathematical space from grow larger or are “pushed” origin as its radius grows –∞ to +∞ into a viewable toward the side of the box. to infinity? I discuss this cube that extends from –1 to My book Computers and the novel method in my books 1. One way to do this makes Imagination shows a Computers and the use of the hyperbolic tangent Zenogram for a sphere as it Imagination and Mazes for function: is forced to a side wall of the Mind. the Zenogram, at positive − eexx− infinity. What do you think tanh x = eexx+ −

I call the resulting representa- Dudeney’s house. A charitable individual built a house in tion a Zenogram, after the one corner of a square plot of ground and rented it to four ancient philosopher who persons. On the grounds were four cherry trees, and it was studied various properties necessary to divide the grounds so that each person might of infinity. My graphics have a tree and an equal portion of garden ground. Figure program, called Zenospace, 4.48 is a sketch of the plot. How is it to be divided? (See allows you to explore this Answer 4.65.) strange squashed world using advanced computer graphics. No matter how large your numbers are, the tanh func- tion can return only a maxi- mum value of positive 1 or a minimum value of –1. Thus, any function, no matter how spatially extended, becomes viewable in the Zenogram. Here are some observa- tions on this weird space. In the Zenogram, diagonal par- allel planes begin to curve, and they meet at infinity (the sides of the box). Paraboloids (z = xn + yn, n = 2) become squashed in interesting ways as they near the side of the box. (What happens as you Figure 4.48 Dudeney’s house.

Geometry, Games, and Beyond 177 c04.qxd 5/16/05 2:44 PM Page 178

Dudeney’s 12 counters. (Willi Hartner, in Annemarie Tunnel through a cube: Place 12 counters in 6 rows Schimmel’s The Mystery of A true story. In the 1600s, (straight lines with any Numbers, 1993). Prince Rupert of Bavaria orientation you like) so that asked a fascinating and there are now 4 counters in famous geometrical question, each row. 1 which incidentally won him –e e . You go on a television a sum of money. What is the       game show where the host       largest wooden cube that gives contestants the answers, can pass through a given (See Answer 4.66.) and the contestants have to cube with a side length of 1 come up with the questions. inch? More precisely, what is Today, the host gives this the size of the edge of the Dudeney’s cuts. How can answer: largest tunnel (with a square the board, marked as shown 1 cross section) that can be e e in figure 4.49, be cut into four made through a cube without identical pieces, so that each What is the correct question? breaking the cube? (See piece contains three circles, (See Answer 4.68.) Answer 4.70.) and no circle is cut. (See Answer 4.67.)

Dudeney’s horseshoe. How can a horseshoe (figure 4.50) be cut into six separate pieces with just two cuts? Your challenge is to try to solve this in your head, without even using a pencil and paper. (See Answer 4.69.)

Figure 4.49 Dudeney’s cuts.

Mathematical spirit. “The mathematical spirit is a pri- mordial human property that reveals itself wherever human beings live or material ves- tiges of former life exist” Figure 4.50 Dudeney’s horseshoe.

178 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 179

Albrecht Dürer. The The mathematics of love. Mark and Bill are both in love with Renaissance artist Albrecht a TV actress named Shannon who is sitting in a park (figure Dürer created this wonderful 4.51). Alas, sometimes the men compete with each other to 4 × 4 magic square in 1514: see who can meet her first, in order to engage in stimulating conversation and flirtation. Bill, the faster runner of the two, always runs at three times the speed of Mark. 16 3 2 13 Shannon now sits on a park bench exactly 200 feet directly to the east of Mark. Bill is some distance directly north of 5 10 11 8 Mark’s position. 9 6 7 12

4 15 14 1

Note that the two central numbers in the bottom row read “1514,” the year of its construction. The rows, the columns, and the main diago- nals sum to 34. In addition, 34 is the sum of the numbers of the corner squares (16 + 13 + 4 + 1) and of the central 2 × 2 square (10 + 11 + 6 + 7).

Magic squares. There are 275,305,224 different 5 × 5 magic squares in existence. In 1973, Richard Schroeppel, Figure 4.51 The mathematics of love. a mathematician and a com- puter programer, used 100 hours of PDP-10 computer At the same time, Mark and Bill race to Shannon and arrive time to arrive at this large at the same moment. Mark and Bill are both fair, so they number. decide to share their conversations with Shannon. Just how far For compactness, we can north of Mark was Bill at the start of their race to Shannon? divide this large number (See Answer 4.71.) by 4 and give the total as 68,826,306, because, in

Geometry, Games, and Beyond 179 c04.qxd 5/16/05 2:44 PM Page 180

addition to the eight variants • Exchange Rows 1 and 2 bined with the two reflections obtained by rotation and and Rows 4 and 5. Then and the four rotations, the reflection, four other variants exchange Columns 1 and 2 result is 2 × 4 × 2 × 2 = 32 also preserve magical and Columns 4 and 5. forms that can be called iso- properties: As Martin Gardner has morphic (having essentially • Exchange the left and the pointed out in Time Travel the same structure). With this right border columns, then and Other Mathematical definition of isomorphic, the exchange the top and the Bewilderments, when these number of “unique” fifth- bottom border rows. two transformations are com- order magic squares drops to 68,826,306.

Alphamagic square. According to Lee Sallows, an alpha- magic square is a magic square for which the number of let- Antimagic square. An × ters in the word for each number generates another magic antimagic square is an N N square. For example, array of numbers from 1 to N 2 such that each row, each column, and each main diag- 5 22 18 4 9 8 onal produces a different sum, and the sums form a 28 15 2 11 7 3 consecutive series of integers. 12 8 25 6 5 10 Fill in the missing numbers to complete this antimagic square. (See Answer 4.72.) Alphamagic Square Resulting Square

where the magic square on the right corresponds to the num- 8 9 ber of letters in 12 15

five twenty-two eighteen 1 14

twenty-eight fifteen two 15 4 twelve eight twenty-five Antimagic Square Numbers Spelled Out

In other words, you can spell out the numbers in the first Annihilation magic squares. magic square. Then count the letters in the words. The integers According to Ivan make a second magic square. This second square contains the Moscovich, the author of consecutive digits from 3 to 11. Fiendishly Difficult Math

180 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 181

Puzzles, “annihilation magic Chocolate cake computation. For $10, you can buy a squares” are those in which You are walking down Fifth circular cake of diameter 8.5 the rows, the columns, and Avenue in New York City and or a square cake of side the two main diagonals sum enter a restaurant selling a length 7.5. Which is a better to zero. For these squares, delicious “Triple Chocolate buy? In general, is a circular consecutive numbers from Mousse Cake.” The cake con- cake of diameter d always a –N/2 to N/2 are required, and sists of chocolate chiffon lay- better buy than a square cake zero is excluded. Following is ers, a rich chocolate mousse with an edge of d – 1? (See an example with several num- filling, and a glaze of bitter- Answer 4.75.) bers removed. Can you fill in sweet chocolate. Your mouth the missing numbers? (See begins to water! Answer 4.73.)

Apocalyptic magic square. A rather beastly six-by-six magic square was invented by the mysterious A. W. Johnson. No one knows when this square was constructed, nor is there much –4 3 2 –1 information about Johnson, except that he has occasionally 1 –2 –3 4 published in the Journal of Recreational Mathematics. All of its entries are prime numbers, and each row, each column, and each diagonal and broken diagonal sum to 666, the Number of the Beast. (A “broken diagonal” is the diagonal produced by Annihilation Magic Square wrapping from one side of the square to the other; for exam- ple, the outlined numbers 131, 83, 199, 113, 13, 127 form a broken diagonal.) Cramming humanity into small spots. Let us consider 3 107 5 131 109 311 today’s world population and give everyone a 3-by-3-foot 7 331 193 11 83 41 piece of ground on which to stand. How large an area 103 53 71 89 151 199 would humanity cover? Put your answer in terms 113 61 97 197 167 31 that are meant to delight us. For example, could they all 367 13 173 59 17 37 squeeze onto an area the size of Manhattan Island? (See 73 101 127 179 139 47 Answer 4.74.)

Apocalyptic Magic Square

Geometry, Games, and Beyond 181 c04.qxd 5/16/05 2:44 PM Page 182

Amateur findings. In the but by 1976 she had discov- π-square. To create T. E. 1970s, Marjorie Rice, a San ered 58 special kinds of pen- Lobeck’s magic square, Diego housewife and a tagonal tiles that would tile a which follows, start with a mother of five, was working plane, and most of the tiles conventional 5-by-5 magic at her kitchen table when she had been previously square and then substitute the discovered numerous new unknown. Her most advanced nth digit of π (3.14159 . . .) geometrical patterns that pro- diploma was a 1939 high for each number n in the fessors had thought were school degree, for which she square. This means that a impossible. Rice had no had taken only one general 3 is substituted for a 1, a 1 training beyond high school, math course. is substituted for a 2, a 4 substituted for a 3, and so on. Amazingly, every column Mirror magic square. If you reverse each of the entries in this sum duplicates some row “mirror magic square,” you obtain another magic square. sum for the π-square. For example, the top row sums to 24, as does the 4th column. 96 64 37 45 17 24 1 8 15 39 43 98 62 23 5 7 14 16 84 76 25 57 4 6 13 20 22 23 59 82 78 10 12 19 21 3 Mirror Magic Square 11 18 25 2 9 In both cases, the sums for the rows, the columns, and the 5 × 5 Magic Square diagonals are 242: 2 4 3 6 9 69 46 73 54 6 5 2 7 3 93 34 89 26 1 9 9 4 2 48 67 52 75 3 8 8 6 4 32 95 28 87 5 3 3 1 5

Rorrim Magic Square π-Square

182 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 183

69-square. In the follow- Upside-down magic squares. In the following pair of upside- ing magic square, notice down magic square pairs, the numbers in either square will how the digits 0, 1, 6, 8, 9, form the other square by turning either square upside down. In when rotated 180 degrees, either case, the sum of the numbers in the first-place digits (9 become 6, 8, 9, 1, 0. This + 8 + 1 + 6) or the sum of the numbers in the second-place magic square is still magic digits (9 + 1 + 6 + 8) in each row, each column, each two-by- when rotated 180 degrees. two opposite short diagonal, or each main diagonal will be 24. However, if these digits are The sum of the numbers in each row, each column, each two- simply turned upside down, by-two short diagonal, each main diagonal, the four corner the 6 becomes a backward 9 squares, the four center squares, and any four adjacent corner and the 9 a backward 6. If squares equals 264. you turn the square upside down, then reverse the 6s and 9s so that they read correctly, you end up with different 99 81 16 68 89 68 96 11 numbers, but the square is still magic! Notice that cor- 18 66 91 89 91 16 88 69 ners of any 2 × 2, 3 × 3, or 4 × 4 squares, as well as 61 19 88 96 18 99 61 86 many other combinations, 86 98 69 11 66 81 19 98 also sum to 264.

18 99 86 61 Upside-Down of Right Square Upside-Down of Left Square

66 81 98 19 (Martin Gardner, “Order and (Proceedings of Texas Topol- 91 16 69 88 Surprise,” 1950, paraphrasing ogy Symposium), University Bertrand Russell). of Texas Press. The figures 89 68 11 96 are reminiscent of bananas!

69-Square Strange paper title. In 1980, Dr. Forest W. Simmons Prime number magic square. published the unusual mathe- The following “small- Existence. “The external matical title “When Homoge- constant” square at left has world exists; the structure of neous Continua Are the smallest possible magic the world is ordered; we Hausdorff Circles (or Yes, constant, 177, for an order-3 know little about the nature We Hausdorff Bananas)” in square composed only of of the order, nothing at all the prestigious Continua, prime numbers. The number about why it should exist” Decompositions, Manifolds 1 is usually not considered a

Geometry, Games, and Beyond 183 c04.qxd 5/16/05 2:44 PM Page 184

prime number; however, Prime number magic square. This square has the smallest if 1 is allowed in a cell as a possible magic constant, 3,117, for an order-3 square filled prime, the only all-prime with primes in an arithmetic sequence. (In an arithmetic order-3 magic square has a sequence, each term is equal to the sum of the preceding term constant of 111. and a constant.)

71 89 17 1669 199 1249

5 59 113 619 1039 1459

101 29 47 829 1879 409

Prime Number Magic Square Prime Number Magic Square

8811 magic square. The fol- Consecutive prime magic square. Harry Nelson was the first lowing magic square totals person to produce the following 3 × 3 matrix containing only 19,998 in all directions in the consecutive primes (for which he won a $100 prize offered by square as is, upside down, or Martin Gardner). as reflected in a mirror. In every case, any 2 × 2 sub- square (e.g., one formed by 1480028159 1480028153 1480028201 8,188; 1,111; 1,881; 8,818), 1480028213 1480028171 1480028129 as well as the four corner cells, totals 19,998. 1480028141 1480028189 1480028183

Consecutive Prime Magic Square 8811 8188 1111 1888

1118 1881 8818 8181 Strange paper title. In starts, “The title is, of course, 8888 8111 1188 1811 1985, Tom Morley published a fraud. We prove nothing of “A Simple Proof That the the sort. Instead we show that 1181 1818 8881 8118 World Is Three-Dimensional” radially symmetric wave in the prestigious SIAM propagation is possible only 8811 Magic Square Review 27: 69–71. The article in dimensions one and three.”

184 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 185

Chess knight exchange on a Knight’s tour. Figure 4.52 is a representation of a knight’s tiny board. Barry Cipra and tour, in which a chess knight jumps once to every square on John Conway have discovered the (8 × 8) chessboard in a complete tour. This is the earliest the fewest possible moves it recorded solution and was found by Abraham De Moivre would take to exchange all (1667–1754), the French mathematician who is better known the positions of the chess for his theorems about complex numbers. Note that in De knights on this small chess Moivre’s solution, the knight ends his tour on a square that is board. The knights move as not one move away from the starting square. The French math- do traditional knights. The ematician Adrien-Marie Legendre (1752–1833) improved on goal is to exchange the black this and found a solution in which the first and the last squares knight at A with its white are a single move apart, so that the tour closes up on itself into partner at A, B with B, C with a single loop of 64 knight’s moves. Such a tour is said to be C, and D with D. The fewest reentrant. Not to be outdone, the Swiss mathematician Leon- possible moves for such an hard Euler (1707–1783) found a reentrant tour that visits two exchange is 32. halves of the board in turn. (The little squares show positions

where the knight transits from one half to the other.) A B C D

A B C D

Geometers of war. Mathe- matics, especially trigonome- try, was vital in war and colonization during the sixteenth-century age of European expansion. Math was needed to navigate on the seas, to design fortifications, and for artillery tables of tar- geting cannons. The “Geome- ters of War” helped to devise instruments to measure the size of shot, determine the elevation of guns and mortars, Figure 4.52 Knight’s tours. and calculate the range of fire.

Geometry, Games, and Beyond 185 c04.qxd 5/16/05 2:44 PM Page 186

Knight’s tour on a cube. jumps once to every square based the solution (in which Here is a knight’s tour over on the (8 × 8) chessboards in each face is toured in turn) on the six surfaces of a cube, a complete tour. H. E. earlier work of the French each surface being a chess- Dudeney presented this in his mathematician Alexandre- board (figure 4.53). A spider book Amusement in Mathe- Théophile Vandermonde moves as a chess knight and matics, and I believe that he (1735–1796).

A very tired spider completes a knight’s tour on a cube.

Figure 4.53 Knight’s tour on a cube.

186 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 187

Pythagorean triangle with 4. All right angles are sect. More precisely, non- square sides. In 1643, the congruent. Euclidean geometries can be French mathematician Pierre 5. Through a given point out- postulated using the first four de Fermat wrote a letter to his side a given straight line, Euclidean postulates, plus, colleague Mersenne asking there passes only one line instead of the fifth: whether it were possible to parallel to the given line. a. The postulate that more find a Pythagorean triangle Such a line does not inter- than one line can be drawn (a right triangle) whose sect the given line. through a given point par- hypotenuse and sums of its In 1823, János Bolyai and allel to a given line (i.e., legs were squares. In other Nikolai Lobachevsky realized that every line has more words, if the sides are labeled that self-consistent “non- than one parallel). X, Y, and Z, this requires Euclidean geometries” could b. The postulate that no such X + Y = a2; Z = b2; be created in which the lines can be drawn (i.e., X 2 + Y 2 = Z 2 = b 4 “parallel lines” could inter- there are no parallels). The smallest three numbers satisfying these conditions Lituus and divination. The lituus is a cute-looking spiral that are quite large: represents the equation r 2 = a/θ (figure 4.54), and it was first X = 4,565,486,027,761, published by the English mathematician Rogert Cotes in 1722. Y = 1,061,652,293,520, and Poor Cotes (1682–1716) died at age thirty-four, having pub- Z = 4,687,298,610,289. lished only two memoirs during his lifetime. He was appointed professor at Cambridge at age twenty-four, but his work was published only after his death. Note that the lituus gets increasingly closer to the origin but never reaches it. Euclid’s postulates. Euclid The lituus got its name from an ancient Roman trumpet (c. 330–275 B.C.) put forth called the lituus. In art, the lituus spiral is a recurring shape five famous postulates in called the volute. The lituus was also the curved wand used by geometry: the ancient Roman priesthood. Priests were called “augurs,” 1. Exactly one straight line who tried to predict the future, and the shape appears on can be drawn between two Roman coins. points. 2. Any straight line segment can be extended indefi- nitely in a straight line. 3. Given any straight line segment, a circle can be drawn having the segment as radius and one endpoint as center. Figure 4.54 The lituus.

Geometry, Games, and Beyond 187 c04.qxd 5/16/05 2:44 PM Page 188

Helical curves. Consider Butterfly curves. Incredible beauty can be found in the vari- x = a sin (t), y = a cos (t), and ety of forms that inhabit the algebraic and the transcendental z = at/(2 πc), where a and c curves on the plane. Many of these curves express beauty in are constants. Try a = 0.5, their symmetry, leaves and lobes, and asymptotic behavior. c = 5.0, and 0 < t < 10π. A Butterfly curves, developed by Temple Fay at the University of plot of this circular helix Southern Mississippi, are one such class of beautiful, intricate curve resembles a wire spring. shapes (figure 4.55). These curves can be easily used for exper- To draw a conical helix, try imentation, even on personal computers. The equation for the x = az sin (t), y = az cos(t), butterfly curve can be expressed in polar coordinates by and z = t/(2πc), where a and c ρ = ecosθ – 2 cos 4θ + sin5 (θ/12) are constants (figure 4.56). Conical helices are used today This formula describes the trajectory of a point as it traces out in certain kinds of antennas. the butterfly’s body. In the formula, ρ is the radial distance of the point to the origin.

Figure 4.56 Conical helix.

Mandelbrot magnification. “In principle . . . [the Man- delbrot set] could have been discovered as soon as men learned to count. But even if they never grew tired, and never made a mistake, all the human beings who have ever existed would not have suf- ficed to do the elementary arithmetic required to pro- duce a Mandelbrot set of quite modest magnification” (Arthur C. Clarke, The Ghost Figure 4.55 Butterfly curves. from the Grand Banks, 1990).

188 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 189

Lorenz attractor. In 1962, the MIT meteor- To create the Lorenz attractor, one needs to ologist Edward Lorenz attempted to develop a solve the system of differential equations, model of the weather. Lorenz simplified a given previously. Several numerical tech- weather model until it consisted of only three niques can be used that come up with an differential equations. accurate value for x, y, and z as a function of time. The most straightforward approach, dx/dt = 10( y – x) which I have used to get a rough idea about dy/dt = –xz + 28x – y the Lorenz attractor, simply replaces dx with dz/dt = xy – (8/3)z (xnew – x) and replaces dt by a time step, Time is t, and d/dt is the rate of change with called h. Other higher-accuracy approaches, respect to time. If we plot the path that these such as Runge Kutta methods, can be used equations describe using a computer, the tra- but only with a consequent increase in com- jectories seem to trace out a squashed pretzel puter time. To create a projection of this 3-D (figure 4.57). The surprising thing is that if figure in the x-y plane, simply plot (x, y) pairs you start with two slightly different initial of points and omit the z value. points, for example, (0.6, 0.6, 0.6) and (0.6, h = 0.01, npts = 4,000; 0.6, 0.6001), the resulting curves first appear x, y, z = 0.6; to coincide, but soon chaotic dynamics leads frac = 8/3; to independent, widely divergent trajectories. do i = 1 to npts; This is not to say that there is no pattern, xnew = x + h*10*(y – x); although the trajectories do cycle, apparently ynew = y + h*((–x*z) + 28*x – y); at random, around the two lobes. In fact, the znew = z + h*(x*y – frac*z); squashed pretzel shape always results, no mat- x = xnew; y = ynew; z = znew; ter what starting point is used. This is the MovePenTo(x, y); behavior to which the system is attracted. end;

Figure 4.57 Lorenz attractor.

Geometry, Games, and Beyond 189 c04.qxd 5/16/05 2:44 PM Page 190

Build your own chaos times doing a wild tarantella. energy when the pendulum is machine. One of the best non- You can make the double lifted.) The second pendulum computer projects I know for pendulum from wood. At the arm can be about half the observing chaos involves pivot points, you might try to length of the first. You can building a double pendu- use ball bearings to ensure place a bright red dot, or lum—a pendulum suspended low friction. (Ball bearings even a light, on one end of from another pendulum. The can be obtained from hobby the second pendulum so that motion of the double pendu- shops or from discarded your eye can better track its lum is quite complicated. The motors and toys.) motion. Note that your pen- second arm of the pendulum Place a lead weight at the dulum will never trace the sometimes seems to dance bottom of the first pendulum same path twice, because you about under its own will, so that the pendulum will can never precisely reposi- occasionally executing grace- swing for a longer time. (The tion it at the same starting ful pirouettes, while at other weight stores potential location, due to slight inaccu- racies in knowing where the starting point is. These small initial differences in position Fractal goose. In The Story of an African Farm, first are magnified through time published in 1883, Olive Schreiner gives an early, poignant until the pendulum’s motion description of the fractal geometry of nature: “A gander and position become unpre- drowns itself in our dam. We take it out, and open it on the dictable. Can you predict bank, and kneel looking at it. Above are the organs divided where the lower pendulum by delicate tissues; below are the intestines artistically will be after two or three curved in a spiral form, and each tier covered by a delicate swings? Could the most network of blood vessels standing out red against the faint powerful supercomputer in blue background. Each branch of the blood vessels is the world predict the position comprised of a trunk, bifurcating and rebifurcating into the of the pendulum after 30 most delicate, hair-like threads, symmetrically arranged. seconds, even if the computer We are struck with its singular beauty. And, moreover—and were given the pendulum’s here we drop from our kneeling into a sitting position—this precise equations of motion? also we remark: of that same exact shape and outline is our Unlike some of the strange thorn-tree seen against the sky in midwinter; of that shape attractor patterns in this also is delicate metallic tracery between our rocks; in that book, your pendulum’s exact path does our water flow when without a furrow we pattern will eventually come lead it from the dam; so shaped are the antlers of the horned to rest at a point due to beetle. How are these things related that such union should friction. exist between them all? Is it chance? Or, are they not all the fine branches of one trunk, whose sap flows through us all? That would explain it. We nod over the gander’s insides.”

190 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 191

Turning a universe inside- Bounded orbits, which do not out. Since its discovery explode, correspond to the around 1980, the Mandelbrot black surrounding regions. set has emerged as one of the Several contours (level sets) most scintillating stars in the are plotted for the first few universe of popular mathe- iterations. The contours indi- matics and computer art. cate the rate at which the iter- Figure 4.58 Inside-out Figure 4.58 shows inside-out ation explodes. Mandelbrot set. Mandelbrot sets produced by When most people talk 4.59 shows. I used a method the iterative process about the Mandelbrot set, called the “epsilon cross” z → zp + (1 /µ) p, p = 2. they often mean the area just technique for revealing this For this figure, |Re (µ)| < outside the set near its infi- normally hidden internal 2, |Im(µ)| < 2. The conver- nitely complicated fractal structure—Mandelbrot stalks gence to infinity occurs at boundary. But there is also within the interior bounded the center of the figure. action inside the set, as figure region of the Mandelbrot set.

Figure 4.59 Mandelbrot stalks.

Geometry, Games, and Beyond 191 c04.qxd 5/16/05 2:44 PM Page 192

The Quadratrix of Hippias. Amazingly, Hippias and the full behavior of this curve Hippias of Elis, who came to another Greek mathemati- became known. What amaz- Athens in the second half of cian, Dinostratus (350 B.C.), ing things happen to the the fifth century B.C., studied saw only the tip of the ice- curve at higher and lower the behavior of the interesting berg for this curve—they values of x? Try plotting the formula 2r = πρ(sinθ)/θ knew only about the shape curve yourself. in polar coordinates. of the curve on the interval Here, ρ =+xy22and –a < x < a. (The curve looks θ = arctan(y/x). After some like the top of a bald man’s Within a sybaritic sphere. manipulation, we have head on this interval.) Later, “We sail within a vast sphere, y = xcot(πx/2a). in the seventeenth century, ever drifting in uncertainty, driven from end to end” (Blaise Pascal, Pensées, Harborth configuration. How does one arrange identical 1660). sticks in a way such that four sticks meet end to end, without crossing each other, at every point in a geometrical figure on a flat surface? In the diagram in figure 4.60, four sticks meet at Bears in hyperspace. The each vertex. This is the smallest arrangement known, but no polar bear is the largest land one knows whether it’s the smallest possible way to make a carnivore alive in the world figure with four sticks meeting at each point! today. Adult males weigh from 400 to 600 kilograms (880 to 1,320 pounds). Would it be possible to cram a polar bear into an 11-dimensional sphere with a 6-inch radius? (See Answer 4.76.)

Hypercube edges. The number of edges of a cube of dimension n is n times 2n – 1. For example, the number of corners of a seven- dimensional cube is 27 = 128, and the number of edges is 7 times 26 = 7 × 64 = 448. Another interesting factoid: Figure 4.60 Harborth configuration. (Pattern discovered by Heiko Harborth; diagram after Ivars Peterson, Islands of Truth. two perpendicular planes in [New York: Freeman, 1990.]) 4-space can meet at a point.

192 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 193

Hyperspheres and higher 6-dimensional sphere of cult to use. In fact, with these dimensions. The fourth dimen- radius 1 is π3/3!, which is handy formulas, you can sion has fascinated me for a roughly equal to 5.1. For odd compute the volume for a long time, and higher dimen- dimensions, the formula is 6-dimensional sphere just as sional spheres, or hyper- just a bit more intricate: easily as for a 4-dimensional spheres, particularly delight one. For radius 2 and dimen- π ()/kkk−+12mr!2 1 me. Consider some exciting V = sion 2, the previous equations experiments you can conduct ()!k +1 yield the value 12.56, which is using a pencil and paper or a the area of a circle. A sphere calculator. Just as a circle of where m = (k + 1)/2 . The for- of radius 2 has a volume of radius r can be defined by the mulas are really not too diffi- 33.51. A 4-dimensional equation x2 + y 2 = r 2, and a sphere can be defined by x2 + Hypersphere packing. I enjoy contemplating how hyper- y2 + z2 = r2, a hypersphere in spheres might pack together—like pool balls in a rack or four dimensions can be oranges in a box. On a plane, no more than four circles can be defined simply by adding a placed so that each circle touches all others, with every pair 4th term: x2 + y 2 + z2 + w 2 = touching at a different point. Figure 4.61 shows two examples r 2, where w is the 4th dimen- of four intersecting circles. In general, for n-space, the maxi- sion! Here are formulas that mum number of mutually touching spheres is n + 2. permit you to compute the volume of a sphere of any dimension, and you’ll find that it’s relatively easy to imple- ment this formula using a computer or a hand calculator. The volume of a k-dimen- sional sphere is

π kk/ 2 r V = (/)!k 2

for even dimensions k. The exclamation point is the Figure 4.61 In two dimensions, no more than four circles can be placed mathematical symbol for fac- so that each circle touches all the others, with every pair touching at a torial. (Factorial is the prod- different point. What happens in higher dimensions? uct of all the positive integers from one to a given number. What is the largest number of circles that can touch a single For example, 5! = 1 × 2 × 3 × circle? (Assume that each circle has the same radius.) Also, 4 × 5 = 120.) The volume of a answer the question for spheres. (See Answer 4.77.)

Geometry, Games, and Beyond 193 c04.qxd 5/16/05 2:44 PM Page 194

hypersphere of radius 2 has a Hypercube diagonals. A cube has diagonals of two different hypervolume of 78.95. Intu- lengths, the shorter one lying on the square faces and the itively, one might think that longer one passing through the center of the cube. The length the volume should continue of the longest diagonal of an n-dimensional cube of side to rise as the number of length m is m√n. This means that if I were to hand you a 3- dimensions increases. The foot-long thigh bone and ask you to stuff it in a 9-dimensional volume, or perhaps we should hypercube with edges 1 foot in length, the bone would just use the term hypervolume, fit because √9 = 3. A dinosaur bone 10 feet long could fit does grow larger and larger diagonally in a 100-dimensional cube with edges only 1 foot until it reaches a maximum— in length. A mile-long toothpick could fit inside an n-cube at which point the radius 2 with edges the same length as those of an ordinary sugar sphere is in the 24th dimen- cube, if n is large! On the other hand, a hypersphere behaves sion. At dimensions higher somewhat differently. An n-sphere can never contain a tooth- than 24, the volume of this pick longer than twice its radius, no matter how large n sphere begins to decrease becomes. gradually to 0, as the value for the dimension increases. An 80-dimensional sphere dimension increases.) If we Fractal swords and drums. has a volume of only 0.0001. examine the equations for In several of my books, such This apparent turnaround volume more closely, we as Sushi Never Sleeps, I point occurs at different notice that this funny behav- describe science-fiction war- dimensions, depending on the ior shouldn’t surprise us too riors wielding swords with sphere’s radius, r. For all the much. The denominator con- jagged Koch snowflake edges sphere radii I tested, the tains a factorial term that and tossing deadly Koch- sphere initially grows in vol- grows much more quickly curve throwing stars. These ume and then begins to than any power does, so we ideas are my own, but they decline. (Is this true for all get the curious result that an are inspired by research in radii?) For example, for r = 1, infinite dimensional sphere fractal drums. In 1991, the maximum hypervolume has no volume. Using the Bernard Sapoval and his col- occurs in the 5th dimension. equations for volume given leagues at the École Polytech- For r = 1.1, the peak hyper- here, you’ll find that an 11- nique in Paris found that volume occurs in the 7th dimensional sphere of radius fractally shaped drum heads dimension. For r = 1.2, it 2 feet has a hypervolume of are very quiet when struck. occurs in the 8th dimension. 333,763 feet11. Try plotting Instead of being round like an (Incidentally, the hypersur- the ratio of a k-dimensional ordinary drum head, these face of a unit hypersphere hypersphere’s volume to the heads resemble a jagged reaches a maximum in the k-dimensional cube’s volume snowflake. Sapoval cut his 7th dimension and then that encloses the hypersphere. fractal shape out of a piece of decreases toward zero as the Plot this as a function of k. metal and stretched a thin

194 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 195

membrane over it to make a Knight’s move magic square. To create a knight’s move magic drum. When a drummer square, a chess knight has to be jumped once to every square bangs on an ordinary drum, on the (8 × 8) chessboard in a complete tour, while numbering the vibration spreads out to the squares in the order they are visited, so that the magic sum affect the entire drum head. is 260. The array of numbers must have the same sum in each With fractal drums, some row, each column, and the two main diagonals. One possible vibrational modes are trapped solution for the knight’s movement is shown here. Start at the within a branch of the fractal “1” at the bottom, jump to the “2,” and so forth. pattern. Faye Flam, in the December 13th, 1991, issue of Science (vol. 254, p. 1593), 46 55 44 19 58 9 22 7 notes, “If fractals are better 43 18 47 56 21 6 59 10 than other shapes at damping vibrations, as Sapoval’s 54 45 20 41 12 57 8 23 results suggest, they might 17 42 53 48 5 24 11 60 also be more robust. And that special sturdiness could 52 3 32 13 40 61 34 25 explain why in nature, the rule is survival of the fractal.” 31 16 49 4 33 28 37 62 Fractal shapes often occur in 2 51 14 29 64 39 26 35 violent situations where pow- erful, turbulent forces need to 15 30 1 50 27 36 63 38 be damped: the surf-pounded coastline, the blood vessels of Jaenisch’s Knight’s Square the heart (a very violent pump), and the wind- and Notice that the knight can finally jump from 64 back to 1, a rain-buffeted mountain. beautiful feature of this square. If the first and the last squares traversed are connected by a move, the tour is said to be closed (or reentrant); otherwise, it is open. This magic square was created in 1862 by C. F. Jaenisch, Hyperpyramids. A four- in Applications de l’Analyse Mathématique au Jeu des Echecs. dimensional analog of a Sadly, it is not a perfect magic square because one diagonal pyramid has a hypervolume sums to 264 and the other to 256. Therefore, the square is one-fourth the volume of its sometimes referred to as semimagic. I can imagine poor three-dimensional base C. F. weeping. . . . So close, yet so far! multiplied by its height in For centuries, the holy grail of magic squares was to find a the fourth direction. An perfect knight’s move magic square, but, sadly, all have had n-dimensional analog of a minor flaws. (It is possible to produce a knight’s move magic pyramid has a hypervolume square for larger boards, such as for a 16 × 16 board.)

Geometry, Games, and Beyond 195 c04.qxd 5/16/05 2:44 PM Page 196

1/n times the volume of its more about what happens one-year-old military police- (n – 1)-dimensional base when you lick a seven- man in the Canadian Armed multiplied by its height in dimensional popsicle, see I. Forces) performed an exhaus- the nth direction. Ekeland, “How to Melt If You tive computer search of all Must,” Nature 392, no. 6677 the possibilities and finally (April 16, 1998): 654–55. demonstrated for the first Seven-dimensional ice. time that no 8 × 8 magic Recently, scientists and math- knight’s tour is possible. ematicians have researched On the existence of knight’s Meyrignac wrote the software the theoretical melting prop- tours. Does a knight’s tour for the computation, and, erties of ice in higher dimen- on an 8 × 8 magic square while doing the search, he sions. In particular, the exist? On August 6, 2003, found 140 distinct semimagic mathematicians Nassif after 61 days of computation, knight’s tours. In other words, Ghoussoub and Changfeng this 150-year-old unsolved he found 140 “magic” Gui, from the University of problem was finally answered. knight’s tours on the chess- British Columbia, have devel- Günter Stertenbrink board, but none of these is oped mathematical models (Germany), Jean-Charles diagonally magic. for how ice turns from solid Meyrignac (France), and The computer checking into liquid in the seventh Hugues Mackay (a twenty- program was executed as a dimension and have proved that if such ice exists, it likely exhibits a different melting Lattice growth. You and I are climbing Vinson Massif, the behavior than ice in lower highest mountain of Antarctica, when I turn and show you the dimensions. This dependence following diagram written in sepia ink on an ancient parch- on dimension, although not ment. How many rectangles and squares are in this diagram? very intuitive, often arises in the field of partial differential 1 2 equations and minimal sur- faces—recent results suggest 3 4 that geometry depends on the underlying dimension in ways Think about this for a minute, and then I’ll give you an answer that were not suspected in the before you freeze. This is a simple lattice. There are the 4 past. Other research suggests small squares marked 1, 2, 3, and 4, plus 2 horizontal rectan- that there is something about gles containing 1 and 2, and 3 and 4, plus 2 vertical rectan- eight-dimensional spaces that gles, plus the 1 large surrounding border square. Altogether, makes physical phase transi- therefore, there are nine 4-sided overlapping areas. The lattice tions inherently different number for a 2 × 2 lattice is therefore 9, or L(2) = 9. from seven-dimensional Your challenge: What is L(3), L(4), L(5), and L(n)? (See spaces. If you want to read Answer 4.78.)

196 A Passion for Mathematics c04.qxd 5/16/05 2:44 PM Page 197

distributed project that oper- Knight’s move magic square. The first person to attempt to ated for 61 days, 9 hours, and draw a knight’s move magic square was Leonhard Euler 36 minutes at an equivalent (1707–1783), a Swiss mathematician and the most prolific 2.25 Ghz (G. Stertenbrink, mathematician in history. Even when he was completely blind, “Computing Magic Knight Euler made great contributions to modern analytic geometry, Tours,” magictour.free.fr/, trigonometry, calculus, and number theory. August 6, 2003).

1 48 31 50 33 16 63 18 In the garden of the knight. 30 51 46 3 62 19 14 35 Jean-Charles Meyrignac, 47 2 49 32 15 34 17 64 Mike Malak, and colleagues 52 29 4 45 20 61 36 13 have wondered about the 5 44 25 56 9 40 21 60 greatest number of knights 28 53 8 41 24 57 12 37 that can be placed on a chess 43 6 55 26 39 10 59 22 board so that each piece attacks exactly one other 54 27 42 7 58 23 38 11 piece. Can you arrange 32 Euler’s Knight’s Square knights on a standard board so that each attacks only one other knight? (See Answer To traverse the square, start at the 1 in the upper left and leave 4.79.) the square at the 64 at the right. Figure 4.62 shows the actual path. Notice the nice symmetries in the path. The right side of the figure is a mirror image of the left. In the garden of the knight. The numbers in adjacent 2 × 2 subsquares add up to 130. Place 80 knights on a 13 × 13 Euler’s knight’s square chessboard so that each adds up to 260 in the attacks only four other rows and the columns. knights. (See Answer 4.80.) The four 4 × 4 sub- squares are also magic in their rows and Enigma. “It may well be columns, which sum to doubted whether human inge- 130. (The Euler knight’s nuity can construct an square is actually four enigma of the kind which 4th-order magic squares human ingenuity may not, by put together.) Alas, like proper application, resolve” the Jaenisch square, the (Edgar Allan Poe, “The Gold- main diagonals do not Bug,” 1843). add to 260. Figure 4.62 Knight’s path.

Geometry, Games, and Beyond 197 c04.qxd 5/16/05 2:45 PM Page 198

at the start of a turn because In the garden of the knight. Here is the solution. What’s the all squares are occupied. For question? (See Answer 4.81.) clarification, here is how each turn starts: (1) your new bishop is placed on the board at a position determined by your opponent; (2) next, you are free to move the new bishop or any other of your pieces as usual. Polyhedral universe. Is the universe more likely to be shaped like a cube, a dodeca- hedron, an icosahedron, an octahedron, or a tetrahedron? (See Answer 4.82.)

Golden pentagram. The Johnson functions. In his unusual initial values of z . pentagram, or five-pointed article “Approximating √n,” Can you devise a graphics star, contains many ratios which appeared in volume 19 strategy to show these that are the golden ratio. In of the journal Mathematical unusual values? figure 4.63, examples include Spectrum (issue no. 2, page φ = AB/BC = CH/BC = IC/HI 40), Simon Johnson suggests = 2DE/EF = EG/2DE. Too many bishops. In this that the iterative formula special version of chess that I zn+ invented, each player acquires zIz→=() z 2 +1 an additional bishop before each turn. The bishop is applied to the rational num- placed on a position deter- ber z, converges to n1/3. Later, mined by the opponent. The Irving, Richards, and Sowley game ends when a king is showed that this iteration captured, when a player can- converges to n1/3 > if 0 < n ≤ not move due to the mob of 23/2, but that if n > 23/2, it bishops on the board, or when converges only for certain a player cannot add a bishop Figure 4.63 Golden pentagram.

198 A Passion for Mathematics c04.qxd 5/16/05 2:45 PM Page 199

Behold the hidden Stoma- achion, a puzzle involving pieces shown in figure 4.64 chion. In 2003, math histori- combinatorics. Combina- can be put together to make a ans discovered long-lost torics is a field of math that square. In 2003, four mathe- information on the Stoma- deals with the number of maticians required six weeks chion of Archimedes. In par- ways a given problem can to determine that the number ticular, an ancient parchment, be solved. The goal of the is 17,152. written over by monks nearly Stomachion (pronounced sto- a thousand years ago, MOCK-yon) is to determine describes Archimedes’ Stom- in how many ways the 14

Möbius mirror. In theory, if the universe had characteristics similar to those of a Möbius strip, you could travel in space and return as your mirror image. August Möbius discovered the Möbius strip in 1840. You can create a Möbius strip by twisting a strip of paper 180 degrees and then taping the ends together. A Möbius strip has only one side. If that’s hard to Figure 4.64 The long-lost believe, build one and try to color one side red and the “other” Stomachion of Archimedes. side green. By way of analogy, if a Flatlander lived in a Möbius world, In the thirteenth century, he could be flipped easily by moving him along his universe Christian monks ripped the without ever taking him out of the plane of his existence. If a original manuscript apart, Flatlander travels completely around the Möbius strip and washed it, and covered it with returns, he will find that all of his organs are reversed (figure religious text. Today, we can- 4.65). A second trip around the Möbius cosmos would not see the Stomachion with straighten him out again. the naked eye, and ultraviolet light and computer-imaging techniques are needed to reveal the hidden mathemati- cal gem. Scholars are uncer- tain whether Archimedes ever correctly solved the problem. (For further reading, see Gina Kolata, “In Archimedes’ Puzzle, a New Eureka Moment,” vol. CLIII, no. 52,697, New York Times, Figure 4.65 Möbius cosmos. December 14, 2003, p. 1.)

Geometry, Games, and Beyond 199 c04.qxd 5/16/05 2:45 PM Page 200

Platonic patent. Platonic patent 4,676,507, “Puzzles Figure 4.66 shows several solids (defined early in this Forming Platonic Solids,” views of Patterson’s tetrahe- chapter) are a big business issued to Bruce Patterson of dron puzzle from his patent. these days, and U.S. patents Egg, Switzerland. The patent Other figures in the patent exist for Platonic toys. One describes several 3-D puzzles show similar puzzles for favorite example is U.S. formed from identical pieces. other Platonic solids.

Figure 4.66 Platonic patent.

200 A Passion for Mathematics c04.qxd 5/16/05 2:45 PM Page 201

Tank charge. You are a Sangaku geometry. During Japan’s period of isolation from tank, training in the Nevada the West (1639–1854), a tradition known as sangaku, or desert. In the diagram, you Japanese temple geometry, arose. Mathematicians, farmers, can travel up, down, left, and samurai, women, and children solved difficult geometry prob- right through electric fields. lems and inscribed the solutions on tablets. These colorful Only two of your many moves tablets were then hung under the roofs of temples. More than may be a diagonal move. If 800 tablets have survived, and many of them feature problems you travel through two minus that concern tangent circles. As one example, consider figure (–) signs in a row, your bat- 4.67, a late sangaku tablet from 1873 created by an eleven- tery is drained and you are year-old boy named Kinjiro Takasaka. Consider a fan, which

stuck. If you travel through is one-third of a complete circle. Given the diameter d1 of the two plus (+) signs in a row, circle pointed to by the arrow, what is the diameter d2 of the your battery overcharges and circle with the question mark? I believe that the answer is explodes. How can you travel approximately from Start to End through dd≈+()/.3072 62 193 every cell once and survive? 21 (See Answer 4.83.) S + – + – – + – – + – + + + – + – + – + E + – + –

The tritar—a guitar made Figure 4.67 A Japanese sangaku from 1873. by genius mathematicians. In January 2004, the media were all abuzz about the tritar In their research involving extremely novel and beautiful (“TREE-tar,” sometimes infinite sums called p series, sounds, from guitars to bells. spelled “tritare”), a Y-shaped the mathematicians invented If one string is plucked, it guitar invented by two Cana- a series of “hyperimaginary” vibrates across all three of the dian number theorists, numbers lying on a Y-shaped fretboards. As I write this, the Samuel Gaudet and Claude number line, and these mathematicians have filed for Gauthier, both at the Univer- numbers were useful for a patent and are taking the tri- sity of Moncton. Some say creating a musical instrument tar to trade shows, with hopes that the tritar will revolution- with Y-shaped strings. The of commercializing the ize music. tritar produces a range of instrument.

Geometry, Games, and Beyond 201 c04.qxd 5/16/05 2:45 PM Page 202

Molecular madness. draw as straight lines con- through which your bonds Scientists visiting planet Nec- necting the atoms (figure may not pass. tar have discovered an amaz- 4.68). The numbers in each Can you solve the molecu- ing molecule with a fruity atom tell the number of lar structure by drawing the aroma. They call the mole- bonds that the atom makes to missing bonds as straight cule Nectarine. Each of the other atoms. The molecule lines on this flat diagram? atoms shown here in this has two double bonds and Your bonds must not cross chemical diagram of Nec- one triple bond, and the one another or cross through tarine is connected to at least remaining bonds are single the atoms. Is there more than one other atom by one or bonds. Black regions repre- one solution? (See Answer more bonds, which we can sent solvent molecules 4.84.)

Figure 4.68 Alien molecule confounds scientists.

202 A Passion for Mathematics c04.qxd 5/16/05 2:45 PM Page 203

Stained glass squares of Drinking numbers. For centuries, arrays of numbers have Constantine. How many been thought to confer magical powers. Consider the follow- squares can you count in this ing square from India that a woman may use when searching window? (See figure 4.70.) I for a husband. The numbers are drawn on a china plate with a recently designed and created crayon and then washed off the plate with water that the this stained glass window in woman drinks: gorgeous color, and my brainy colleagues always give 24,762 24,768 24,771 25,320 different answers! Show this 24,770 24,758 24,763 25,341 to friends, as no two friends 24,759 24,773 24,766 25,325 will give you the same solu- tion. (See Answer 4.86.) 24,767 24,761 24,760 25,344

Finding the Perfect Husband

Whenever possible, this number array should be written with a special ink known as Ashat Gandh. This is a mixture of several items, the most important of which is water from the Ganges River. I would be interested in hearing from readers who ascertain any significance in the use of these particular numbers.

Figure 4.70 Stained glass Clown with balls. A large intellectual dressed in a clown squares of Constantine. outfit approaches you with bright red pool (billiard) balls. His nickname is “Solenoid,” and he has various springs, resistors, and capacitors in his hair. Math luxury. “The science Solenoid places the balls of calculation is indispensa- inside an equilateral triangle ble as far as the extraction of in preparation for playing the square and cube roots: a game (figure 4.69). Algebra as far as the quad- Each ball has a radius ratic equation and the use of of 1 unit length. logarithms are often of value What is the side in ordinary cases: but all length of the beyond these is but a luxury; equilateral trian- a delicious luxury indeed; but gle? (See not to be indulged in by one Answer 4.85.) Figure 4.69 Ball puzzle. who is to have a profession to

Geometry, Games, and Beyond 203 c04.qxd 5/16/05 2:45 PM Page 204

follow for his subsistence” Gordon and Sophie Sorkin, Chocolate puzzle. Dr. (Thomas Jefferson, in J. eds., The Armchair Science Brain is a master chef and Robert Oppenheimer’s “The Reader, 1959). has his own personal choco- Encouragement of Science,” late bar problem for you. Your which appeared in Isabel goal is to divide the 8 × 8 gridded chocolate square into rectangles or squares, such that each quadrilateral Pythagorean Lute assembly. In an answer earlier in this chap- contains a number made of ter, we encountered the Lute of Pythagoras and all its golden icing—and that number must ratios. Recall that the golden ratio is φ = (1 + √5 )/2 = 1.61803 designate the number of . . . Figure 4.71 shows an impressive assembly of multiple chocolate cells inside the lutes created by Bruce A. Rawles, who is interested in geome- quadrilateral. For example, try, art, and nature. Rawles is the author of Sacred Geometry I’ve drawn a rectangle Design Sourcebook, published by Elysian Publishing. You can around 4 cells that include learn more about his work at “Sacred Geometry Home Page,” the 4, just to show you what a www.intent.com/sg/. “legal” quadrilateral could look like. Can you draw all the quadrilaterals so that one icing number is in each quadrilateral? What strategy did you use? How long did it take you to solve this? (See Answer 4.87.)

4 6 6 8 2 6 4 6 4 4 3 6 5

Figure 4.71 Pythagorean Lute assembly by Bruce Rawles.

204 A Passion for Mathematics c04.qxd 5/17/05 10:11 AM Page 205

Jerusalem crystal. You are digging in the move between facets that touch only at ancient soil of Jerusalem and discover a mys- their corners. terious crystal with Hebrew letters (figure 3. Your entire path must follow this repeating 4.72). Beginning at the a in the lower right, code: a, a, a, B, B, B, g, g, g, a, a, a, B, you must discover a secret path that will lead B, B, g, g, g . . . , and so on, where the you to the a in the upper left. How many “B” stands for a blank facet with no letter. solutions can you find, using the following That is, after moving through three a rules? facets, you must move through three blank 1. You may move up, down, right, or left facets; after the three blank facets, you along each facet. must move through three g facets, and so 2. You may move only between adjacent on, repeating the pattern. Good luck! facets that share an edge; you may not (See Answer 4.88.)

Figure 4.72 Jerusalem crystal.

Geometry, Games, and Beyond 205 c04.qxd 5/16/05 2:45 PM Page 206

Schmidhuber circles. Figure 4.73 shows a • Rule 1. Wherever two legal circles of equal fantastic collection of Schmidhuber circles, radius touch or intersect, draw another named after their discoverer, the German legal circle of equal radius with the inter- mathematician Jürgen Schmidhuber. To create section point as its center. this pattern, start by drawing a circle of arbi- • Rule 2. Within every legal circle with cen- trary radius and center position. Randomly ter point p and radius r, draw another legal select a point on the first circle and use it as circle whose center point is also p but the center of a second circle with an equal whose radius is r/2. radius. The first two circles are defined as “legal circles.” The rules for generating addi- Figure 4.73 is the result of a recursive applica- tional legal circles are as follows: tion of these rules (www.idsia.ch/~juergen/).

Figure 4.73 Schmidhuber circles, created by Jürgen Schmidhuber.

206 A Passion for Mathematics c04.qxd 5/16/05 2:45 PM Page 207

Squiggle map coloring. If you draw a map on a plane using a continuous line, with- out taking your pencil off the paper, and return to the start- ing point, you need only two colors to produce a map such that any regions with a com- mon boundary line have different colors (figure 4.74). (In your coloring, two adja- cent regions can share a common vertex and have the same color, but they can’t share the same edge and have the same color.)

Figure 4.74 Squiggle map coloring.

Geometry, Games, and Beyond 207 c04.qxd 5/16/05 2:45 PM Page 208 1 2 c05.qxd 5/16/05 2:50 PM Page 209 3 4 55 PrProbability:obability:6 TTakeake YourYour ChancesChances

N WHICH WE EXPLORE CASINOS, LOGIC, GUESSING, DECISIONS, COMBINATIONS, I permutations, competition, possibilities, games involving choice, mon- keys typing Hamlet, Benford’s law, combinatorics, alien gambits, Rubik’s Cubes, card shuffles, marble mazes, nontransitive dice, dangerous movements of air molecules, the board game of the gods, and the tunnels of death and despair.

Probability describes and quantifies uncertainty. It’s the spinning roulette wheel in the casino of reality.

209 c05.qxd 5/16/05 2:50 PM Page 210 c05.qxd 5/16/05 2:50 PM Page 211

Gambling. Your friend Donald Trumpet is a gambling Tic-tac-toe games. There man. He approaches you and your friend on a street corner are 255,168 possible games and wants to use a coin to determine which of you will get a in tic-tac-toe, when you con- brand new car. He will flip a coin to decide. Unfortunately, sider all possible games that his coin is biased, which means it favors one side over the end in 5, 6, 7, 8, and 9 moves. other and does not have a 50-50 chance of landing heads or tails. How can you instantly generate even odds from Don- ald’s unfair coin? For example, if both of you know that The Book of Everything That Donald’s coin is biased toward tails, how can you get the Can Be Known. Moses, along equivalent of a fair coin with several tosses of Donald’s with several angels, unfair coin? (See Answer 5.1.) approaches you. In his hand is a massive book, leather bound with gold trim, titled The Book of Everything That Mathematical garments. and type out all of Shake- Can Be Known. The book is “The mathematician may be speare’s Hamlet correctly? 10,000 pages long. On page compared to a designer of (See Answer 5.2.) 314 is the statement “The garments who is utterly obliv- universe is finite in spatial ious of the creatures whom extent,” and this statement is nowhere else in the book. On his garments may fit. To be Many monkeys typing average, how many times sure, his art originated in the Hamlet. Let us assume for the would you have to flip open necessity for clothing such previous problem that each this book to be able to view creatures, but this was long day we double the number of this fact? (See Answer 5.4.) ago; to this day a shape will monkeys that are trying to occasionally appear which accomplish the task of typing will fit into the garment as if Hamlet. How do the odds of Benford’s bravura. Ben- the garment had been made at least one of the monkeys ford’s law, also called the first for it. Then there is no end of in the monkey collection digit law or the leading digit surprise and delight!” (Tobias typing Hamlet correctly phenomenon, asserts that in Dantzig, The Bequest of the change through time? (See numerous listings of num- Greeks, 1969). Answer 5.3.) bers, the digit 1 tends to occur in the leftmost position with probability of roughly Monkeys typing Hamlet. Tic-tac-toe probability. In 30 percent, much greater than I put a single monkey in a randomly played tic-tac-toe, the expected 11.1 percent room, typing randomly on a the probability that the first (i.e., one digit out of nine). typewriter. What are the odds mover wins is 737/1260 or Benford’s law can be that the monkey will sit down 0.5849206. observed, for instance, in

Probability: Take Your Chances 211 c05.qxd 5/16/05 2:50 PM Page 212

tables that list populations, bers exist in the range 1–100, ington, “Benford’s Law for death rates, baseball statis- but only one in the next three Fibonacci and Lucas Num- tics, the areas of rivers or ranges of 100 (101–200, bers,” The Fibonacci Quar- lakes, and so forth. Explana- 201–300, 301–400). terly 19 (1981): 175–77; and tions for this phenomenon are Fibonacci numbers become Ron Knott, “The Mathemati- very recent. increasingly rare as we scan cal Magic of the Fibonacci Benford’s law is named for higher ranges of size 100. Numbers,” www.mcs.surrey. the late Dr. Frank Benford, a Benford’s law has often ac.uk/Personal/R.Knott/ physicist at the General Elec- been used to detect fraud. For Fibonacci/fibmaths. tric Company. In 1938 he example, Dr. Mark J. Nigrini, html#msds. (Dr. Knott was noticed that pages of loga- an accounting consultant, formerly with the University rithms that corresponded to used the law to detect fraudu- of Surrey and now operates numbers starting with the lent tax returns in which the his own company for Internet numeral 1 were dirtier and occurrence of digits did not resource provision, with an more worn than other pages, follow what would be emphasis on mathematics and because the number 1 expected by Benford’s law. teaching.) occurred as the first digit See Theodore Hill, “The First about 30 percent more often Digit Phenomenon,” Ameri- than any other did. In numer- can Scientist 86 (1998): Bookkeeper arrangements. ous kinds of data, he deter- 358–63; Malcolm W. In how many different ways mined that the probability of Browne, “Following Ben- can I arrange the letters in any number n from 1 through ford’s Law, or Looking Out BOOKKEEPER? (See Answer

9 being the first digit is log10 for No. 1,” New York Times, 5.5.) (1 + 1/n). Even the Fibonacci August 4, 1998; L. C. Wash- sequence—1, 1, 2, 3, 5, 8, 13 . . . —follows Benford’s law. Fibonacci numbers are far Subway odds. You are riding the New York City subway more likely to start with “1” when a huge, hulking, hairy man suddenly threatens you with than with any other digit. The a knife. You tell him to wait and then hand him a pen and nine next most popular digit is 2, slips of paper. “Write a different number on each paper,” you and 9 is the least probable. It say. “You can use any numbers, but don’t use any consecutive appears that Benford’s law numbers.” applies to any data that fol- Your assailant writes down nine numbers. He places the lows a “power law.” For exam- slips of paper facedown so that you can’t see his numbers. You ple, large lakes are rare, boast, “I’ll start turning over the slips of paper at random, and medium-sized lakes are more even though I don’t know what you wrote, I’ll stop turning on common, and small lakes are the highest number. If I’m right, you set me free. If I’m even more common. Simi- wrong, I give you all the money in my wallet.” larly, eleven Fibonacci num- What is your strategy? (See Answer 5.6.)

212 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 213

Combinatorics defined. Permutations defined. Permutations are ordered arrange- Some of the problems in this ments of elements. Order is important. For example, two per- section deal with “combina- mutations of the same elements are considered different torics”—the branch of mathe- permutations if they are in different orders. Thus, ABC has six matics that is concerned permutations: ABC, ACB, BAC, BCA, CAB, CBA. The number with the selection and the of permutations for n elements is n factorial. In this case, 3! = arrangement of objects. 3 × 2 × 1 = 6. Combinatorics has a long his- Sometimes we may have a collection of objects from which tory, and interest skyrocketed we take several members. For example, starting with A, B, C, in the seventeenth and eigh- and D, we might ask how many permutations exist if we take teenth centuries, when it was only two letters from the batch. We can list all 12 permuta- used to estimate gambling tions: AB, AC, AD, BA, BD, BC, CA, CB, CD, and DA, DB, odds and assess the probabili- and DC. More generally, if we take p elements from a set of ties of game outcomes. The n different elements and want to determine the number of per- Italian scientist Galileo mutations, we use the handy formula nPp = n!/(n – p)! In our Galilei (1564–1642) used example, n = 4 and p = 2, so 4P2 = 4!/(4 – 2)! = 24/2 = 12. probability to study the out- comes of dice rolls. One important feature of not changed. In fact, ABCDE Circular permutation probability is the multiplica- can be rotated 5 times, and defined. A circular permuta- tion principle, which says still we have the same order. tion is the number of different that if m different selections Thus we must reduce the 5! ways you can arrange items in can be made in succession, arrangements in a row by a circle. A typical circular per- and the first selection can be dividing by 5 to get the num- mutation involves people sit- made in n ways, the second ber of arrangements in a cir- 1 ting around a table. As an in n ways, the third in n cle, which is the same as 2 3 example, in how many ways ways, and so on, then the calculating (n – 1)! arrange- can 5 different people be total number of selections is ments, given n different seated around a circular table? n × n × n × . . . n . As an objects arranged in a circle. 1 2 3 m If we asked the question for 5 example, consider a pizza For 5 people around a table, people in a row, we have 5! = that can be with or without there are 4! = 24 different 120 different possible cheese, can be small or large, arrangements or permutations. and can have pepperoni, pep- arrangements. However, pers, or anchovies. The total around a circular table, the 5! number of pizza varieties is arrangements often produce Permutations with some 2 × 2 × 3 = 12, if no toppings the same order. For example, identical elements. Up to now, are mixed. (I’d choose the ABCDE is the same as we have been discussing the small cheese pizza with BCDEA in a circle. The rela- number of permutations of anchovies.) tive positions of people have objects that are different. If

Probability: Take Your Chances 213 c05.qxd 5/16/05 2:50 PM Page 214

The ancient paths of Dr. Livingstone. Dr. Livingstone is travel- mathematics, just as there is ing from Town A through Town B to Town C in the deepest in physics” (Paul Davies, The heart of Africa (figure 5.1). In how many ways can he travel, Mind of God, 1992). assuming that he does not travel a road more than once or through a town more than once? In other words, he doesn’t backtrack. (See Answer 5.7.) Organ arrangements. A stomach, a heart, a kidney, a brain, and a spleen are lined up in a neat row along a mad scientist’s table. In how many different ways can they be arranged in the row? In how many ways can all possible sets of three organs from our collection of five organs be arranged? (See Answer 5.8.)

Mombasa order. An archaeologist wishes to visit Jerusalem, Damascus, Cairo, Baghdad, Nairobi, Meru, and Figure 5.1 The ancient paths of Dr. Livingstone. Mombasa. Before he and his wife leave for the trip, his wife insists that they visit

we wish to determine the letters in BALLOON is Mombasa last. In how many number of permutations of 7!/(1!1!2!2!1!) = 5,040/4 = ways can their order of visits sets of objects that have some 1,260. vary? (See Answer 5.9.) identical elements, the num- ber of permutations is reduced. In particular, we can Randomness and uncer- Diamond arrangements. A compute the number of per- tainty. “The popular image of movie star bearing a striking mutations of n objects, q of mathematics as a collection resemblance to Shannen one type, r of another, s of of precise facts, linked Doherty has sixteen different- another, and so forth, using together by well-defined logi- sized diamonds to string on a this formula: n!/(q!r!s! . . . ). cal paths, is revealed to be bracelet. In how many ways For example, the number of false. There is randomness can this be done? (See distinct permutations of the and hence uncertainty in Answer 5.10.)

214 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 215

Sushi combinatorics. Sally Marble maze. You drop a marble into the maze in figure 5.2, is looking at a sushi menu. and it is pulled down by gravity. At certain points, the marble To make a single piece of has a choice of taking one of two forks in the tunnel. These sushi, she can choose tuna, choices are marked by dots. Assume that each time the marble squid, or shrimp, which can has a valid choice of tunnels, it is equally likely to choose be either in the form of a either route. You win a neural stimulator that gives you roll or sliced. In addition, the ecstatic pleasure if you emerge at the tunnel marked “Win.” piece may be either plain or What is the likelihood that you will win the prize? (See coated with red, black, white, Answer 5.11.) or green caviar. How many different pieces of sushi can Sally make? (See Answer 5.12.)

Rationality. “What if our science rests on irrational impulses that we cannot measure? What if our mind is a ruler that cannot measure itself without always getting the same answer?” (George Zebrowski, “Is Science Rational?” 1994).

Turnip permutations. Yo u are buying vegetables in a local grocery store; you turn to a fellow shopper and ask, “How many different order- ings or permutations can one make for the letters in the word TURNIP?” What should the shopper’s response be? (See Answer 5.13.)

Figure 5.2 Marble maze.

Probability: Take Your Chances 215 c05.qxd 5/16/05 2:50 PM Page 216

Mathematics and freedom. You have two dishes. You are Cards of Minerva. Zeus and “The essence of mathematics about to place all of the Minerva are playing with resides in its freedom” pieces of sushi on the two cards, each of which has one (Georg Cantor, “Über dishes, distributing them black side and one white side. Unendliche, Lineare however you like. After that, Zeus has n + 1 cards, while Punktmannischfaltigkeiten,” Dr. Sushi will choose one Minerva has only n cards. Mathematische Annalen, dish at random and eat a Both players toss all of their 1883 [in this paper, Cantor piece of sushi, chosen at ran- cards simultaneously and extends the natural numbers dom, from the dish. How randomly, and observe the to infinite ordinal numbers]). should you distribute the number of their cards that sushi to maximize the come up black. What is the chances that Dr. Sushi will probability that Zeus obtains The Africa gambit. Throw eat octopus sushi? (See more black cards than Min- a dart at a map of the world. Answer 5.15.) erva? (See Answer 5.17.) Assume that it lands ran- domly on the map. What is the chance that it lands on Africa? (See Answer 5.14.) Alien gambit. An alien slaps a strip containing three buttons on your forehead. The buttons are labeled as follows: Rubik’s Cube. An ordinary Rubik’s Cube has 432,520, 032,274,489,856,000 differ- ent positions. The four- dimensional analog of a The unit on your head contains a capsule of smelly, dangerous Rubik’s Cube has 1,756,772, green dye that will open in 10 minutes. The dye is permanent 880,709,135,843,168,526,079, and will color your face green for the rest of your life. You can 081,025,059,614,484,630, choose whichever sequence of buttons you like to prevent the 149,557,651,477,156,021, capsule’s opening. However, before you press, consider that 733,236,798,970,168,550, one of the buttons, if pressed, opens the capsule immedi- 600,274,887,650,082,354, ately—that’s bad. Another button seals the capsule forever— 207,129,600,000,000,000,000 that’s good. The remaining button stimulates the pleasure possible positions. center of your brain to such an extent that you don’t care whether you turn green. Are the chances greater that you will turn green today or Sushi gambit. The danger- that you will not turn green today? If you answer correctly, the ous Dr. Sushi places 5 pieces alien will remove the capsule. You can’t remove the buttons, of tuna sushi and 5 pieces of but you can continue to press buttons to try to avoid turning octopus sushi in front of you. green. (See Answer 5.16.)

216 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 217

Card shuffles. It is the Martian moon of Deimos. Hannibal’s organs. A crazy rumored that magicians who They are in the order of man named Dr. Hannibal are excellent with their hands Mars, Phobos, and Deimos. motions to an opaque, forma- can shuffle a deck “perfectly” You randomly shuffle the lin-filled jar. “The jar con- so that the two halves of the deck. What are the chances tains one organ, either a deck are exactly interleaved. that you will have the original kidney or a brain,” Hannibal Is it possible to say how many order after you shuffle? (See truthfully says. You watch as consecutive shuffles of this Answer 5.20.) Hannibal drops a brain into type will restore a deck to its the jar, shakes the jar, and original order? (See Answer randomly withdraws an organ 5.18.) Air molecules. It is possi- that proves to be a brain. One ble, although extremely organ remains in the jar. unlikely, for all of the air mol- “What is now the chance of ecules in your room to sud- removing a brain from the Piano probability. You are denly go to one corner and jar?” (See Answer 5.23.) blindfolded and asked to suffocate you, based simply select a piano key at random. on random movements of the What note are you most molecules. To better under- Probability and truth. “It likely to play, out of the usual stand the chance of this, con- has been pointed out already white keys, C, D, E, F, G, A, sider the following. How that no knowledge of proba- B, and the black keys, C#, unlikely is it for just 10 mole- bilities, less in degree than D#, F#, G#, A#? In other cules in your room to jump certainty, helps us to know words, if you’re asked to into a corner volume that is what conclusions are true, select one of the 88 standard 10 percent the room’s vol- and that there is no direct piano keys at random, with ume? (See Answer 5.21.) relation between the truth of each key having an equal probability of being chosen, which step in the chromatic scale A, A#, B, C, C#, D, D#, Adventure. “He calmly rode on, leaving it to his horse’s dis- E, F, F#, G, G# is your cretion to go which way it pleased, firmly believing that in this selected key most likely to consisted the very essence of adventures” (Cervantes, Don represent? (See Answer 5.19.) Quixote, 1605).

Martian shuffle. Consider a Chess moves. You are sitting with a brilliant robot, Roberta, deck of three cards, one pic- playing chess. You move first and have a choice of moves. turing Mars, another pictur- Roberta then responds by making a move. How many different ing the Martian moon of possible board configurations exist that consist of these first Phobos, and a third picturing two moves? (See Answer 5.22.)

Probability: Take Your Chances 217 c05.qxd 5/16/05 2:50 PM Page 218

a proposition and its proba- Application of Probability Alien pyramid. An alien bility. Probability begins and to Conduct,” in James New- hands you ten colored pyra- ends with probability” (John man, World of Mathematics, mids numbered 11 through Maynard Keynes, “The 1988). 20. The alien selects a pyra- mid at random, and it hap- pens to be Pyramid 13. The Walrus and Carpenter. alien takes a long breath. He Carpenter: You would agree that the probability of picking 1 now randomly picks another from the first 10 numbers is 1/10? pyramid from the remaining collection. Is this pyramid Walrus: Of course. more likely to be even than C: And that the probability of picking 1 from the first 100 odd? (See Answer 5.24.) numbers is 1/100. W: Of course. Rabbit math. Inside a cage C: And that as you increase the number to be selected from, is a brown rabbit and a polka- the probability decreases to zero in the limit? dot rabbit, and each rabbit W: (after a pause) Yes, and this logic applies to any number. species generally produces members that have an equal C: Would you also agree that the probability of picking 1 or 2 chance of being male or from the first 10 numbers is 2/10? That the probability of female. The rabbits listen to picking one or another is the sum of the probabilities of classical music all day as they picking either? enjoy their life of leisure. W: (pause) Yes, I would. Today, we learn that at least one of the rabbits is male. C: And, therefore, that the probability of picking 1 or 2 from What is the probability that the set of all integers is thus the sum of zero and zero—in both rabbits are male? (See other words, zero? Answer 5.25.) W: That must be so. C: And that furthermore, the probability of picking any of a set of alternative integers from the set of all integers is Card deck cuts. Danielle zero? opens a brand new deck of playing cards containing 52 W: Of course. The probability of picking any one of the inte- normal cards. She tells Craig, gers from the set of all integers is also zero. “I am not a good card shuf- C: So pick an integer and tell it to me. fler. I will therefore cut the deck at random depths, sev- The Walrus is struck dumb. eral times, by taking a ran- (Graham Cleverley, personal communication, 2004). dom number of cards off the

218 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 219

top of the deck and placing Car sequence. You go into Tony’s spacious garage, located them under the remaining in an upper-class section of Perth Amboy, New Jersey. He has deck. I want to be fair. Even 10 cars, made in the years 1960, 1961, 1962, 1963, 1964, though my hand will get 1965, 1966, 1967, 1968, and 1969. tired, I will do this either ten times, a hundred times, or a thousand times to try to ensure that the deck is rea- The cars are arranged neatly in a row and in random date sonably shuffled.” order. What are the chances that the three cars nearest you How many times does have dates in descending order? (Here is one example of Craig want Danielle to cut dates being in descending order: 1968, 1966, 1965.) the deck to ensure the great- (See Answer 5.28.) est randomization? (See Answer 5.26.)

of the following scenario to probability, P1 or P2, is Russian American gambit. A Marilyn vos Savant, who has greater? Or are they both the woman and a man are sitting an I.Q. score of 228—the same? (See Answer 5.29.) in metal chairs, facing one highest ever recorded for an another. One person is Amer- adult. Here’s my variation: ican and the other is Russian, Bill and Monica are play- AIDS tests. You work for a but we don’t know which is ing bridge, and they always computer company. Suppose which. tell the truth. After a deal, a that about 2 percent of the “I am an American,” the third person asks Monica, people in your company have woman says. “Do you have a king in your AIDS. A nurse named Julia “I am Russian,” the man hand?” tests all of the people in your says. She nods. At this point, company for AIDS, using a A robot in the room tells there is a certain probability test with the following char- you, “At least one person is that her hand holds at least acteristics. The test is 98 per- lying.” Assume that the robot one other king. Call this cent accurate, which we

is telling the truth. My ques- probability P1. define as follows. If the indi- tion: Which of the humans is After the next deal, the vidual has AIDS, the test will lying? (See Answer 5.27.) third person again asks Mon- be positive 98 percent of the ica, “Do you have a king of time, and if the person spades?” Monica nods. doesn’t have AIDS, the test Quantum kings and the Again, there is a certain prob- will be negative 98 percent of death of reality. Martin Gard- ability that Monica’s hand the time. ner, a master of mathematical holds at least one other king. You are tested, and, sadly,

puzzles, once posed a variant Call this probably P2. Which the test turns out positive.

Probability: Take Your Chances 219 c05.qxd 5/16/05 2:50 PM Page 220

Woman in a black dress. A woman in a black dress legs; one robot has 100 legs. approaches you with three cards; each card is red on one side The robots are usually quite and black on the other. The cards are randomly positioned. happy and enjoy the added She places the three cards on the table. What is the probabil- mobility the multiple legs ity that no two consecutive reds show? For her next puzzle, give them. Today, however, she places n cards on the table. What is the probability that they are jealous because no two consecutive reds show? (See Answer 5.31.) they hear that their creator might produce a robot with 1,000 legs. You lose your health insur- dom chord, select one point “I think it is interesting,” ance. Would you conclude on a circle by choosing a ran- says Mr. Hundred, “that none from this that you are highly dom angle from the center of us has the same number of likely to have AIDS? (See and draw a line from this legs that our names would Answer 5.30.) point to a second point on the suggest.” circle that you chose by “Who the heck cares?” selecting another random replies the robot with 90 legs. Great discoveries. “Sixty angle.) (See Answer 5.32.) How many legs does Mr. percent of new great discov- Ninety have? Amazingly, it is eries were made by an out- possible to determine the sider to the field within the Bart’s dilemma. Nelson is a answer, despite the little first year he was in the field” mean, but very honest, bully. information given. (See (Raymond Damadian, the He captures Bart and tells Answer 5.34.) inventor of the first human him, “I will paint you red if body scan with magnetic res- you speak the truth or will onance imaging, “Scanscam,” shave your head if you lie.” Mathematical reality. “We New York Times Magazine, Obviously, Bart does not look feel certain that the extrater- 2003). forward to either of these odi- restrial message is a mathe- ous choices. Bart may speak matical code of some kind. Random chords. What is some words or remain silent. Probably a number code. the probability that a ran- What would you advise Bart Mathematics is the one lan- domly selected chord of a cir- to do? (See Answer 5.33.) guage we might conceivably cle is shorter than the radius have in common with other of that circle? If you were a forms of intelligent life in the gambling person, should you Multilegged creatures. universe. As I understand it, bet that a randomly selected Three robots named Mr. there is no reality more inde- chord is smaller than the cir- Eighty, Mr. Ninety, and Mr. pendent of our perception and cle’s radius? (A chord is a Hundred are crawling in a more true to itself than math- line joining any two points on dark laboratory. One robot ematical reality” (Don the circle. To create the ran- has 80 legs; one robot has 90 DeLillo, Ratner’s Star, 1976).

220 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 221

Three fishermen. Three but I tell you this: At least Floating boat game. The Portuguese fishermen have one of the mummies is miss- sun is shining on the Missis- three new buckets. One ing a tail. What is the proba- sippi River, and your three bucket holds just flounder, bility that the cat is missing friends are playing with the other just mackerel, and a tail?” paper boats. Once a person the third both flounder and You think about this for a puts a boat in the water, there mackerel. The fishermen moment, staring at the is a 50 percent chance that it label their three buckets shrouded figures. The Egyp- will float and a 50 percent “flounder,” “mackerel,” and tologist says to you, “If you chance that it will immedi- “flounder and mackerel.” guess correctly, I will reward ately sink. Don, Melissa, and Sadly, all three labels are you by giving you the golden Carl place their boats on the incorrect. staff of King Tut.” Can you river in succession. First, Don The buckets are closed. solve this? (See Answer puts his boat on the water. How many fish does a fisher- 5.36.) Next, Melissa. Finally, Carl. man have to look at to cor- The winner will be the first to rectly label the buckets? (See float (i.e., not sink). What are Answer 5.35.) Heart attack. A surgeon in their respective chances of a dimly lit operating room winning? (Assume that the removes five pulsating hearts game is over after Carl’s Mummy madness. An from five patients. She places turn, and the game stops Egyptologist is examining the hearts back in the bodies when someone wins.) (See the mummies of an ancient at random. What are the Answer 5.39.) cat, a hyena, and a mouse. chances that only four hearts He turns to you. “You can’t are returned to their correct see the mummies clearly, bodies? (See Answer 5.37.) Clown’s dreams. A friendly clown with purple hair places two aquaria on your kitchen Sushi play. Pam and Nick each have ten pieces of sushi, table. One contains grape branded with numbers 1 through 10. juice, the other vinegar. Both aquaria contain exactly the (Pam) same volume of liquid. The clown takes a glass of vinegar (Nick) from the vinegar-filled aquar- Pam gives sushi piece 2 to Nick as a gift. Nick now has 11 ium and mixes it into the pieces of sushi and withdraws a piece at random from his juice-containing aquarium, collection and places it in a bright red box. He turns to Pam. then he takes a glass from the “I can only tell you this. The sushi piece in the box does not juice aquarium and mixes it have an odd number on it.” What are the chances that the with vinegar. Both aquaria sushi piece has a 2 on it? (See Answer 5.38.) are now “contaminated.” If

Probability: Take Your Chances 221 c05.qxd 5/16/05 2:50 PM Page 222

you can determine which Nontransitive dice. Here is an impressive game to try on aquarium is more contami- your friends, based on a recent discovery made by the statisti- nated, the clown will leave cian Bradley Efron of Stanford University. Magic dice are dis- your home and stop asking played in figure 5.3 so that you can clearly see their six faces. this silly question. Does the The dice demonstrate a probability that, at first, seems to defy vinegar now contain more logic and can be used by the unscrupulous to make millions of juice than the juice does vine- dollars. gar, or the other way around? (See Answer 5.40.)

Lottery. Over the last ten years, you play the same lot- tery number and never win. Would you have a better chance of winning if you played different numbers instead of always playing the same number? (See Answer 5.41.)

Fossil lock. You want to send a valuable fossil to your friend Homer. You have a padded sphere that can be fitted with multiple locks to lock the sphere’s door, and you have several locks and their corresponding keys. Figure 5.3 Nontransitive dice. However, Homer owns some locks, but he does not have Let’s assume that Bill and Monica are playing a game with any keys to your locks, and if these dice. Bill asks Monica to select any one of the four dice. you send a key in an unlocked Bill selects another. They throw the dice at the same time for a sphere, the key could be predetermined number of times. On each toss, the person with copied en route. How can you the highest number wins the throw. Bill can almost always send the fossil securely? beat Monica in a game of ten throws. After each game, Mon- Assume that a key is required ica is free to choose another die, and Bill then chooses a die. to both lock and unlock a Whichever die Monica selects, Bill always wins. How can that lock. (See Answer 5.42.) be? (See Answer 5.43.)

222 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 223

Sublime math. “There was fist of the real, inside the Black versus red. Brad is a blithe certainty that came velvet glove of airy mathe- staring at two 1-dollar bills. from first comprehending matics” (Gregory Benford, One is painted black on both the full Einstein field equa- Timescape, 1980). sides. The other is painted tions, arabesques of Greek black on one side and left letters clinging tenuously to alone on the other. His the page, a gossamer web. Farmer McDonald’s moose. friend Jennifer randomly They seemed insubstantial Farmer McDonald’s male selects a bill and shows it to when you first saw them, a moose brings him 100 pairs Brad. He sees a black bill. string of squiggles. Yet to of red gloves and 100 pairs of What’s the probability that follow the delicate tensors blue gloves and accidentally the other side is black? If as they contracted, as the drops them into a stinking Brad were a gambler, should superscripts paired with sewer. “Darn!” McDonald he bet that the other side is subscripts, collapsing mathe- says. In complete darkness, black? (See Answer 5.46.) matically into concrete how many gloves must he classical entities—potential; take from the sewer in mass; forces vectoring in a order to be sure to get a pair The language of math. curved geometry—that was a that match? (See Answer “The Universe is a grand sublime experience. The iron 5.45.) book which cannot be read until one first learns to com- prehend the language and become familiar with the Tic-tac-toe. Despite the apparent simplicity of the game characters in which it is of tic-tac-toe, sometimes the best strategy from different composed. It is written in configurations can be difficult to see. Many players will seek the language of mathematics” a draw against a weaker player, instead of playing to maximize (Galileo, Opere Il Saggiatore, their chances of benefiting from a weak move. For example, 1623). assume that you are X in the following unusual opening. What is your best move after O has moved into position 8? (See Answer 5.44.) Brunhilde’s moose. Brun- hilde throws a dart twice at the word moose, which hangs 1 X 3 on her living room wall. Assume that Brunhilde’s dart 4 5 6 always lands on some letter, that each letter is equally likely to be hit, and that 7 O 9 having a dart on a letter doesn’t affect whether the

Probability: Take Your Chances 223 c05.qxd 5/16/05 2:50 PM Page 224

next dart will land on the Chimps and gibbons. Three blindfolded. One of the pri- letter. What is the chance that primates approach you. Their mates, chosen at random, Brunhilde will hit the letter names are Mr. Chimp Gib- truthfully says, “My name is O followed by another O? bon, Mr. Chimp Chimp, and Chimp,” but you don’t know (See Answer 5.47.) Ms. Gorilla Lemur. You are whether he is referring to his first or last name. (Assume that a primate is equally likely to call out his first or Consider the following simple, 1 Board game of the gods. last name.) Are the odds ⁄2, yet diabolic, board game, played by Aphrodite and Apollo 1 ⁄3, or some other value that in a magnificent palace on the heights of Mount Olympus the primate’s full name is (figure 5.4). Chimp Gibbon? (See Answer 5.49.)

Cars and monkeys. Andrea, Barbara, and Claire are driv- ing red sportscars with leather seats. Each person is driving the car of one friend and has the pet monkey of another. The woman who has Claire’s monkey is driving Barbara’s car. From this amazingly scant information, can we determine who is driving Andrea’s car? (See Answer 5.50.) Figure 5.4 Board game of the gods.

Players move from 1 to 2 to 3 to 4 to 5 and finally to 6. All movements are on numbered squares only, and unnumbered Guessing numbers. You are connecting ramps in the diagram are ignored. The toss of a with your friends Bill and coin determines the movements on the board. A tail means Julie, gazing at a large chunk that one moves by advancing one square. A head means to of petrified wood. “Earth is advance two squares. Play starts with the player’s piece on roughly 5 billion years old,” square zero, prior to the first toss. On average, how many coin you say. “Julie, randomly tosses will it take for a player to win, that is, to reach or go write down a year between 0 beyond the finishing 6 square? (See Answer 5.48.) and 5 billion.” You turn to

224 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 225

Bill. “I bet that my guess of Robotic ants. A large robot ant named “Punisher” places Julie’s year will be closer to you in a central chamber in his ant colony, miles beneath Man- the year than your guess. hattan. Five tunnels radiate away from the chamber, which is You’ll have one guess, while I filled with eggs and larvae (figure 5.5). Four of the five tunnels have two, but to make up for lead to deadly warrior ants. Only one leads upward to Fifth my slight advantage, not only Avenue and freedom. Punisher tells you to pick a tunnel. You can you guess first, but I’ll randomly pick Tunnel 1 to travel through. But wait! Punisher, buy you pizza every day for who knows where each tunnel leads, truthfully tells you that the next month if I lose. If I Tunnel 5 terminates in a warrior ant. He gives you the oppor- win, you’ll buy me pizza.” tunity to change your mind and choose a tunnel other than What strategy do you use Tunnel 1. You can assume that whenever Punisher takes pris- to win? Would you use the oners, he always points to a tunnel that terminates in a warrior same strategy if it meant that ant. Should you forget your choice of Tunnel 1 and choose you would lose or gain a another tunnel? (See Answer 5.53.) great deal of money? (See Answer 5.51.)

Flying numbers. “Arith- metic is where numbers fly like pigeons in and out of your head” (Carl Sandburg, “Arithmetic,” 1993).

Martian identities. In a large crater on Mars, each Martian carries an identifica- tion card. Each Martian’s card is different and contains just one letter and one 1-digit number, including zero. How many Martians at most live in the crater? (Assume that the Figure 5.5 Tunnels of madness. Martian number system and alphabet are the same as ours.) (See Answer 5.52.)

Probability: Take Your Chances 225 c05.qxd 5/16/05 2:50 PM Page 226

Venusian insects. On beau- Where are the sea horses? Consider a strange aquarium with tiful Venus, 85 percent of the five tanks connected by tubes (figure 5.6). You add thousands Venusians eat beetles, 80 of sea horses to Chamber A, indicated by the hand. Assume percent eat wasps, 42 percent that the sea horses are swimming randomly through the struc- eat ants, 97 percent eat crabs, ture, like mindless molecules of gas filling a balloon. Also and 96 percent eat oysters. assume that the sea horses are much smaller than those pic- None of the Venusians eat all tured schematically in the diagram. Where do the most sea five items, but they all eat four horses reside after a long time? How would your answer of the five foods. What per- change if there were an additional tunnel connecting Chamber centage of the Venusians eat C to D? (See Answer 5.56.) insects? (See Answer 5.54.)

Domain names. In one of my novels, a character makes money by buying every five- letter Internet domain name, like doggy.com or lions.com, and then selling them to peo- ple a year later. Just how many five-letter domain names are there? Will we run out of domain names in the future? (See Answer 5.55.)

The physics of reality. “I think that modern physics has definitely decided in favor of Plato. In fact the smallest units of matter are not physi- cal objects in the ordinary sense; they are forms and ideas which can be expressed unambiguously only in math- Figure 5.6 Where are the sea horses? ematical language” (Werner Heisenberg, quoted in “Physics for the Fatherland,” 1992).

226 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 227

Lotteries and superstition. Coin flips and the paranormal. Your friend approaches with a Bill and Monica are partici- coin. He flips it several times. We expect 50 percent heads and pating in a lottery in which 50 percent tails. How many heads in a row would cause an six numbers in the range of ordinary person to say, “This is a biased coin,” or that some- 13 to 16 are drawn at random. thing was amiss? How many heads in a row would cause a (In other words, the numbers mathematician to say, “This is a biased coin”? drawn can be 13, 14, 15, and Do people who believe in the paranormal respond differ- 16. ) You have to pick all six ently than skeptics do in experiments of this nature? (See numbers in the correct order Answer 5.58.) to win a large bag of extraor- dinary blue sapphires from Sri Lanka. open this top lock. A lock on the casino considerably” You hear thunder in the the bottom of the jaw has two (Samuel Kotz and Donna F. distance. Monica gasps, buttons of the same kind. Stroup, Educated Guessing, “I’m superstitious and for This second lock has its own 1983). the next year will avoid the combination, which may or number 13.” Bill says, “If may not be the same as the you do that, you’ll decrease top lock’s combination. You Flies in a cube. I place your chances of winning. need to get both combina- 1,000 large flies in a cube You’re eliminating lots of tions right to open the mouth. that is one mile on a side. potential choices.” Assume that you will ran- How would you attempt to Is Bill right or wrong? domly try positions. compute the average distance Will Monica’s superstition What are the odds that you traveled by the flies between put her at a disadvantage? will find the right combina- collisions with one another, Justify your answer. Assume tion on the first try to open assuming that the flies fly that after a number is drawn, the mouth? (See Answer randomly? (Also assume it is replaced and has a 5.59.) that each fly can be modeled chance of being drawn again. as a sphere with a half-inch In other words, each number diameter.) (See Answer drawn can be 13, 14, 15, or Educated guessing. “Con- 5.60.) 16. (See Answer 5.57.) sider a dramatic moment at the casino in Monte Carlo on August 18, 1913. A roulette Proportion. “There is no You are trying Robot jaws. wheel, when spun, has an excellent beauty that hath not to open a robot’s mouth that equal chance of showing a some strangeness in the pro- has two push buttons on the red or black number. On this portion” (Francis Bacon, Of upper lip. They can each tog- evening, black came up 26 Beauty, c. 1601). gle between ten positions. times in a row. . . . A frantic The proper positions will rush to bet on red enriched

Probability: Take Your Chances 227 c05.qxd 5/16/05 2:50 PM Page 228

Boomerang madness. I toss Apes in a barrel. A man Napoleon and Churchill. two boomerangs at the same places thirty apes in a large Napoleon and Churchill are time toward twenty maple barrel. Your ape is named sitting in an underground trees. What’s the probability Tiffany. The apes are bunker, three miles south of of both boomerangs getting released, one at a time, and London. Today, they are toss- caught in any one tree the last ape to emerge is the ing a coin in the air. They are together? (Assume that my winner. Thus, if Tiffany betting the fate of the world toss is random, that the emerges last, you win. What on a particular triplet that boomerangs are equally are the chances of you win- might result from three suc- likely to end up in any tree, ning? (Assume that the apes cessive fair tosses of the coin. and that the boomerangs emerge in a random order.) Napoleon picks HHH and always end up in some trees.) (See Answer 5.62.) Churchill picks THH. They (See Answer 5.61.) keep tossing coins until either Napoleon’s or Churchill’s triplet has appeared. The Dark hallway and vapor men. You are traveling down a long triplets may appear in any hallway. Strange scratching sounds come from beneath the three consecutive tosses; for floor, and scarlet beetles climb the walls. Along the hallway example, the THH triplet are ten shadowy men spaced roughly at equal lengths along might start in position one, the hallway (figure 5.7). two, or three in the long sequence of attempts. The winner is the player whose triplet appears first. Whom do you pick as the winner? (See Answer 5.64.) Figure 5.7 Dark hallway and vapor men.

Assume that each time you pass a man, he touches your hand. The mine of math. “Mathe- Each times he touches your hand, you have a 50 percent matics may be likened to a chance of being vaporized. large rock whose interior The world is offered total peace and prosperity if you can composition we wish to correctly guess which man will vaporize you as you walk examine. The older mathe- down the hallway. If you were a gambling person, which per- maticians appear as persever- son do you think will vaporize you? How many attempts ing stone cutters slowly would you predict it would require for a person to walk from attempting to demolish the one end of the hallway to the other without being vaporized rock from the outside with (assuming that the person is reconstituted each time so that he hammer and chisel. The later or she can try again and again until safely making it to the mathematicians resemble end)? (See Answer 5.63.) expert miners who seek

228 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 229

vulnerable veins, drill into Factors. A wise man Mathematical existence. these strategic places, and wearing a long flowing robe “One cannot escape the feel- then blast the rock apart with chooses 3 integers at random ing that these mathematical well placed internal charges” from 1 to 10100. What is the formulae have an independ- (Howard Eves, Mathematical probability that no common ent existence and an intelli- Circles, 1969). factor will divide them all? If gence of their own, that they you can’t tell me this exactly, are wiser than we are, wiser what is your estimate? (A even than their discoverers, Triangles and spiders. Yo u divisor of a number is a that we get more out of them are visiting a moon of Uranus, number that divides n—also than we originally put in to where a spiderlike alien ran- called a factor.) (See Answer them” (Heinrich Hertz [com- domly throws a meatball at a 5.67.) menting on Maxwell’s equa- wall on which is drawn a large tions], quoted in Eric Bell, triangle with vertices at (0,0), Men of Mathematics, 1937). (0,4), and (5,0) (figure 5.8). The meatball sticks to the triangular target. What is Card arrangements. The 52 cards in a playing card deck can the probability that the be arranged in 52! different ways, or x-coordinate of the meatball 8065817517094387857166063685640376 is less than the y-coordinate? 6975289505440883277824000000000000 (See Answer 5.65.) or about 8.07 × 1067. This is much larger than the number of atoms that make up Earth.

Alien Patterns. How many patterns of n creatures in a row exist if every alien is next to at least one other alien? We are to choose from an auditorium filled with aliens and humans. For example, with four creatures, there are seven patterns: Figure 5.8 Triangles and spiders. Stylometry. What is sty- lometry, and who wrote The In general, if P(n) is the number of patterns of n creatures, Royal Book of Oz, the fif- then the ratio P(n + 1)/P(n) approaches 1.754877666247 teenth book in the Oz series? . . . , a solution to the equation x3 = 2x2 – x + 1 (in John Con- (See Answer 5.66.) way and Richard Guy, The Book of Numbers, 1996, p. 205).

Probability: Take Your Chances 229 c05.qxd 5/16/05 2:50 PM Page 230

Plato’s choice. Sitting It turned out, to Zeus’s dis- Plato’s astute choice beneath the shade of the may, that the mortal at the top counted out all of the mortals Parthenon in ancient Greece who was counted as 1 was first. What interval will count were five mortals and five none other than the all-wise out the five gods first, and gods who found five emeralds Plato. what will count out the five (figure 5.9). They soon began “Wait!” Plato cried. “I mortals first? (See Answer to fight about who should get insist on my right to choose 5.68.) the jewels. the interval of decima- Zeus bellowed, “We’ll tion.” arrange ourselves in a circle, and count out individuals by a fixed interval, and give an emerald to an individual as he leaves the circle.” Zeus was clever and arranged the circle so that by counting a certain mor- tal as “one,” he could count out all the gods first. The arrangement of gods and mortals is shown in figure 5.9, which follows a sequence: M M M G G G M G G M. The count starts with the mortal at the top and continuously goes clock- wise. Each individual who is “counted out” steps out of the circle, gets an emerald, and is not included in the count there- after. For example, if the interval of “decimation” is 5, the first three individuals to get emeralds would be: god 5, mortal 10, and god 6. So far, pretty good for the gods. Figure 5.9 Plato’s choice.

230 A Passion for Mathematics c05.qxd 5/16/05 2:50 PM Page 231

Kravitz arrays. Sidney [2003]: 304): In how many digit immediately to its right Kravitz once asked in the ways can we place the digits 1 and smaller than the digit Journal of Recreational to 9 into a 3-by-3 array so that immediately below it? There Mathematics (31, no. 4 each digit is smaller than the are 42 such arrangements.

Probability: Take Your Chances 231 c05.qxd 5/16/05 2:50 PM Page 232 1 2 3 c06.qxd 5/16/05 2:54 PM Page 233 4 5 66 BigBig NumbersNumbers andand InfinityInfinity

N WHICH WE EXPLORE VERY LARGE NUMBERS, THE EDGES OF COMPREHENSION, I infinity, the Funnel of Zeus, the infinite gift, the omega crystal, the Skewes number, the Monster group, Göbel’s number, the awesome quattuordecillion, the Erdös-Moser number, Archimedes’ famous “Cattle Problem,” classic para- doxes, Gauss’s “measurable infinity,” and Knuth’s arrow notation.

Infinity is an endless train weaving its way through the landscape of reality. But who made the train tracks, and where is the conductor?

233 c06.qxd 5/16/05 2:54 PM Page 234 c06.qxd 5/16/05 2:55 PM Page 235

Infinity and God. “The its of the human imagination, Disembodied intelligence. study of the infinite is much which is why they have long “A formal manipulator in more than a dry, academic proved elusive, difficult to mathematics often experi- game. The intellectual pursuit define, and harder still to ences the discomforting feel- of the Absolute Infinite is a manipulate. Modern comput- ing that his pencil surpasses form of the soul’s quest for ers now possess enough him in intelligence” (Howard God. Whether or not the goal memory and speed to handle W. Eves, Mathematical is ever reached, an awareness quite impressive figures. For Circles, 1969). of the process brings enlight- instance, it is possible to mul- enment” (Rudy Rucker, Infin- tiply together million-digit ity and the Mind, 1982). numbers in a mere fraction of Large law. What is the a second. As a result we can “law of truly large numbers”? now characterize numbers (See Answer 6.2.) Counting. Assuming about which earlier mathe- that you count a number a maticians could only dream” second, how long would it (Richard E. Crandall, “The The ultrahex. The follow- take you to count to a billion Challenge of Large Num- ing is an extremely large (1,000,000,000)? (See bers,” 1997). number: Answer 6.1.) 6 66 666 Wonders. “He who won- Large numbers. “Large ders discovers that this in Although humanity may numbers have a distinct itself is a wonder” (M. C. never be able to compute this appeal, a majesty if you will. Escher, The Graphic Work, and write down all its digits, In a sense, they lie at the lim- 1992). what can we say, if anything, about its last digit? (See Answer 6.3.) Decillion. One decillion is 1 followed by 33 zeros: 1000000000000000000000000000000000 Life experiences. The math 33 or 10 . It’s the largest power of 10 known to humans that can fanatic Robert Munafo says be represented as the product of two numbers that themselves that 101018 is an estimate of contain no zero digits: the number of possible life 1033 = 233 × 533 = experiences a person can have, based on a sensory × (8,589,934,592) (116,415,321,826,934,814,453,125) bandwidth of 1010 bits per I do not think that humanity will ever be able to find a larger second. power of 10 that can be represented as the product of two numbers that themselves contain no zero digits.

Big Numbers and Infinity 235 c06.qxd 5/16/05 2:55 PM Page 236

The wonderful quattuordecil- Definition of googolplex. A “googolplex” is equal to 10googol lion. A few favorite number or 1010100; that is, 1 followed by a googol of zeroes. Like names: 1021 is a sextillion; a googol, the term googolplex was coined by the mathematician decillion is 1033; 1045 is a Edward Kasner in conversations with others. quattuordecillion; 1060 is a The software engineer Frank Pilhofer has tried to put a novemdecillion; and 1063 is a googolplex in perspective when he writes, “[Compared to a vigintillion. googolplex], a googol is nothing special; the total number of elementary particles in the known universe is about 1080. If this space was packed solid with neutrons, so there was no empty space anywhere, there would be about 10128 particles in The ubiquitous 7. How it. This is quite a lot more than a googol. But you simply can- many numbers have a 7 in not express the kind of googolplex’s numerical dimension with them, if we consider all the terms other than ‘10 to the power of something.’ . . . If one numbers between 1 and takes a moderately large fraction of the mass of our Local googolplex? (See Answer Group of galaxies, puts it into a black hole, and asks how 6.4.) many states there are with a similar macroscopic appearance, one would get a googolplex” (Frank Pilhofer, “Googolplex,” www.fpx.de/fp/Fun/Googolplex/, with material from Don Knuth notation for ultra-big Page, CIAR Cosmology Programme, Theoretical Physics numbers. In 1976, the mathe- Institute, University of Alberta, 2002). matician and computer scien- tist Donald Knuth published an amazing arrow notation to Big number. “I believe there are represent huge numbers. Thus 15,747,724,136,275,002,577,605,653,961,181,555,468,044, 3 ↑ 3 is simply 3 cubed or 33; 717,914,527,116,709,366,231,425,076,185,631,031,296 3 ↑↑ 3 means 3 ↑(3 ↑ 3) 3 protons in the universe and the same number of electrons” or 33 . The arrows always (Sir Arthur Eddington, The Philosophy of Physical Science, “associate to the right,” so 1939). that a ↑ b ↑ c ↑ d . . . means a ↑(b ↑(c ↑ d)). . . . Here’s another example: 2 ↑ ↑ ↑ 3 = 2 ↑↑2 ↑↑2 = 2 ↑↑4 = The magnificent 7. As you ending with some huge num- 65,536. Using this logic for may have gleaned, I love the ber like googolplex. You get making huge numbers com- number 7. Consider the fol- into a spaceship and journey pact, do you think that 3 ↑↑4 lowing scenario. You are far away, then shoot a dart represents a number that is alone on an infinite plane, randomly at the integer list. smaller than the number of examining a list of integers What is the chance that you atoms in the visible universe? in numerical order, starting will hit a number with a 7 in (See Answer 6.5.) at 1, 2, 3, 4, 5, 6, . . . and it? (See Answer 6.6)

236 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 237

Computers and big numbers. Four digits. The German mathematician Carl Friedrich What is the largest integer Gauss (1777–1855) called number that a future com- ℑ= 9 99 puter could in principle work 9 with or yield as a result of a “a measurable infinity.” The number has 10369693100 digits, a computation? (The numbers number far larger than the number of atoms in the visible uni- are to be stored in binary for- verse. If typed on paper, ℑ would require 10369693094 miles of mat as a string of 0s and 1s.) paper strip, according to Joseph Madachy. If the ink used in (See Answer 6.7.) printing ℑ was a one-atom-thick layer, there would not be enough total matter in millions of our universes to print the number. Shockingly, the last 10 digits of ℑ have been com- Eternity. “That’s the prob- puted. They are 1,045,865,289. lem with eternity, there’s no telling when it will end” (Tom Stoppard, Rosencrantz 1597 problem. Consider the formula yx=+15972 1 . Is and Guildenstern Are Dead, y ever an integer for any integer x greater than 0? (Hint: Don’t 1967). bother to solve this unless you use a computer.) (See Answer 6.9.)

Three digits. The number 9 Θ = 99 is the largest number means of an infinite list, continuum hypothesis sug- that can be written using only whereas it is not possible to gests that there are no sets three digits. The number Θ count all the real numbers by intermediate in size between ℵ contains 369,693,100 digits. ℵ 0 means of such a list. (See 0 and 2 . In other words, If typed on paper, it would Answer 6.8.) the hypothesis states that require about 2,000 miles of there is no set whose size is paper strip. Since the early strictly between that of the 1900s, scientists have tried to Continuum hypothesis. As integers and that of the real determine some of the digits we discussed in chapter 2, the numbers. We can map the of this number. Fred Gruen- total number of possible inte- algebraic numbers onto the berger recently calculated the gers or possible rational num- naturals, and the cardinality last 2,000 digits and the first bers corresponds to the of the algebraic numbers will 1,200 digits. smallest level of infinity, usu- be the same as for naturals. ℵ ally denoted as 0. The num- Here are some cool rules ber of possible real numbers involving ℵ : ℵ 0 Counting every rational is 2 0, which is larger than ℵ = 1 + ℵ number. Show that it is theo- ℵ . (See Cantor’s diagonal- 0 0 0 ℵ ℵ ℵ retically possible to count all ization process in answer to 0 = 0 + 0 the rational numbers by ℵ ℵ ×ℵ the previous factoid.) The 0 = 0 0

Big Numbers and Infinity 237 c06.qxd 5/16/05 2:55 PM Page 238

Mathematical theology. Manifold—the only journal ever Infinity and divinity. published entirely on the subject of mathematical theology— “Cantor was careful to stress began as a publication created by several graduate students at that despite the actual infinite the University of Warwick in England. The journal started in nature of the universe, and 1968 and ran for twenty issues, until 1980. Tim Poston, a the reasonableness of his con- researcher at the Institute of Systems Science at the National jecture that corporeal and University of Singapore, led me to several interesting articles aetherical monads were regarding God and mathematics that appeared in Manifold. related to each other as pow- For example, in Manifold 6 (1970, pp. 48–49), Vox Fisher ers equivalent to transfinite ℵ ℵ published “Ontology Revisited,” a fascinating paper on a cardinals 0 and 1, this did mathematical proof of God’s existence. The paper starts, not mean that God necessar- ily had to create worlds in Theorem: The axiom of choice is equivalent to the existence this way” (Joseph Dauben, of a unique God (St. Anselm, Aquinas, and others). Georg Cantor, 1990). Proof: Partially order the set of subsets of the set of all properties of objects by inclusion. This set has maximal ele- ments. God is by definition (due to Anselm) a maximal ele- Mathematics and God. As I ment set: said in chapter 1, in many ways, the mathematical quest God God {existence}, so God = God {existence} to understand infinity parallels ∴ God exists. mystical attempts to under- stand God. Of course, there are ′ Uniqueness: If God and God are two gods, then God also many differences between ′ ∴ ′ God God (due to Aquinas), and God God = God, mathematics and religion. For ∴ ′ ′ ∴ ′ God God and similarly God God, God = God . example, while various reli- ∈ gions differ in their beliefs, Given a set {Aα}α∈R of sets, let the unique God pick xα α∈ there is remarkable agreement Aα for each A. (He can do so by omnipotence.) Then among mathematicians. ∈ Philip Davis and Reuben {}xAαα∈R ∏ α α∈R Hersh, in The Mathematical Experience, suggest that “all as required. religions are equal because all are incapable of verification or justification.” Similarly, Infinite awe. “Infinity com- Infinite points. The number certain valid branches of monly inspires feelings of of points on a line, a plane, or mathematics seem to yield awe, futility, and fear” (Rudy a 3-D space are all the same contradictory or different ℵ Rucker, Infinity and the and are equal to C = 2 0. results, and it seems that there Mind, 1982). is not always a “right” answer.

238 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 239

1 1 Feeding the spirit. “The nature. Nature provides infi- 1 second = ⁄2 second + ⁄4 sec- 1 single most compelling rea- nite possibilities all the time. ond + ⁄8 second . . . son to explore the world of But because we have suffered Note that the being has mathematics is that it is beau- through this world of wars stopped typing after 1 sec- tiful, and pondering its and woes, we sometimes fail ond. His eyes glow a bright intriguing ideas is great fun. to get this. We see the world green. He is finished and I’m constantly perplexed by as a little stingy at times” smiling. how many people do not (Fred Wolf, Parallel Uni- What is the last letter that believe this, yet over 50,000 verses, 1990). was typed at the end of 1 sec- professional mathematicians ond? You seem to have all the in America practice their necessary information to trade with enthusiasm and Infinity keyboard. Imagine determine whether the last fervor. . . . To study the deep that an extremely agile letter is either a J or an H. truths of number relation- (supernatural) being alter- What is your answer? (See ships feeds the spirit as surely nately presses the J key and Answer 6.11.) as any of the other higher the H key on your PC key- human activities of art, board. The being presses the 1 music, or literature” (Calvin J key for ⁄2 of a second, then 1 Numerical evidence. It was Clawson, Mathematical Mys- it presses the H key for ⁄4 of a once conjectured that 313 × teries, 1996). second, then it presses the J 3 3 3 1 (x + y ) = z has no positive key for ⁄8 second, the H key 1 integer solutions; however, it for ⁄16 of a second, and so on. was discovered that the Infinite surface. The Greek It turns out that this infinite 1 1 1 smallest counterexample has God Zeus hands you a gallon series ( ⁄2 + ⁄4 + ⁄8 + . . . ) adds numbers with more than of red paint and asks how you up to 1. Therefore, at the end 1,000 digits! would completely paint an of 1 second, the keys have infinite surface with this gal- switched an infinite number lon of paint. What would be of times because an excellent answer to win Zeus’s admiration? What sur- face would you choose? (Hint: Lengthening horizons. “The heavens call to you, and circle I am thinking of a shape that about you, displaying to you their eternal splendors, and your resembles a horn or a funnel.) eye gazes only to earth” (Dante, Purgatorio, 1319). (See Answer 6.10.)

Long journeys. “We live on a placid island of ignorance in I like infinity. “I like infin- the midst of black seas of infinity, and it is not meant that we ity. I believe that infinity is should voyage far” (H. P. Lovecraft, The Call of Cthulhu, just another name for mother 1928).

Big Numbers and Infinity 239 c06.qxd 5/16/05 2:55 PM Page 240

The classic barber paradox. is positive for all values of x irritating, and therefore prob- Suppose there is a village ≤ 1012 and probably far ably basically correct” (From with only one barber. Every beyond. Here, π(x) is the David Ruelle, Chance and day, this barber shaves all number of prime numbers Chaos, 1993). men, and only these men, less than or equal to x. This who do not shave themselves. massive amount of “numeri- But who shaves the barber? If cal” evidence previously led The infinite window. The he does shave himself, then researchers astray; however, it White Queen was admiring he shouldn’t shave himself. is now known that a sign her reflection in a window This is the paradox. change does occur, but all that consisted of alternating The barber paradox, attrib- that is currently known is that pink and green panes, stuck uted to Bertrand Russell, is a the first sign change occurs together with no frames. No × 1165 paradox with importance to below 1.65 10 . matter how hard Alice peered, mathematical logic and set she could see no end to the theory. It is a paradox Mathematics and sex. window, not to the right, not because such a barber can “What is the origin of the to the left, not upward. neither shave himself nor not urge, the fascination that She remarked as much. shave himself, yet at the same drives physicists, mathemati- The Queen replied, “Yes, time must shave himself if he cians, and presumably other isn’t it marvelous? Every doesn’t. scientists as well? Psycho- pane has another pane to its analysis suggests that it is right, to its left, and above it, sexual curiosity. You start by extending to infinity.” Computers and the infinite. asking where little babies Alice said, “It must really High-speed computers have come from, one thing leads to be valuable. But is it not in allowed investigators to check another, and you find yourself danger?” the validity of many mathe- preparing nitroglycerine or The Queen said, “Valuable, matical conjectures, and solving differential equations. yes. But what danger do you much mathematical evidence This explanation is somewhat mean?” now involves unimaginably large numbers. However, numerical evidence should be Number definition paradox. Let A be the set of all positive viewed with caution and is integers that can be defined in under 100 words. Since there sometimes inadequate. For are only finitely many of these, there must be a smallest posi- example, consider the fact tive integer n that does not belong to A. But haven’t I just that defined n in under 100 words? (Wording by Timothy Gowers.)

x ∫1 /lntdt− π ( x ) Large perfect number. In 2001, 4.27764198 × 108107891 = 2 213466916(213466917 – 1) was the largest known perfect number.

240 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 241

“Well,” said Alice, “sup- The Skewes number. S1 is Infinity in a nutshell. “I pose some boys were playing one of the largest numbers could be bounded in a nut- cricket and mishit the ball, that has occurred in a mathe- shell and count myself a king and it flew towards the matical proof: of infinite space” (Shake- window?” 34 speare, Hamlet, 1603). S = 101010 “It would not matter,” said 1 the Queen, pointing to a par- This number was given by ticular pane. “Consider how Skewes in 1933 and Universe game. G. H. likely would the ball be to hit decreased, in the 1980s, to Hardy determined that if one this particular pane?” S = e e27/4 ≈ 8.185 × 10370 “played chess” with all the “Not very,” said Alice. “In 1 particles in the universe fact, it wouldn’t be possible A related number, called the (which he estimated to be at all. There are so many “second Skewes number,” is 1087), where a move meant other panes.” even larger: simply interchanging any two “Very good,” said the 1000 S = 101010 particles, then the number of Queen. “And the same would 2 possible games was roughly be true of all the panes, The mathematician G. H. equal to Skewes’s original would it not?” Hardy called the Skewes number: Alice considered and said, number “the largest number reluctantly, “I suppose so.” which has ever served any 101010000000000000000000000000000000000 “So,” said the Queen, “if it definite mathematical pur- couldn’t hit any of the panes, pose in mathematics.” then the magnificent structure is in no danger.” 1++++xx2 2 ... x2 = 0 1 n−1 Alice nodded, threw a ball, Göbel’s sequence is defined by x n n with

and destroyed the wonderful x0 = 1. The first few values of xn are 1, 2, 3, 5, 10, and 28. This structure. baby grows large very quickly. Mathematicians are still exploring the various intriguing properties of this recursive (Graham Cleverley, personal sequence. One thing we do know is that the first non-integer communication, 2004). value of xn occurs at x43, which is about equal to

× 178485291567 x43 = 5.4093 10 Strange paper title. In

1975, George Englebretsen This “Göbel number,” x43, is so large that humanity will never published “Sommers’ Proof be able to compute all of its digits. If this little bit of informa- That Something Exists” in tion has intrigued you, you can learn more by reading R. K. the prestigious Notre Dame Guy, “A Recursion of Göbel,” in Unsolved Problems in Journal of Formal Logic (16: Number Theory, 2nd ed. (New York: Springer-Verlag, 1994), 298–300). pp. 214–15.

Big Numbers and Infinity 241 c06.qxd 5/16/05 2:55 PM Page 242

Mystery of patterns. “It Infinite gift. You are visiting your neighbor down the street, was all a pattern, as surely as who bears a striking resemblance to the actress Julia Roberts. a spiderweb is a pattern, but It is your birthday, and she has a special gift for you. On her a pattern does not imply a couch is an attractive assembly of attached boxes with ever- purpose. Patterns exist diminishing sides. The largest box is wrapped with a sparkling everywhere, and purpose is red ribbon (figure 6.1). at its safest when it is sponta- The smallest boxes are so neous and short lived” (Anne tiny that you would need a Rice, The Witching Hour, microscope to see them. The 1993). sides of the boxes diminish in an interesting sequence:

Kinky number. The author 1 1 1 1 1,,,,...... Calvin Clawson, in his book 2 3 4 n Mathematical Mysteries (p. 37), reports that the num- She smiles as she touches ber of kinks in the core of an the largest box at the top of “embedded tower” is roughly her stack, which has an edge

107 that is 1 foot in length. The 101010 E = 10 next box has an edge length of 1 over the square root of 2, and the next box has an edge Twain math. “I had been to length of 1 over the square school most of the time, and root of 3, and so forth. This could spell, and read, and series diverges, or gets bigger write just a little, and could and bigger, which means that say the multiplication table your friend’s gift is a struc- up to six times seven is ture of infinite length! If you thirty-five, and I don’t reckon wanted to paint the faces of I could ever get any further the gift, you would need an than that if I was to live for- infinite supply of paint. ever. I don’t take no stock in Remarkably, even though mathematics, anyway” (Huck the length is infinite, the vol- Finn, in Mark Twain, The ume of the gift is finite! What Adventures of Huckleberry is the volume? (See Answer Finn, 1912). 6.12.) Figure 6.1 Infinite gift.

242 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 243

Mystery of infinity. “Infin- contest, construct the expres- Eternity. “High up in the ity is where things happen sion for the largest number North in the land called that don’t” (S. Knight). possible, using only the fol- Svithjod, there stands a rock. lowing six symbols: It is a hundred miles high and a hundred miles wide. Once 1 0 ( ) . – Large number contest. Con- every thousand years a little struct the expression for the Each digit can be used five bird comes to the rock to largest number possible, times, at most. (See Answer sharpen its beak. When the using only the following eight 6.13.) rock has thus been worn symbols: away, then a single day of 1 2 3 4 ( ) . – eternity will have gone by” (Hendrik Willem Van Loon, Each digit can be used only Leviathan number. The first The Story of Mankind, 1922). once. The “.” is a decimal six digits of the Leviathan point. The “–” is a minus number = (10666)! are sign. If you like, you can raise 134,072. (The ! is the symbol Distance. “I looked round numbers to powers of one for factorial.) Alas, the num- the trees. The thin net of real- another. For example 3142 has ber is so large that humanity ity. These trees, this sun. I an amazing 63 digits! Can will never be able to compute was infinitely far from home. you do better than this? all the digits of the Leviathan The profoundest distances are For the second part of the number. never geographical” (John Fowles, The Magus, 1965).

Monster number. One of the largest individual numbers that Buddhist asankhyeya. One occurs naturally in a theorem is of the highest numbers for which there exists a name is 8080 17424 79451 28758 86459 90496 the Buddhist asankhyeya, 17107 57005 75436 80000 0000 which is equal to 10140— This is the order of the so-called Monster simple group. An much bigger than a googol. example of a finite group is a collection of integers from 1 to This number is mentioned in 12 under the operation of “clock arithmetic,” so that, for Jainist writings of the first instance, 9 + 6 = 3. The concept sounds simple, but it gives century B.C. India’s ancient rise to a mathematical jungle. For decades, mathematicians writings often contain refer- have tried to classify all of the finite groups. One of the ences to large numbers with strangest groups discovered is the “monster group,” which has names; however, it is some- over 1053 elements and a little-understood structure. Robert times difficult to assign Griess constructed this beast in 1982 as a group of rotations in a precise value to these 196,883-dimensional space. humongous numbers

Big Numbers and Infinity 243 c06.qxd 5/16/05 2:55 PM Page 244

because of conflicting or is longer than the time it Finite and infinite. “There ambiguous uses. would take for a man to wear was from the very beginning away a mountain of solid no need for a struggle granite that is one yojana between the finite and infi- Great aeon. According to (about 7 miles) high and wide nite. The peace we are so Bhikkhu Bodhi’s A Compre- by stroking it once every eagerly seeking has been hensive Manual of Abhid- hundred years with a silk there all the time” (Daisetz hamma, Buddhist philosophy cloth. Teitaro Suzuki, Introduction identifies three kinds of In Daniel Boorstin’s The to Zen Buddhism, 1957). aeons—an interim aeon, an Creators, Gautama reached incalculable aeon, and a great full enlightenment in the aeon. An interim aeon course of three incalculable The game of Go. There are (antarakappa) is a period of aeons. In the first, he did not approximately 4.63 × 10170 time required for the life span know whether he would possible positions in the of humans to rise from ten become a Buddha. In the sec- Asian game of Go, which is years to the maximum of ond aeon, he knew it but did played with black and white many thousands of years, and not reveal it. In the third, he stones on a 19 × 19 board. then fall back to ten years. declared it. One Buddhist (M. Beeler, et al., Item 96, in Twenty such interim aeons scholar has calculated the M. Beeler, R. W. Gosper, and equal a single incalculable length of one incalculable R. Schroeppel, “HAKMEM,” aeon (asankhyeyakappa), and aeon as 1 followed by 352 Cambridge, Mass.: MIT Arti- four incalculable aeons con- septillion kilometers of zeros, ficial Intelligence Laboratory, stitute a single great aeon with each zero being 0.001 Memo AIM-239, p. 35, Feb- (mahakappa). Buddha says mm in width. A septillion is ruary 1972.) Opponents play that the length of a great aeon 10 to the power of 24. Go by alternately placing stones on the board to sur- round as much territory as An infinity of worlds. “It is known that there is an infinite possible. For comparison, number of worlds, simply because there is an infinite amount there are about 1012 positions of space for them to be in. However, not every one of them in checkers. is inhabited. Therefore, there must be a finite number of inhabited worlds. Any finite number divided by infinity is as near to nothing as makes no odds, so the average population of all planets in the Universe can be said to be zero. From A slave to limit. “The will this it follows that the population of the whole Universe is is infinite and the execution also zero, and that any people you may meet from time to confined. The desire is time are merely the products of a deranged imagination” boundless and the act a slave (Douglas Adams, The Restaurant at the End of the Universe, to limit” (Shakespeare, 1982). Troilus and Cressida, 1602).

244 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 245

1 1 Archimedes’ “Cattle Prob- pled cows was ( ⁄5 + ⁄6) the knowing that you have lem.” The solution to the total number of the yellow been adjudged perfect in restricted version of herd. The number of yel- this species of wisdom. 1 1 Archimedes’ famous “Cattle low cows was ( ⁄6 + ⁄7) the Problem” is 7.760271406 total number of the white If we attempt to solve the 486818269530232833213 . . . herd. first part of the problem, the × 10202544. The problem can If you can accurately smallest solution for the total be stated as follows: tell, O stranger, the total number of cattle is number of cattle of the 50,389,082. But if you add O stranger, compute the Sun, including the number the additional two constraints number of cattle of the of cows and bulls in each contained in the second part, Sun, who once upon a time color, you would not be the solution is much higher— grazed on the fields of the called unskilled or igno- about 7.76 × 10202544. It took Thrinacian isle of Sicily, rant of numbers, but not until 1880 to find this approx- divided into four herds of yet shalt thou be numbered imate answer. The actual different colors—one milk among the wise. But number was first calculated in white, another glossy understand also these con- 1965 by Williams, German, black, the third yellow, and ditions: The white bulls and Zarnke, using an IBM the fourth dappled. The could graze together with 7040. number of white bulls was the black bulls in rows, 1 1 equal to ( ⁄2 + ⁄3) the num- such that the number of ber of black bulls plus the cattle in each row was Walnuts and infinity. “We total number of yellow equal and that number was are told that the shortest line bulls. The number of black equal to the total number segment contains an infinity 1 1 bulls was ( ⁄4 + ⁄5) the of rows, thus forming a of points. Then even the shell number of dappled bulls perfect square. And the of a walnut can embrace a plus the total number of yellow bulls could graze spatial infinity as imponder- yellow bulls. The number together with the dappled able as intergalactic space” of spotted bulls was bulls, with a single bull in (William Poundstone, 1 1 ( ⁄6 + ⁄7) the number of the first row, two in the Labyrinths of Reason, 1988). white bulls, plus the total second row, and continu- number of yellow bulls. ing steadily to complete a The number of white cows perfect triangle. If you are Having fun. Graffiti in the 1 1 was ( ⁄3 + ⁄4) the total able, o stranger, to find out math department’s restroom: number of the black herd. all these things and gather The number of black cows them together in your I am happy because I know 1 1 was ( ⁄4 + ⁄5) the total mind, giving all the rela- ℵ + ℵ =ℵ number of the dappled tions, you shall depart 0 0 0 herd. The number of dap- crowned with glory and

Big Numbers and Infinity 245 c06.qxd 5/16/05 2:55 PM Page 246

A special Rubik’s number: friends at your lunch table. Paul Erdös conjectured that 101097362223624462291180422369532000000 there is no solution (other = 54! / ((9!)6) ~ 1.0109 × 1038 than 11 + 21 = 31) to the following equation sum According to Robert Munafo, this is the number of combina- involving integers: tions of the 3 × 3 × 3 Rubik’s Cube if you are allowed to take the stickers off and replace them in places that are different m −1 nn= from their original locations. ∑ jm j =1 Mathematicians still do not Jainism. The number of years in the longest time period in know whether this conjecture the Jainist religion is 1.0130653244 . . . × 10177 = 2588. is true or not. All we know is that there is no solution for m < 1.485 × 109321155 his characters being rescued Watching Lila. “He by a passing spaceship. I call this value for m the watched her for a long time According to Robert Munafo, Erdös-Moser number, after and she knew that he was this number is mentioned in early researchers of this watching her and he knew the radio program version problem, although William that she knew he was watch- and was changed to 2260199 for Butske and colleagues actu- ing her, and he knew that she the book. ally determined this number knew that he knew; in a kind in 1999. of regression of images that You can learn more about you get when two mirrors Brain chimeras. “The this large number here: face each other and the knowledge we have of William Butske, Lynda M. images go on and on and on mathematical truths is not Jaje, and Daniel R. Mayernik, in some kind of infinity” Σ only certain, but real knowl- “On the Equation p|N 1/p + (Robert Pirsig, Lila, 1991). edge; and not the bare empty 1/N = 1, Pseudoperfect vision of vain, insignificant Numbers, and Partially chimeras of the brain” (John Weighted Graphs,” Mathe- Big number in fiction. The Locke, An Essay Concerning matics of Computation 69 largest known number Human Understanding, (2000): 407–20; and Leo described in a work of fiction 1690). Moser, “On the Diophantine n n n is 2.74858523 . . . × 1080588 = Equation 1 + 2 + 3 + . . . + n n 2267709. Douglas Adams, in (m – 1) = m ,” Scripta The Hitchhiker’s Guide to the Erdös-Moser. The Erdös- Mathematica 19 (1953): Galaxy, uses this number Moser number is huge, a real 84–88. when stating the odds against treat, and sure to excite your

246 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 247

Tegmark number. Accord- Superfactorial. In 1987, A. Berezin published “Super Super ing to the astrophysicist Max Large Numbers” in the Journal of Recreational Math (19, Tegmark, the number of no. 2: 142–43). This paper discusses the mathematical and meters you must travel to find philosophical implications of the “superfactorial” function an exact copy of yourself, defined by the symbol $, where N$ = N!N!N! . . . The term N! is assuming that the universe repeated N! times. In other words, there are N! repetitions of is homogeneous and infinite, N! on the right-hand side. The number grows rather quickly. is 101029. The first two values are 1 and 4, but subsequently grow so rapidly that 3$ already has a very large number of digits. In particular, the third term, 3 superfactorial, is Chess. Are any of you 3! 6 3!3! 66 2.0691973765× 1036305 fans of chess? If so, 1.15 . . . 33$!===3610!3! 66 1010 × 1042 = 64! / (32! × 8!2 × 2!4 × 24) is the number of possi- It has way too many digits to compute exactly. ble chess positions, based on a 1950 article by Shannon (Claude Shannon, “Program- Zeroless powers. According to Michael Beeler and William ming a Computer for Gosper, there is at least one zero in the decimal expression of Playing Chess,” Philosophi- each power of 2 between cal Magazine 41 [1950]: 256–75). Theoretically 286 = 77,371,252,455,336,267,181,195,264 and 230739014 speaking, you can arrange all Notice how 286 itself is zeroless. Their computer program was 32 pieces in any position stopped at 230739014. If digits of such powers were random, whatsoever (giving 64!/32!). 1/10411816 is the approximate probability that the next number, However, this number is 230739015, has no zeros. According to Schroeppel, a power of 2 reduced somewhat because can have arbitrarily many nonzero digits. pawns of a given color are equivalent (8! for each color). Other interchanges also serve take possible pawn promotion to reduce this number. Note 10500 environments. into consideration. that this number is only an “On the theoretical side, G. H. Hardy has estimated estimate because it does not an outgrowth of inflationary that the number of chess take into account the fact theory called eternal infla- games is much higher than the that a pawn cannot switch tion is demanding that the number of chess positions: columns or move past the world be a megaverse full of opposing pawn in its column Λ = 101050 pocket universes that have unless it captures that pawn. bubbled up out of inflating Also, the number does not space like bubbles in an

Big Numbers and Infinity 247 c06.qxd 5/16/05 2:55 PM Page 248

uncorked bottle of Cham- the universe’s shimmering Dream of mathematics. pagne. At the same time transionic value can be “Science in its everyday ℵ ϑ 95 =ℵ 0 string theory, our best hope denoted 5 0 |.2 practice is much closer to for a unified theory, is pro- Note that the idea that art than to philosophy. When ducing a landscape of enor- space, and even time, comes I look at Gödel’s proof of mous proportions. The best in discrete lumps is not far- his undecidability theorem, I estimates of theorists are that fetched. Loop quantum grav- do not see a philosophical 10500 distinct kinds of envi- ity predicts that space comes argument. The proof is a ronments are possible” in tiny fragments, the small- soaring piece of architecture, (Leonard Susskind, “The est of which is about a cubic as unique and as lovely as a Landscape,” an interview Planck length, or 10–99 cubic Chartres cathedral. The with John Brockman at centimeter. Time flows in dis- proof destroyed Hilbert’s Edge.org, 2003). crete ticks of about a Planck dream of reducing all time, or 10–43 second. mathematics to a few Of course, the notion of equations, and replaced it Transionic ϑ. Transions are transions need not be con- with a greater dream of transfinite numbers with fined to probabilities in mathematics as an endlessly probabilistic values. For cosmology or quantum growing realm of ideas” example, if there is some mechanics but has general (Freeman Dyson, in the probability that space is application when probabili- introduction to Nature’s quantized as integer multi- ties can be assigned to the Imagination, 1995). ples of a certain minimum cardinality of a set or the ele- distance and that our uni- ments that compose a set. verse is infinite, we may rep- resent the cardinality of points in such a universe as The Paradox of Tristram Shandy. Bertrand Russell once for- ℵ mulated a paradox in which Tristram Shandy requires a year to 0 ; however, if space is not quantized and infinitely write about the first day of his life and laments that at this rate, divisible, the cardinality of material would accumulate faster than he could deal with it, so universal points might be that he could never come to an end of his biography. However, ℵ represented as C = 2 0. As Russell notes that if Shandy had lived forever and had not my colleague Graham Clev- wearied of his task, then no part of Shandy’s biography would erley notes, if we allocate a have remained unwritten because there is a one-to-one corre- 95 percent probability to the spondence between each year that Shandy writes in and each first hypothesis and a 5 per- day he writes about. Therefore, no matter what day of his life cent probability to the sec- you care to consider, there will eventually come a year in ond, then we obtain a which he will be able to write about it. There is no part of his transionic cardinality for the life that can never be written down. Nevertheless, Shandy gets set of universal points. Thus, further and further behind in his task!

248 A Passion for Mathematics c06.qxd 5/16/05 2:55 PM Page 249

More mathematics and in Susan Kruglinski’s “When bubbles, very sparsely scat- reality. “Our brains evolved Even Mathematicians Don’t tered, rising through a vast so that we could survive Understand the Math,” New black sea. We rule some of out there in the jungle. Why York Times, May 25, 2004). the bubbles. Of the waters in the world should a brain we know nothing . . . ” develop for the purpose of (Larry Niven and Jerry being at all good at grasping Bubbles in a black sea. Pournelle, The Mote in God’s the true underlying nature “Consider the true picture. Eye, 1974). of reality?” (Brian Greene, Think of myriads of tiny

Big Numbers and Infinity 249 c06.qxd 5/16/05 2:55 PM Page 250 c07.qxd 5/13/05 12:14 PM Page 251

77 MathematicsMathematics2 andand Beauty3Beauty 4

N WHICH WE EXPLORE ARTISTIC FORMS GENERATED FROM MATHEMATICS— Idelicate fungi, twenty-second-century cityscapes, fractal necklaces and seed pods, alien devices, and a rich panoply5 of patterns that exhibit a cascade of detail with increasing magnifications. 6

Beauty is eternity gazing at itself in a mirror. —Kahlil Gibran,The Prophet , 1923

251 c07.qxd 5/13/05 12:14 PM Page 252 c07.qxd 5/13/05 12:14 PM Page 253

The line between science, Mathematicians and scien- which means that various mathematics, and art is a tists have begun to enjoy and copies of an object can be fuzzy one; the three are fra- present bizarre mathematical found in the original object at ternal philosophies formal- patterns in new ways—ways smaller-sized scales. The ized by ancient Greeks such motivated as much by a sense detail continues for many as Eratosthenes and Ictinus. of aesthetics as by the needs magnifications like an end- Computer graphics helps of logic. Moreover, computer less nesting of Russian dolls. reunite these philosophies by graphics allows nonmathe- Some of the shapes remind providing convenient ways to maticians to experience a me of intricate flowers, represent natural, mathemati- little of the delight that math- futuristic cityscapes, fractal cal, and artistic objects. In ematicians take in their work jewelry, or alien devices that the short art gallery that fol- and to better appreciate the will forever remain beyond lows, simple mathematical complicated behavior of sim- our understanding. As Francis formulas or sets of rules are ple formulas. Bacon said, “The job of the used to generate a surprising Most of the figures that artist is always to deepen the variety of beautiful and follow are fractals. Fractals mystery.” unpredictable patterns. usually exhibit self-similarity,

Figure 7.1 Fractal object by Abram Hindle is formed from a simple set of mathematical rules. (See chriscoyne.com/cfdg/ for details.)

Mathematics and Beauty 253 c07.qxd 5/13/05 12:14 PM Page 254

Figure 7.2 Pop-art flower produced by Chris Coyne using a simple set of mathematical rules. Artists and computer programmers can create a magnificent landscape of new shapes and forms using what Chris Coyne calls “context-free design grammar.” The grammar includes rules for growth and various weighting factors. (See chriscoyne.com/cfdg/ for details.)

254 A Passion for Mathematics c07.qxd 5/13/05 12:14 PM Page 255

Figure 7.3 Magnification of a region of the previous figure, highlighting a potentially endless cascade of detail. (See chriscoyne.com/cfdg/ for details.)

Mathematics and Beauty 255 c07.qxd 5/13/05 12:14 PM Page 256

Figure 7.4 Tendrilous, botanical artwork produced by Chris Coyne using a simple set of mathematical rules. (See chriscoyne.com/cfdg/ for details.)

256 A Passion for Mathematics c07.qxd 5/13/05 12:14 PM Page 257

Figure 7.5 Magnification of a portion of the previous figure. Image processing methods were applied to create a slight three-dimensional effect. (See chriscoyne.com/cfdg/ for details.)

Mathematics and Beauty 257 c07.qxd 5/13/05 12:14 PM Page 258

Figure 7.6 Futurist fractal device and city by Jock Cooper, who writes, “I use mathematics to create objects that inspire the imagination. I want the viewer to wonder what the results represent—some alien piece of art, or technology from another dimension.” (See fractal-recursions.com for details.)

258 A Passion for Mathematics c07.qxd 5/13/05 12:14 PM Page 259

Figure 7.7 Magnification of a region of figure 7.6. (See fractal-recursions.com for details.)

Mathematics and Beauty 259 c07.qxd 5/13/05 12:14 PM Page 260

Figure 7.8 Fractal collage by Linda Bucklin, an expert at using various fractal-generating and image-processing tools to produce her works. She assembles her fractal collages using software that includes Ultra Fractal, KPT FraxFlame, and Apophysis. Adobe Photoshop, Corel Photopaint, and other tools are used to assemble the final work. (See lindabucklin.com for details.)

260 A Passion for Mathematics c07.qxd 5/13/05 12:14 PM Page 261

Figure 7.9 “Infocity” by Sally Hunter, who writes, “As I created the object using mathematics and various software tools, I imagined an information storage device and contemplated the fractal nature of information—the more you find out, the more questions you have.” (See sallyhunter.co.uk for details.)

Mathematics and Beauty 261 c07.qxd 5/13/05 12:14 PM Page 262

Figure 7.10 A Kleinian group image, a limit set generated by Möbius transformations of the form z → (+ab z)/(cz +d ). More particularly, this fractal image by Jos Leys was generated with two Möbius transformations and their inverse transformations. This iterative process will repeatedly displace an initial point in the complex plane. The resultant set of points forms the limit set, represented graphically in this figure. No matter how often and in what order the displacements are repeated, the new points fall somewhere on the figure’s curved shapes. Möbius transformations will transform circles to circles, and this property yields the spherelike objects in the image. (See josleys.com for details.)

262 A Passion for Mathematics c07.qxd 5/13/05 12:14 PM Page 263

Figure 7.11 Magnification of a region of figure 7.10. (See josleys.com for details.)

Mathematics and Beauty 263 c07.qxd 5/13/05 12:14 PM Page 264

Figure 7.12 “Martian Missile Defense,” a fractal created by Roger A. Johnston using the Apophysis software tool. (See community.webshots.com/user/rajahh for details.)

264 A Passion for Mathematics c07.qxd 5/13/05 12:14 PM Page 265

Figure 7.13 Halley map created by the author reveals the intricate behavior of a root-finding method. The problem of finding zeros of a function by iterative methods occurs frequently in science and engineering. These approximation techniques start with a guess and successively improve upon it with repetitions of similar steps. The resultant graphics give an indication of how well one of these iterative methods, Halley’s method, works—where it can be relied upon and where it behaves strangely. (See pickover.com for details.)

Mathematics and Beauty 265 c07.qxd 5/13/05 12:14 PM Page 266

Figure 7.14 Fractal “Seed Pods,” created by Cory and Catska Ench using an “iterated functions system” that consists of affine transformations involving rotations, scalings by a constant ratio, and translations. (See enchgallery.com for details.)

266 A Passion for Mathematics bansw01.qxd 5/17/05 9:54 AM Page 267

AnswAnswersers

Contents

1. Numbers, History, Society, know about them or not. In Are Universes and People Thicker Than Blackberries? Martin Gardner Acknowledgmentsstated this as, “If two dinosaurs joined two other dinosaurs in a clearing, there would be 1.1 Ancient counting. Among the oldest direct four there, even though no humans were evidence of human counting is a baboon’s around to observe it, and the beasts were too thigh bone marked with 29 notches.Introduction The bone stupid to know it.” G. H. Hardy, in his famous is 35,000 years old and was discovered in the Apology, wrote, “I believe that mathematical Lebombo Mountains of Africa. reality lies outside us, that our function is to To put this in perspective, the oldest fossils discover and observe it, and that the theorems of modern humans are nearly 150,000 years which we prove, and which we describe old. The Lebombo bone resembles the calen- grandiloquently as our ‘creations,’ are dar sticks still used today by Bushmen clans simply our notes of our observations.” The in Namibia. nineteenth-century mathematician Leopold Kronecker said, “God created the integers— 1.2 Mathematics and reality. In my mind, we all else is human invention!” don’t invent mathematics and numbers, but I think that mathematics is a process of rather we discover them. In chapter 2, when discovery. Mathematicians are like archae- we discuss exotic kinds of numbers like tran- ologists. The physicist Roger Penrose felt the scendental numbers, I have the feeling that same way about fractal geometry. In his book they are out there in the realm of eternal The Emperor’s New Mind, he says that frac- ideas. They have an independent existence tals (for example, intricate patterns such as from us. These ideas are controversial, and the Julia set or the Mandelbrot set) are out there are certainly other points of view. How- there waiting to be found: ever, to me, mathematics and numbers tran- scend us and our physical reality. The It would seem that the Mandelbrot set is statement “3 + 1 = 8” is either true or false. not just part of our minds, but it has a real- It’s false. Was the statement false before the ity of its own. . . . The computer is being discovery of integers? I believe it was. Num- used in essentially the same way that an bers and mathematics exist whether humans experimental physicist uses a piece of

267 bansw01.qxd 5/17/05 9:54 AM Page 268

experimental apparatus to explore the reviewer of my book The Zen of Magic structure of the physical world. The Man- Squares used poetry as an analogy when delbrot set is not an invention of the human “objecting” to my philosophy. He wrote, mind: it was a discovery. Like Mount Did Shakespeare “discover” his sonnets? Everest, the Mandelbrot set is just there. Surely all finite sequences of English I think we are uncovering truths and ideas words “exist,” and Shakespeare simply independently of the computer or mathemati- chose a few that he liked. I think most peo- cal tools we’ve invented. ple would find the argument incorrect and Penrose went a step further about fractals hold that Shakespeare created his sonnets. in The Emperor’s New Mind: “When one sees In the same way, mathematicians create a mathematical truth, one’s consciousness their concepts, theorems, and proofs. Just breaks through into this world of ideas. . . . as not all sequences of words are sonnets, One may take the view that in such cases the not all grammatical sentences are theo- mathematicians have stumbled upon works rems. But theorems are human creations no of God.” less than sonnets. Anthony Tromba, the coauthor of Vector Similarly, the molecular neurobiologist Calculus, said in a July 2003 University of Jean-Pierre Changeux believes that mathe- California press release, “When you discover matics is invented: “For me [mathematical mathematical structures that you believe cor- axioms] are expressions of cognitive facilities, respond to the world around you, you feel you which themselves are a function of certain are seeing something mystical, something facilities connected with human language.” profound. You are communicating with the Also, I should point out that the develop- universe, seeing beautiful and deep structures ment of “higher” math skills is not inevitable and patterns that no one without your training as a culture matures or evolves. In fact, higher can see. The mathematics is there, it’s leading math, unlike counting and adding, is you, and you are discovering it” (www.ucsc. extremely rare. John Barrow, in Pi in the Sky: edu/news_events/press_releases). Counting, Thinking, and Being, suggests, James Gleick, in Chaos: Making a New Sci- ence, writes, “The Mandelbrot set . . . exists. It Having a notion of quantity is a long existed before . . . Hubbard and Daudady way from the intricate abstract reasoning understood its mathematical essence, even that today goes by the name of mathemat- before Mandelbrot discovered it. It existed as ics. Thousands of years passed in the soon as science created a context—a frame- ancient world with comparatively little work of complex numbers and a notion of iter- progress in mathematics. . . . It is not good ated functions. Then it waited to be unveiled.” enough to possess the notion of quantity. Other mathematicians disagree with my One must develop an efficient method of philosophy and believe that mathematics is a recording numbers . . . more crucially still, marvelous invention of the human mind. One the adoption of a place value system with

268 Answers bansw01.qxd 5/17/05 9:54 AM Page 269

a symbol for zero was a watershed. A good wrong. A statement can be meaningless, notation permits an efficient extension to and therefore neither true nor false. the ideas of fractions and the operations (Popper, Carnap, or Ayer would have held of multiplication and division. . . . Again, that the statement “God exists” is neither we find these discoveries are deep and true nor false.) I interpret Martin Gardner difficult; almost no one made them to be saying that cardinality, not numbers, (pp. 103–104). existed without a conscious mind. That is, if two dinosaurs joined two other dinosaurs in My colleague Chuck G. comes down on a clearing, and two chickens joined two the side of mathematics as a creation, not a other chickens in the same clearing, each discovery: dinosaur would have been able to eat one A block of stone contains every possible chicken. There was a one-to-one mapping. statue that can be carved from it. When a So, I think cardinality existed and was dis- sculptor selects one of these statues, it’s covered. Numbers, on the other hand, were said to be an act of creativity. If mathemat- invented as a method for describing and ics already exists, then so do all possible manipulating cardinality. Cardinality is in mathematics, including an infinity of incor- the real world, number in the mind. This is rect, worthless, boring, irrelevant, useless, why some tribes can get by with only a few ridiculous, and incomprehensible mathe- words for numbers. They observe the cardi- matics. Shouldn’t the finding of worthwhile nality, but cannot describe it accurately. In mathematics be given the same considera- fact, pigeons can observe the cardinality tion as finding a work of art in a stone and but cannot describe it at all because they be called creative? If not, then isn’t every haven’t invented number. As an analogy, human endeavor just blundering around mass exists out there in the real world. finding things? Before the rise of humans, the mass of the Earth was much the same as it is now. How- My colleague Graham C. suggests that the ever, we couldn’t measure it until someone statement 3 + 1 = 8 is neither true nor false invented units of mass. Without units of until we define what we mean by it: mass, we can tell if one thing is more mas- sive than another, but we cannot, for Is a + b = c true or false? Obviously neither. instance, say how much more massive. It is only given meaning in context, and it is a human mind that gives it context. Philoso- Finally, my colleague Pete B. responds, pher Ludwig Wittgenstein (1889–1951) “The words ‘elephants have trunks’ do not would have said that you need to know the create elephants with swinging noses; like- rules of the game before you play it. And wise, the words ‘one plus one equals two’ do someone has to define the rules. Aristotle not create the mathematical relationship. said that a statement had to be either true or However, in both instances, nature has created false. Much as I admire Aristotle, he was what we use language to describe.”

Answers 269 bansw01.qxd 5/17/05 9:54 AM Page 270

1.3 Mathematics and murder. André Bloch random patterns of dots on a screen. When (1893–1948). After a family meal, he mur- subjects looked at patterns containing up to dered his brother, his uncle, and his aunt. He five or six dots, the subjects made no errors. was confined for life in a psychiatric hospital, The performance on these small numbers of where he wrote breakthrough papers on a dots was so different from the subjects’ per- large range of topics: function theory, geome- formance with more dots that the observation try, number theory, algebraic equations, and methods were given special names. Below kinematics. The Académie des Sciences seven, the subjects were said to subitize; awarded him its distinguished Becquerel Prize above seven, they were said to estimate. For just before his death. more information, see E. L. Kaufman, M. W. When asked why he’d committed the grue- Lord, T. W. Reese, and J. Volkmann, “The Dis- some murders, he replied, “There had been crimination of Visual Number,” American mental illness in my family.” He saw it as his Journal of Psychology 62 (1949): 498–525. duty to eliminate the madness. Also see George Miller, “The Magical Num- ber Seven, Plus or Minus Two: Some Limits 1.4 Leaving mathematics and approaching God. on Our Capacity for Processing Information,” The French geometer Blaise Pascal The Psychological Review 63 (1956): 81–97. (1623–1662). Pascal and Pierre de Fermat independently founded probability theory. 1.6 Circles. Sometime around 2400 B.C., the Pascal also invented the first calculating ancient Sumerians noticed the apparent circular machine, studied conic sections, and pro- track of the Sun’s annual path across the sky duced important theorems in projective and knew that it took about 360 days to com- geometry. His father, a mathematician, was plete the journey. Thus, it was reasonable for responsible for his education. them to divide the circular path into 360 Pascal was not allowed to begin learning a degrees to track the Sun’s daily movement. This subject until his father thought he could easily eventually led to our modern 360-degree circle. master it. As a result, the eleven-year-old boy I wonder whether modern scientists, with worked out for himself, in secret, the first their metric systems, have considered replac- twenty-three propositions of Euclid. At six- ing the ancient 360-degree circle with a 100- teen, he published essays on conics that degree circle. In some sense, 360 degrees may Descartes refused to believe were the handi- be more useful than 100 degrees, simply work of a teenager. because 360 has so many factors that provide In 1654, Blaise Pascal decided that religion a larger number of easily definable units: 2, 3, was more worthy of his intense dedication 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, than was mathematics. You can read more 45, 60, 72, 90, 120, and 180. Of course, for about him later in this chapter. real metric aficionados, there’s always the grad, which is defined such that there are 100 1.5 Counting and the mind. Seven. In 1949, grads in a right angle. Thus, 1 degree equals Kaufman, Lord, Reese, and Volkmann flashed 100/90 grads, and 400 grads correspond to a

270 Answers bansw01.qxd 5/17/05 9:54 AM Page 271

complete revolution around the circle. In the compress (or simply represent) a string of 1800s, the grad unit was introduced in France, characters. Shannon entropy is an important where it is called the grade. measure that is used to evaluate structures and patterns in our data. The lower the entropy, 1.7 The world’s most forgettable license plate? the more structure that exists in the string. My friend, the physicist Paul Moskowitz, just Other colleagues suggested that anything bought a new car and chose a particularly dif- one could do to break the symmetry of the ficult license plate to memorize, illustrated in digit string would help to make the plate less figure A1.1. memorizable. For example, a symmetrical plate such as 11000011 would be too easy to memorize. My favorite mathematical friends have approached the problem of selecting difficult- to-remember plates by focusing on plates that consist of only 1s and 0s. Obviously, humans are good at recognizing patterns in numbers. Plates with 11111111 and 00000000 would Figure A1.1 The physicist Paul Moskowitz’s difficult-to-remember car license plate. stand out. Likewise 10000000 and 00000001 would draw attention. If a bank robber were attempting to gener- My brainy colleague Dr. Joseph Pe has ate a license for his car, he might consider come up with a mathematical measure of the only numbers that are easily confused with memorability M(n) of a binary license plate. one another. For instance, an 8 can be mis- General readers may wish to skip reading the taken for a 0 or a 3 at a distance, and some following mathematical exposition because it people might confuse 2 and 5. If he can use involves some terms that may be unfamiliar. letters, this approach works even better For those brave souls who remain—consider a because other similar-looking symbols can number n. M(n) should be large if the infor- be used, such as 0 and D, and 8 and B. Thus, mation I(n) conveyed by n is large; that is, the a plate like 103BI8I1 may be hard to remem- greater the information, the greater the mem- ber and to recognize. Also, any sequence of orableness. For example, “11111111” is more letters that would be hard to pronounce would memorable than “11010010,” and it contains be useful. more information by our definition. (If you Some scientists I consulted suggested that think of 1s as heads and 0s as tails, it is harder they would use the concept of Shannon to get 8 heads in 8 tosses than 4 heads and 4 entropy for assessing disorder in a license tails in 8 tosses.) So, if p(n) denotes the prob- plate sequence, although I don’t think most ability of getting the same number of heads bank robbers would use this approach. Shan- and number of tails as n, then, using the bino- non entropy is beyond the scope of this book, mial distribution, we find that p(11111111) ≤ but it quantifies the ease with which we can p(11010010).

Answers 271 bansw01.qxd 5/17/05 9:54 AM Page 272

Joseph Pe asks us to consider that I(n) = ues. On the other hand, there are 100,000,000 –log p(n), where p(n) is the probability of possible 8-digit plates using any of the possi- obtaining a string with the same number ble digits, and 2,821,109,907,456 possibilities of 0s and the same number of 1s as n. So if we use A–Z and 0–9. With only 256 p(11111111) = 1/28, and p(11010010) = possibilities, it might be simple for law C(8,4)(1/28). However, M(n) should be large enforcement to identify the exact plate and if K(n) (the sum of the lengths of the car, particularly if other details like the make substrings of n consisting of more than one and the model of the vehicle are available. consecutive 0 or more than one consecutive 1) Dennis Gordon notes that a license plate con- is large. The idea is that a substring of consec- sisting of zeros and Os would be quite diffi- utive 0s or 1s is easier to remember than a cult to remember. substring with mixed 0s and 1s. For example, K(11110000) = 4 + 4 = 8, K(11010010) = 1.8 Calculating π. William Shanks (1812– 2 + 2 = 4, and K(11111111) = 8. Let’s consider 1882) spent a good part of his life calculating the measure M(n) = I(n) + K(n) and run the value of π to 707 decimal places. In fact, through an actual computation. For example, this feat took Shanks over fifteen years—in consider the probability of getting four 1s and other words, he averaged only about one deci- four 0s, which is p(11110000) = p(11010010). mal digit per week! He died a happy man, This equals C(8,4) × 1/28 = 35/128. Also, thinking that he had left behind a major con- p(11111111) = 1/28 = 1/256. Hence, tribution to mathematics. To compute π, he M(11111111) = I(11111111) + K(11111111) = had used the formula

–log(1/256) + 8 = 8 + log(256); M(11110000) 1 1 π/4 = 4 tan–1( ⁄5) – tan–1( ⁄239). = I(11110000) + K(11110000) = –log(35/128) + 8 = 8 + log(128/35); M(11010010) = Unfortunately for Shanks, in 1944 D. F. Fer- I(11010010) + K(11010010) = –log(35/128) + guson calculated π and found that Shanks had 4 = 4 + log(128/35). Therefore, M(11111111) made an error in the 528th place, and the dig- > M(11110000) > M(11010010), which meets its thereafter were also incorrect. the test of common sense. To sum up, Joseph Pe proposes a final 1.9 A mathematical nomad. Paul Erdös measure, M(n) = I(n) + K(n). The problem (1913–1996). During the last year of his life, now reduces to minimizing this expression at age eighty-three, he continued to churn out over all length-8 binary strings, which can be theorems and deliver lectures, defying con- done by computer. I’d think the answer is not ventional wisdom that mathematics was a unique. young person’s sport. On this subject, Erdös My friend Daniel Dockery points out that a once said, “The first sign of senility is when a binary plate is rather limiting as to the num- man forgets his theorems. The second sign is ber of different possible plates. For example, when he forgets to zip up. The third sign is there are only 28 = 256 different possible when he forgets to zip down.” plates that have a mixture of two possible val- Paul Hoffman, the author of The Man Who

272 Answers bansw01.qxd 5/17/05 9:54 AM Page 273

Loved Only Numbers, notes that “Erdös detracted from the beauty of mathematics. thought about more problems than any other Like many other great male mathemati- mathematician in history and could recite the cians, Hardy did not seem to be very inter- details of some 1,500 papers he had written. ested in women. Calvin Clawson writes in Fortified by coffee, Erdös did mathematics 19 Mathematical Mysteries, “Whether Hardy, hours a day, and when friends urged him to himself, was a homosexual is not known, but slow down, he always had the same response: he had no meaningful relationships with ‘There’ll be plenty of time to rest in the women during his life except with his mother, grave.’” Erdös traveled constantly and lived and sister Gertrude.” out of a plastic bag, focusing totally on math- ematics at the expense of companionship, sex, 1.11 Animal math. The meaning of “counting” by and food. animals is a highly contentious issue among Erdös made an early mark on mathematics animal behavior experts. However, it seems at age eighteen, when he discovered an ele- clear that animals have some sense of number. gant proof of the theorem that for each integer H. Kalmus, writing in Nature (“Animals as n greater than 1, there is always a prime num- Mathematicians,” 202 [June 20, 1964]: 1156), ber between n and double the number, 2n. For notes that example, the prime number 3 lies between 2 There is now little doubt that some animals and 4. such as squirrels or parrots can be trained to count. . . . Counting faculties have been 1.10 Mirror phobia. The British mathematician reported in squirrels, rats, and for pollinat- G. H. Hardy (1877–1947). He hated mirrors ing insects. Some of these animals and oth- to such an extent that he covered mirrors in ers can distinguish numbers in otherwise any hotel rooms that he entered. He also similar visual patterns, while others can be intensely disliked having his photograph trained to recognize and even to reproduce taken and being touched by others. sequences of acoustic signals. A few can Hardy’s Course of Pure Mathematics, pub- even be trained to tap out the numbers of lished in 1908, was one of the first rigorous elements (dots) in a visual pattern. . . . The English treatises on numbers, functions, and lack of the spoken numeral and the written limits, and it transformed college mathemat- symbol makes many people reluctant to ics education. He is most famous for his col- accept animals as mathematicians. laborations with the mathematicians Littlewood and Ramanujan, and he con- Rats have been shown to “count” by perform- tributed much to the fields of Diophantine ing an activity the correct number of times in analysis, summation of series, and the distri- exchange for a reward. Chimpanzees can press bution of primes. numbers on a computer that match numbers of Hardy believed that the most profound and bananas in a box. Tetsuro Matsuzawa, of the beautiful mathematics was actually the least Primate Research Institute at Kyoto University useful. In his view, mathematical usefulness in Japan, taught a chimpanzee to identify

Answers 273 bansw01.qxd 5/17/05 9:54 AM Page 274

numbers from 1 to 6 by pressing the appropri- We can visualize the great one’s life on the ate key when she was shown a certain number number line in figure A1.2. Thus Diophantus of objects on the computer screen. lived 84 years. His son’s age at death was Michael Beran, at Georgia State University, (1/2)x or 42 years old. trained chimps to use a computer screen and a joystick. The screen flashed a numeral and then a series of dots, and the chimps had to match the two. One chimp learned numerals 1 to 7, while another managed to count to 6. When the chimps were tested again after a gap of three years, both chimps were able to match numbers, but with double the error rate. For more information, see “Chimps Remember How to Play the Numbers Games for Years,” New Scientist 180, no. 2421 (2003): 16. Figure A1.2 The life of Diophantus. 1.12 Mystery mathematician. His name was Diophantus, often known as the “father of 1.13 Mathematician starves. Kurt Gödel (1906– algebra,” who died at age 84 in the third cen- 1978), an eminent Austrian mathematician tury A.D. The famous puzzle is said to be and perhaps the most brilliant logician of this Diophantus’s epitaph, and it commemorates century. The implications of his “incomplete- his work on algebra, including the study of ness theorem” are vast, not only applying to Diophantine equations. Most of the details mathematics, but also touching on areas such of Diophantus’s life (including details that as computer science, economics, and nature. may be fictitious) come from the Greek One of his closest friends was Albert Einstein Anthology, compiled by Metrodorus around when Gödel was at Princeton. A.D. 500. This particular puzzle in Anthology When his wife, Adele, was not with him is said to have been written on Diophantus’s to coax him to eat—because she was in a tombstone. We can solve the problem as fol- hospital recovering from surgery—Gödel lows. Let x be the number of years he lived. stopped eating. He was paranoid and felt that Thus we have, people were trying to poison him. On Decem- (1/6)x + (1/12)x + (1/7)x + 5 + ber 19, 1977, he was hospitalized but refused (1/2)x + 4 = x food. He died on January 14, 1978. During his life, he had also suffered from nervous which simplifies to breakdowns and hypochondria. (25/28)x + 9 = x Gödel is perhaps the most interesting (25/28)x – x = –9 example of a mathematician studying cosmic –(3/28)x = –9 questions. Sometime in 1970, Gödel’s mathe- x = 84 years matical proof of the existence of God began

274 Answers bansw01.qxd 5/17/05 9:54 AM Page 275

to circulate among his colleagues. The proof hundreds of years for the appearance of more was less than a page long and caused quite a definite confirmations or refutations of some stir. You can see the proof later in this chapter. of his larger conjectures.” Gödel’s academic credits were impressive. Gödel himself spoke of the need for a For example, he was a respected mathemati- physical organ in our bodies to handle cian and a member of the faculty of the Uni- abstract theories. He also suggested that versity of Vienna starting in 1930. He also philosophy will evolve into an exact theory was a member of the Institute of Advanced “within the next hundred years or even Study in Princeton, New Jersey. He emigrated sooner.” He even believed that humans will to the United States in 1940. eventually disprove propositions such as Gödel is most famous for his theorem, pub- “there is no mind separate from matter.” lished in 1931, demonstrating that there must be true formulas in mathematics and logic 1.14 Mathematician murdered. Hypatia of that are neither provable nor disprovable, thus Alexandria (A.D. 370–415) was martyred by making mathematics essentially incomplete. being torn into shreds by a Christian mob— Gödel’s theorem had quite a sobering effect partly because she did not adhere to strict upon logicians and philosophers because it Christian principles. She considered herself a implies that within any rigidly logical mathe- neo-Platonist, a pagan, and a follower of matical system, there are propositions or Pythagorean ideas. Interestingly, Hypatia is questions that cannot be proved or disproved the first woman mathematician in the history on the basis of axioms within that system, of humanity of whom we have reasonably and, therefore, it is possible for basic axioms secure and detailed knowledge. She was said of arithmetic to give rise to contradictions. to be physically attractive and determinedly The repercussions of this fact continue to be celibate. When asked why she was obsessed felt and debated. Moreover, Gödel’s theorem with mathematics and would not marry, she put an end to a centuries-long attempt to replied that she was wedded to the truth. establish axioms that would provide a rigor- In one of her mathematical problems for ous basis for all of mathematics. her students, she asked them for the integer Over the span of his life, Gödel kept solution of the pair of simultaneous equations numerous notes on his mathematical ideas. x – y = a, x2 – y2 = (x – y) + b, where a and b Some of his work is so complex that mathe- are known. Can you find any integer values maticians believe that many more decades for x, y, a, and b that make both of these for- will be required to decipher all of it. The mulas true? author Hao Wang writes on this very subject The Christians were her strongest philo- in his book Reflections on Kurt Gödel (1987): sophical rivals, and they officially discouraged “The impact of Gödel’s scientific ideas and her teachings, which were Pythagorean in philosophical speculations has been increas- nature, with a religious dimension. On a ing, and the value of their potential implica- warm March day in A.D. 414, a crowd of tions may continue to increase. It may take Christian zealots seized her, stripped her, and

Answers 275 bansw01.qxd 5/17/05 9:54 AM Page 276

proceeded to scrape her flesh from her bones is best known as the creator of modern set using sharp shells. They then cut up her body theory. He is recognized by mathematicians and burned the pieces. Like many victims of for having extended set theory to the concept terrorism today, she may have been seized of transfinite numbers, including the cardinal merely because she was a famous person on and the ordinal number classes. Cardinal the other side of the religious divide. It was numbers are used to describe how many not until after the Renaissance that another objects are in a collection, that is, elements in woman, Maria Agnesi, made her name as a a set. Ordinal numbers are used to find the famous mathematician. proper order in a set. A number in a street address is an example of an ordinal number. 1.15 Going to the movies. Billion Dollar Brain, Whenever Cantor suffered from periods of 1967, starring Michael Caine as secret agent depression, he tended to turn away from Harry Palmer. An older movie that also mathematics and toward philosophy. qualifies is The Billion Dollar Scandal, 1932, To understand “transfinite numbers,” con- in which three ex-cons become involved sider a set that has a finite number of ele- with a financier who plans to swindle the ments. For example, such a set may contain 8 government. turtles (elements). The number of elements in 1.16 Movie title. “Fifty Million Frenchmen this set is called a cardinal number and is Can’t Be Wrong,” sung by Sophie Tucker and finite in this case. Cardinal numbers are num- performed with the Ted Lewis Band. The song bers used to denote the size of a set. If the set was recorded in 1927. Interestingly, the popu- is infinite, the corresponding cardinal number lation of Frenchmen was nowhere near 50 is called a transfinite (or infinite) cardinal million in 1927! number. The first transfinite number is denoted ℵ . (Aleph, or ℵ, is the first letter of Lesser known and shorter movies include 0 the Hebrew alphabet.) For example, ℵ is the Genesis: Four Billion Years in the Making, 0 starring Paul Novros, 1999 (run time: 32 min- cardinal number of the set of all integers. utes). If one considers “infinity” a number, Mathematicians deal with “higher” levels of infinity, denoted by ℵ , ℵ , and so forth, another classic movie is Slave Girls from 1 2 Beyond Infinity, 2002, in which a pair of which will be clarified in chapter 2. bikini-clad babes escape from a prison in Cantor was also fascinating because of his outer space and land on a strange jungle religious interests. Interestingly, the Jesuits planet. Also, Matthew Broderick and Patricia used his theories of transfinite numbers to Arquette starred in the 2002 movie Infinity—a “prove” the existence of God and the Holy true-life romantic drama based on the life Trinity. Although Cantor, who was also an of the famous A-bomb physicist Richard excellent theologian, distanced himself from Feynman. such “proofs,” he did equate his concept of the Absolute Infinite with God. He once 1.17 Math and madness. Georg Cantor wrote, “I entertain no doubts as to the truths (1845–1918), a German mathematician who of the transfinites, which I recognized with

276 Answers bansw01.qxd 5/17/05 9:54 AM Page 277

God’s help and which, in their diversity, I organization and style, but not for their con- have studied for more than twenty years; tent. Cantor claimed and believed in the every year, and almost every day brings me absolute truth of his “theories” because they further in this science.” He frequently suffered had been revealed to him. Thus, Cantor saw from bouts of depression, which forced him to himself as God’s messenger, and he desired to become hospitalized. use mathematics to serve the Christian faith. Cantor believed that God ensured the exis- Cantor said that he knew the transfinites were tence of these transfinite numbers. Cantor real because “God had told me so,” and it regarded the transfinite numbers as leading would have diminished God’s power had God directly to the Absolute, to the one “true infin- only created finite numbers. ity” that was incomprehensible within the bounds of man’s understanding. Constantin 1.18 Numerical religion. Pythagoras (569 B.C.– Gutberlet, one of Cantor’s contemporaries, 475 B.C.). This Greek philosopher was respon- worried that Cantor’s work with mathematical sible for important developments in mathe- infinity challenged the unique, “absolute matics, astronomy, and the theory of music. infinity” of God’s existence. However, Cantor He and his followers are attributed with assured Gutberlet that instead of diminishing discovering that the sum of the angles of a tri- the extent of God’s dominion, the transfinite angle is equal to two right angles and deter- numbers actually made it greater. After talk- mining that for a right-angled triangle, the ing to Gutberlet, Cantor became even more square of the hypotenuse is equal to the sum interested in the theological aspects of his of the squares of the other two sides. Pythago- own theory on transfinite numbers. ras and his followers were vegetarians and Gutberlet subsequently made use of wore white clothes. They believed that num- Cantor’s ideas, including that God ensured bers were divine ideas that created and main- the existence of Cantor’s transfinite numbers. tained the universe. Studying arithmetic was In addition, God ensured the ideal existence the way to perfection and led to an under- of infinite decimals, the irrational numbers, standing of the divine plan for the universe. and the exact value of pi. Gutberlet also believed that God was capable of resolving 1.19 Modern mathematical murderer. Theodore various paradoxes that seem to arise in Kaczynski (b. 1942) is certainly one of the mathematics. most murderous mathematicians. Ted Cantor’s own religiosity grew as a result of Kaczynski, also known as the Unabomber, his contact with various Catholic theologians. was a mathematician who rose swiftly to In 1884, Cantor wrote to the Swedish mathe- academic heights even as he became an matician Gösta Mittag-Leffler, explaining that emotional cripple, a loner, and a murderer. he was not the creator of his new work but Kaczynski’s twenty-five-year self-imposed merely a reporter. God had provided the inspi- exile in the Montana woods was particularly ration, leaving Cantor responsible only for the appropriate for this man who had always been way in which his papers were written, for the alone.

Answers 277 bansw01.qxd 5/17/05 9:54 AM Page 278

Before he had become a hermit, Kaczynski 362,880 ways. As James Curran notes at wrote several notable papers on the mathe- noveltytheory.com, we may arrive at this matical properties of functions in circles and number by observing that the first player (X) boundary functions. Although his IQ was has a choice of making 9 opening moves. measured as 170, he exhibited many odd Next, the O player can move to any of 8 characteristics: excessive (pathological) shy- vacant cells. Hence, there could be 72 (9 × 8) ness, a fascination with body sounds, a metro- possible boards with one X and one O. On the nomic habit of rocking, and frequent concerns third move, the X player can choose any of about germs, infections, and other health mat- the 7 remaining spots, and then O has 6 cells ters. His room at school stank of rotting food to choose from. If we continue this logic, we and was piled high with trash. find that there are 362,880 (9! or 9 × 8 × 7 × 6 After teaching for two years and publishing × 5 × 4 × 3 × 2 × 1) different complete games. mathematical papers that impressed his peers In real life, there are fewer games, because and put him on a tenure track at one of the many real games finish in a few moves. nation’s most prestigious universities, he sud- Although this is the number of different denly quit. He spent nearly half his life in the move sequences for a “game” (not consider- woods, killed three strangers, and injured ing that a game could end before the board is twenty-two others using bombs sent in the filled with symbols), it is not the number of mail. Kaczynski’s killings grew from his different patterns or configurations that the deluded attempts to fight against what he per- board can exhibit. For example, note that ceived as the evils of technological progress. many different sequences of moves can give He was finally arrested in 1996 at his remote rise to the same pattern of Xs and Os on a cabin in Montana. One of his math papers is board. Consider that there are 9 cells that can T. J. Kaczynski, “Boundary Functions for exist in one of three states (X, O, or empty). Bounded Harmonic Functions,” Transactions This implies that there can be only 19,683 (39 of the American Mathematics Society 137 or 3 × 3 × 3 × 3 × 3 × 3 × 3 × 3 × 3) different (1969): 203–09. board configurations or images. This number is reduced further by our noting that many of 1.20 The ∞ symbol. The English mathematician these configurations will never be achieved in John Wallis (1616–1703) introduced the normal tic-tac-toe play. For example, a board mathematical symbol for infinity (∞) in 1655 filled with nine Os will never occur. in his Arithmetica Infinitorum. I don’t think it When we consider that various possible appeared very often in print again until Jakob games are either a reflection or a rotation of Bernoulli (1654–1705) published Ars Con- others, there are 48 possible rational out- jectandi (posthumous publication in 1713). comes of tic-tac-toe, all of them draws.

1.21 Mathematics of tic-tac-toe. As simple as 1.22 Chickens and tic-tac-toe. I can only guess the playing board is, players can place their at how the chicken challenge works. If it’s Xs and Os on the tic-tac-toe board in 9! = like any of the tic-tac-toe-playing chicken

278 Answers bansw01.qxd 5/17/05 9:54 AM Page 279

machines in the past, the chicken does not work helped to shorten World War II. For this know how to play tic-tac-toe. The board is contribution, he was awarded the Order of the placed in such a way that the human player British Empire. When he called the police to can’t really see where the chicken is pecking. investigate a burglary at his home, a homo- It’s true that the chicken pecks at the board phobic police officer suspected that Turing and gets some food as reward, but a computer was homosexual. Turing was forced to make a decides where the actual move is placed. The decision. He could either go to jail for a year player sees the chicken peck and an X or an O or take experimental drug therapy. His death light up on the board. The human beings are two years after the therapy, in 1954, at age so distracted that they never think about forty-two, was a shock to his friends and fam- where the chicken actually pecks. ily. Turing was found in bed. The autopsy indicated cyanide poisoning. Perhaps he had 1.23 First female doctorate. Sofia Kovalevskaya committed suicide, but to this day we are not (1850–1891). Kovalevskaya made valuable certain. contributions to the theory of differential equations and was the first woman to receive 1.25 Mathematician cooks. Jean Baptiste Fourier a doctorate in mathematics. (1768–1830) was a French mathematician and Like most other mathematical geniuses, a physicist who is best known for initiating Sofia fell in love with mathematics at a very the investigation of Fourier series—a repre- young age. She wrote in her autobiography: sentation of a periodic function as a sum of “The meaning of these concepts I naturally trigonometric functions. He is also famous for could not yet grasp, but they acted on my explaining the propagation of heat. Perhaps imagination, instilling in me a reverence for his interest in heat led him to believe that heat mathematics as an exalted and mysterious sci- was healthful. Toward the end of his life, he ence which opens up to its initiates a new covered his body with layers of clothing and world of wonders, inaccessible to ordinary kept his room so hot that it was unbearable to mortals.” When Sofia was eleven years old, the others. He left his home less and less. Accord- walls of her bedroom were papered with the ing to Theoni Pappas, the author of Mathemat- mathematician Mikhail Ostrogradski’s lecture ical Scandals, the heat may have exacerbated a notes on differential and integral analysis. In heart condition that led to his death. 1874 Kovalevskaya received her doctorate, summa cum laude, from Göttingen University. 1.26 Mathematics and money. I asked a number However, despite this doctorate and enthusias- of colleagues this question, thinking that tic letters of recommendation from Weier- surely an increased salary for mathematics strass, Kovalevskaya was unable to obtain an teachers would improve mathematics educa- academic position because she was a woman. tion. However, most of my colleagues said that a disparity in income between mathemat- 1.24 Mathematics and homosexuality. Alan Tur- ics teachers and teachers in other fields would ing, a computer theorist, whose code-breaking be harmful both to mathematics education

Answers 279 bansw01.qxd 5/17/05 9:54 AM Page 280

and to education as a whole. Some worried were directed to the best- and poorest- that this sudden surge in salary would cause performing students, but the average student fewer teachers to be hired because either pri- was sometimes overlooked. vate or public funds would have to pay for the Another respondent said that the main increase. In addition, many teachers outside effect of doubling math teachers’ salaries of mathematics would suddenly become would be to “get all the non-math teachers unhappy and would attempt to become very angry.” He wrote, “A problem as impor- mathematics teachers, which would not actu- tant as that of teachers’ salaries is student ally improve mathematics education. Also, motivation. Today, there is much less interest this diaspora of teachers from other areas in learning and understanding anything tech- would decrease quality in those fields. nical or rigorous than there has been in the Many respondents wondered where the past. I see this in my own kid and also in the money would come from. If the amount of decreasing number of students selecting tech- money allocated to education was constant, nical majors in college and other ways. Does the money would have to come from other it matter? I think so. What to do about it? I education areas, which would be harmful. don’t know. I think there’s a certain kind of Over time, however, the mathematical educa- anti-intellectualism which is fostered by mass tional levels would rise, as new people chose media, by computer games, and by parents. careers as mathematics teachers, due to the This is difficult to fix, even after you’ve con- higher salaries. Competition would increase, vinced the world that it’s worth fixing.” and only the best candidates would be suc- Because my respondents painted such a cessful in getting a position. Nonetheless, bleak picture with respect to increasing the shortages might occur in other areas, decreas- salary of math teachers, I would be interested ing educational quality overall. in hearing from those of you with opposing Some colleagues said that increasing the views. number of math teachers would be useful, but they thought it would be more useful to show 1.27 Mad mom tortures mathematician daughter. the current math teachers how to teach math Ada Lovelace, the daughter of Lord Byron to make it “twice as interesting and something (the poet) and the first computer programmer. students consider worthwhile learning.” Oth- She analyzed and expanded upon Charles ers suggested that the greatest improvements Babbage’s plans for difference and analytical would come from allowing math teachers to engines, and she explained how the machines teach advanced classes that are arbitrarily could tackle problems in astronomy and math- small, yet still pay them for working. A com- ematics. While married to William King, she mon sentiment was expressed in one respon- fell in love with the mathematician John dent’s statement: “Calculus in my high school Crosse and became obsessed with gambling. was available with a class size of 25, but num- During the last year of her life, Ada’s cervi- ber theory would never fly with a class size of cal cancer progressed slowly, and her mother 5.” Some suggested that educational resources took charge of her care. When Ada confessed

280 Answers bansw01.qxd 5/17/05 9:54 AM Page 281

her affair with Crosse, her mother promptly believing in the reality of angels, demons, and discarded all of Ada’s morphine and opium— Satan. He believed in a literal interpretation of the only thing holding the horrific pain at Genesis and believed Earth to be only a few bay—so that Ada’s soul would be redeemed. thousand years old. In fact, Newton spent Ada’s last days were spent in agony, as her much of his life trying to prove that the Old mother watched but did nothing. Testament is accurate history. One wonders how many more problems in 1.28 Mathematician pretends. Alhazen physics Newton would have solved if he had (965–1039). Al-Hakim, the ruler of Egypt, spent less time on his biblical studies. Newton was angry with Alhazen when Alhazen made appears not to have had the slightest interest gross errors in his ability to predict and con- in sex; he never married and almost never trol the Nile’s flooding. To save himself from laughed (although he sometimes smiled). In execution, Alhazen pretended to be insane and 1675, Newton suffered a massive mental was placed under house arrest. When he was breakdown, and some have conjectured that not feigning insanity, Alhazen made important throughout his life, he was a manic depressive discoveries in optics, describing various with alternating moods of melancholy and aspects of light reflection, magnification, and happy activity. Today we would classify this the workings of the eye. as bipolar disorder.

1.29 Mathematician believes in angels. Sir Isaac 1.30 History’s most prolific mathematician. Leon- Newton (1642–1727), a brilliant English hard Euler (1707–1783), whom we mentioned mathematician, a physicist, and an astronomer. before as also being a religious mathemati- We discussed Newton earlier in this chapter. cian. He was the Swiss mathematician who, He and Gottfried Leibniz invented calculus when he was completely blind, made great independently. Isaac Newton was so contributions to modern analytic geometry, influential that some extra background into trigonometry, calculus, and number theory. his odd life may appeal to you. Newton’s Euler published over 8,000 books and papers, father died before his son was born on almost all in Latin, on every aspect of pure Christmas Day, 1642. In his early twenties, and applied mathematics, physics, and astron- Newton invented calculus, proved that white omy. In analysis, he studied infinite series and light was a mixture of colors, explained the differential equations, introduced many new rainbow, built the first reflecting telescope, functions (e.g., the gamma function and ellip- discovered the binomial theorem, introduced tic integrals), and created the calculus of vari- polar coordinates, and showed that the force ations. His notations, such as e and π, are still causing apples to fall (gravity) is the same as used today. In mechanics, he studied the the force that drives planetary motions and motion of rigid bodies in three dimensions, produces tides. the construction and the control of ships, and Many of you probably don’t realize that celestial mechanics. Newton was also a biblical fundamentalist, Leonhard Euler was so prolific that his

Answers 281 bansw01.qxd 5/17/05 9:54 AM Page 282

papers were still being published for the first his discoveries could be appreciated. His time two centuries after his death. His col- legacy has greatly impacted twentieth-century lected works have been printed bit by bit since mathematics, and his mathematical reputation 1910 and will eventually occupy more than rests on fewer than one hundred pages of seventy-five large books. posthumously published work of original genius. 1.31 Suicidal mathematician. Évariste Galois (1811–1832) was famous for his contributions 1.32 Marry a mathematician? I asked dozens of to group theory and for formulating a method colleagues if they would rather marry the best of determining when a general equation could mathematician in the world or the best chess be solved by radicals. player. Not a single person chose the chess Although he obviously knew more than player. enough mathematics to pass the Lycée’s Jon A. replied, “I choose the best mathemati- examinations, Galois’s solutions were often so cian. I would tire quickly of playing chess with innovative that his university examiners failed someone who can beat me in less than twenty to appreciate them. Also, Galois would per- moves. I could probably have a lot more stimu- form so many calculations in his head that he lating conversation with a mathematician.” did not bother to clearly outline his arguments David J. assumed that the best chess player on paper. For these reasons, in addition to his would have a very rigorous touring schedule, temper and rashness, he was denied admis- leaving many nights where he could not be sion to the Ecole Polytechnique. with his wife. Thus, he preferred marrying the When he was taunted into a duel, he mathematician. However, he wondered what it accepted, knowing he would die. The circum- would mean to be “the best mathematician in stances that led to Galois’s death have never the world.” been fully explained. It has been variously Edith R. says she’d prefer the mathemati- suggested that it resulted from a quarrel over cian. However, she says she’s met good chess a woman, that he was challenged by royalists players and good mathematicians, and “both who detested his republican views, or that an species are often prone to soaring egos and agent provocateur of the police was involved. boring speech making. However, while In any case, when preparing for the end, mathematicians are obsessive, they are gener- Galois spent the entire night feverishly writ- ally open, at least occasionally, to conversa- ing his mathematical ideas and discoveries in tions on other subjects. Chess nuts tend to be as complete a form as he could. single-minded.” The next day, Galois was shot in the David P. said that there isn’t much to talk stomach. He lay helpless on the ground. There about in chess except for move sequences and was no physician to help him, and the victor historical games. casually walked away, leaving Galois to writhe in agony until he died. Not until 1846 1.33 Mathematical corpse. I posed this question had group theory advanced sufficiently that to dozens of colleagues. A majority of friends

282 Answers bansw01.qxd 5/17/05 9:54 AM Page 283

feared the corpse with the fancier equation not be clear whether the prospective dating because they felt that it implied a genius mur- partner saw herself as predator or as prey. derer on par with the infamous, brilliant Han- nibal Lecter, portrayed by Anthony Hopkins 1.35 Fundamental Anagram of Calculus. Isaac in the movie The Silence of the Lambs. Newton and Gottfried Wilhelm Leibniz had a feud over who really discovered calculus. One 1.34 Blind date. I posed this question to bril- incident from 1677 is particularly interesting liant mathematical colleagues. They all said and relevant. At this time Newton was answer- that they would not go on the date because ing several of Leibniz’s questions about infi- they recognized the tattoos as representing the nite series. In his letter, Newton came close to famous “casualty equation” that F. W. Lan- revealing his “fluxional method”—that is, chester created in 1914. In particular, the Lan- Newton’s own version of calculus. However, chester equation describes enemy casualty instead of revealing the method, Newton con- rates in war! R and B represent the numbers, cealed it in the form of an anagram. Perhaps at the time t, of opposing Red and Blue Newton used the anagram because he didn’t want Leibniz to scoop him and also because armies, and kB and kR are the killing rates of the Blue and the Red armies. My friend Gra- Newton wanted a way to demonstrate that he ham Cleverley responded, “The fact that the had actually known about calculus should he blind date has these for tattoos suggests a have to prove this at a later date. Whatever the somewhat gloomy preoccupation.” He also reason, Newton was not ready to give a full would not go on a date with a woman who explanation. After Newton described his meth- had these tattoos: ods of tangents and finding maxima and min- ima, he wrote to Leibniz:

dx The foundations of these operations are =−Ax Bxy evident enough, in fact; but because I can- dt not proceed with the explanation of it now, dy I have preferred to conceal it thus =−Cy + Dxy dt 6accdae13eff7i3l9n4o4qrr4s8t12ux On this foundation I have also tried to sim- These are the Lotka-Volterra equations that plify the theories which concern the squar- describe predator-prey relationships, such as ing of curves, and I have arrived at certain the number of foxes and hens as a function general theorems. (Richard Westfall, Never of time. A is the growth rate of prey; B is the at Rest [New York: Cambridge University rate at which predators destroy prey; C is the Press, 1980], 265. Also see www.seanet. death rate of predators, and D is the rate at com/~ksbrown/kmath414.htm.) which predators increase by consuming prey. Graham considers this tattoo indicative of a The anagram expresses, in Newton’s possible “fatal attraction.” Of course, it might terminology and in Latin, the fundamental

Answers 283 bansw01.qxd 5/17/05 9:54 AM Page 284

theorem of calculus: “Data aequatione quot- new—the idea occurs in the many-worlds cunque fluentes quantitates involvente, flux- interpretation of quantum mechanics and the iones invenire; et vice versa,” which means branch of inflation theory, suggesting that “Given an equation involving any number of our universe is just a tiny bubble in a tremen- fluent quantities to find the fluxions, and vice dously bigger universe. In Marcus Chown’s versa.” (Fluxion was Newton’s term for “Anything Goes,” appearing in the June 1998 “derivative.”) The numbers in the anagram issue of New Scientist, Tegmark suggests that count the number of letters in the sentence. there is actually greater simplicity (e.g., less For example, “6a” corresponds to the 6 occur- information) in the notion of a multiverse rences of the letter a in the sentence. There than in an individual universe. are 13 occurrences of the letter e, and so To illustrate this argument, Tegmark gives forth. the example of the rational numbers. A useful Interestingly, neither Leibniz nor Newton definition of something’s complexity is the had published papers on calculus at the time length of a computer program that is needed this letter was exchanged, although both to generate it. Consider how difficult it could probably were well versed in the subject. be to generate an arbitrarily chosen number Thus, if Newton had avoided using the ana- between 0 and 1, the arbitrary number speci- gram and had sent Leibniz an explicit state- fied by an infinite number of digits. Express- ment about his calculus, Newton might have ing the number would require an infinitely established his superior knowledge beyond long computer program. On the other hand, if doubt. Instead, Newton’s secret anagrams you were told to write a program that pro- caused him to lose his possible claim to cal- duced all the rational numbers, the instruc- culus and led to heated arguments that tions would be easy: plagued his and Leibniz’s lives for years to come. K := 2; while K > 1 do begin if K mod 2 = 0 then 1.36 Parallel universes and mathematics. This for J:= 1 to K – 1 do output question would be impossible to answer (J,'/',K – J) unless you are familiar with the work of Max else for J:= K – 1 down to 1 do Tegmark. For the moment, let’s talk about the output(J,'/ ',K – J) multiverse, God, and the physics of poly- K := K + 1; theism. In 1998, Max Tegmark, a physicist end; formerly at the Institute for Advanced Study at Princeton, New Jersey, used a mathemati- This produces all the rational numbers, start- cal argument to bolster his own theory of the ing with 1/1, 2/1, 1/2, 1/3, 2/2, 3/1, 4/1, 3/2, existence of multiple universes that “dance to 2/3, 1/4, . . . . (The mod statement in the pro- the tune of entirely different sets of equations gram lists the rationals in the order used by of physics.” The idea that there is a vast Cantor to produce his proof of their countabil- “ensemble” of universes (a multiverse) is not ity, which you will see in chapter 6.) This

284 Answers bansw01.qxd 5/17/05 9:54 AM Page 285

program would be easy to write, which means Gödel’s Mathematical Proof that creating all possibilities may, in some of God’s Existence cases, be much simpler than creating one very Axiom 1. (Dichotomy) A property is posi- specific possibility. Tegmark extrapolates this tive if and only if its negation is idea to suggest that the existence of infinitely negative. many universes γ , γ , γ , . . . γ is simpler, 1 2 3 ∞ Axiom 2. (Closure) A property is positive less wasteful, and more likely than just a sin- if it necessarily contains a posi- gle universe γ. tive property. Could one extend Tegmark’s reasoning to God and argue that the existence of infinitely Theorem 1. A positive property is logically γ γ γ γ consistent (i.e., possibly it has many gods, 1, 2, 3, . . . ∞, is more likely than just a single God, γ? Obviously, this is a some instance). controversial application of Tegmark’s theo- Definition. Something is Godlike if and ries and a wild stretch of the imagination, but only if it possesses all positive the Old Testament gives numerous examples properties. that may suggest the existence of multiple Axiom 3. Being Godlike is a positive γ gods, n, n > 1; for example, “Among the gods property. there is none like you, O Lord; no deeds can Axiom 4. Being a positive property is compare with yours” (Psalm 86:8); “I will (logical, hence) necessary. bring judgment on all the gods of Egypt” Definition. A property P is the essence of x (Exodus 12:12); or, “You shall have no other if and only if x has P and P is gods before me” (Exodus 20:3). necessarily minimal. The physicist Dan Platt points out that the notion of a “multiverse” can be traced back to Theorem 2. If x is Godlike, then being God- the mathematician Gottfried Wilhelm Leibniz like is the essence of x. (1646–1716), who explored one aspect of Definition. NE(x): x necessarily exists if it theodicy—why is there evil in the world if has an essential property. God is all-powerful and good? Leibniz sug- Axiom 5. Being NE is Godlike. γ gested that our universe, , was the best of all Theorem 3. Necessarily there is some x such possible universes, γ , γ , γ , . . . γ , and the 1 2 3 ∞ that x is Godlike. evil in it was unfortunate—but at least our universe exhibited the smallest amount of evil I obtained this proof from Hao Wang, one could hope for. Reflections on Kurt Gödel (Cambridge, Mass.: MIT Press, 1987), page 195. How shall we 1.37 One-page proof of God’s existence. Some- judge such an abstract proof? How many time in 1970, Kurt Gödel’s mathematical people on Earth can really understand it? Is proof of the existence of God began to circu- the proof a result of profound contemplation late among his colleagues. The proof was less or the raving of a lunatic? Recall that Gödel’s than a page long and caused quite a stir: academic credits were impressive. For

Answers 285 bansw01.qxd 5/17/05 9:54 AM Page 286

example, he was a respected mathematician 941432434315126593210548723 and a member of the faculty of the University 904868285129134748760276719 of Vienna starting in 1930. He emigrated to 592346023858295830472501652 the United States in 1940 and became a mem- 325259296925727655364363462 ber of the Institute of Advanced Study in 727184012012643147546329450 Princeton, New Jersey. 1278472648410756223478962672 8592858295347502772262646456 217613984829519475412398501 1.38 Song lyrics. According to Robert Munafo, the answer is 100 billion, a number mentioned Why does the movie usually focus on 216 in “Message in a Bottle” by the Police. The digits? Notice that if we multiply the digits × × precise lyric is, “A hundred billion bottles in the number of the beast, we get: 6 6 washed up on the shore.” 6 = 216. Also, Kabbalists suggest that a mys- terious name for God exists that has 72 sylla- ble, or parts, each composed of three Hebrew 1.39 Jews, π, the movie. In the 1998 movie π, letters. Thus, this name for God has 216 let- the Hasidic Jews interested in Kabbalah are ters. This name is composed by scrambling searching for a sequence of 216 Hebrew let- letters in the words of Exodus 14:19–21, ters, or a 216-digit number equivalent. This each of these verses having 72 letters. For discovery may hold the key to unlocking other possible reasons for using 216, see the God’s true name, which was destroyed with factoid Anamnesis and the number 216 in this the Temple by the Romans. chapter. The movie is notable in that it features a mathematical genius named Max who is 1.40 Mathematics and romance. It’s My Turn obsessed with numbers. In fact, he rarely (1980) stars Jill Clayburgh, who plays a math- leaves his apartment and sees numbers and ematics professor. In the opening scene, she number patterns in everything around him. proves the famous “snake lemma” of homo- When his computer displays the mystical 216- logical algebra to an obnoxious graduate stu- digit number, it crashes and strangeness dent. You can learn more about the snake ensues. Some believe that the number actually lemma here: Mathworld, “SnakeLemma,” makes the computer conscious. Max decides mathworld.wolfram.com/SnakeLemma.html. that the 216-digit number is responsible for his own ill health, and he drills a hole in his own skull as a cure. 1.41 Greek death. According to Adrian Room’s The computer guru Michael Egan points The Guinness Book of Numbers, if we multiply out that the movie does not always display the 1 through 8 by 8 and then add the resultant same 216 digits when referring to the mysti- digits until one digit remains, the 8 in the last cal number, and sometimes it shows a 218- column gradually “dies” to 1. The Greeks and digit number as the God number: other cultures considered this significant.

286 Answers bansw01.qxd 5/17/05 9:54 AM Page 287

Add Digits 1.44 First mathematician. Thales of Miletus Multiply Add Digits Again (634–548 B.C.), who established a school of mathematics and philosophy. He lived in 1 × 8 = 8 8 8 Miletus, Asia Minor (now Turkey). 2 × 8 = 16 7 7 3 × 8 = 24 6 6 1.45 Game show. The $64,000 Question has 4 × 8 = 32 5 5 its origin in the 1940 U.S. radio show Take It or Leave It, which offered prizes ranging 5 × 8 = 40 4 4 from $1 to $64. The original colloquialism 6 × 8 = 48 12 3 was “the $64 question,” which signified an × 7 8 = 56 11 2 “important” question. The phrase was so pop- 8 × 8 = 64 10 1 ular that the name of the radio show changed to The $64 Question in 1950. The number 64 is useful because it is a power of 2 and 1.42 The Matrix. “IS 5416.” In Isaiah 54:16, we thus fits well with games that involve dou- find: “Behold, I have created the smith that bling of monetary awards, as in the sequence: bloweth the coals in the fire, and that bringeth 1, 2, 4, 16, 32, 64. forth an instrument for his work; and I have created the waster to destroy.” Agent Smith 1.46 Famous epitaphs. The variable x is Isaac was a destroyer and an adversary to The Newton, and y is Ludwig Boltzmann. Matrix’s main character, Neo. “S = klnW ” describes the entropy of a system. Of this equation, Adrian Cho writes in the 1.43 At the movies. 20,000 Leagues under the August 23, 2002, issue of Science (“A Fresh Sea, by Jules Verne (1870). In the movie, a Take on Disorder”): “No less important than professor (played by Paul Lukas) seeks the Einstein’s E = mc2, the equation provides truth about a legendary sea monster in the the mathematical definition of entropy, a years just after the Civil War. Later the profes- measure of disorder that every physical sor, his aide (Peter Lorre), and a harpoon system strives to maximize. The equation master (Kirk Douglas) discover that the mon- serves as the cornerstone of ‘statistical ster is actually a submarine run by Captain mechanics,’ and it has helped scientists deci- Nemo (James Mason). pher phenomena ranging from the various Also, note that there was a popular movie, states of matter to the behavior of black holes The Beast from Twenty Thousand Fathoms to the chemistry of life.” (1953), that depicts how an atom bomb awak- ens a prehistoric monster. However, the title 1.47 Secret mathematician. A mathematician for the short story version of Beast was named “N. Bourbaki” never existed. In the merely “The Foghorn.” In Ray Bradbury’s 1930s, a group of mostly French mathemati- “The Foghorn,” a sea monster mistakes a cians referred to themselves as “N. Bourbaki.” foghorn for the mating cry of a female. Their primary goal was to write a very

Answers 287 bansw01.qxd 5/17/05 9:54 AM Page 288

rigorous unified account of all mathematics, acquired knowledge is not inherited, but our and the group produced the following vol- mathematical capacity is a function of our umes: I Set Theory, II Algebra, III Topology, brain. There is an organic limit to our mathe- IV Functions of One Real Variable, V Topo- matical depth. logical Vector Spaces, VI Integration, and, How much mathematics can we know? later, VII Commutative Algebra, and VIII Lie The body of mathematics has generally Groups. Members of Bourbaki were very increased from ancient times, although this secretive and had to resign by age fifty. has not always been true. Mathematicians in Europe during the 1500s knew less than 1.48 How much? Of course, there is no easy Grecian mathematicians did at the time of answer to this question. In my book The Archimedes. However, since the 1500s, Loom of God, I note how difficult it would be humans have made tremendous excursions for a chimpanzee to understand the signifi- along the vast tapestry of mathematics. Today cance of prime numbers, yet the chimpanzee’s several hundred thousand mathematical theo- genetic makeup differs from ours by only a rems are proved each year. few percentage points. These minuscule In the early 1900s, a great mathematician genetic differences in turn produce differences was expected to comprehend the whole of in our brains. Additional alterations of our known mathematics. Mathematics was a shal- brains would admit a variety of profound low pool. Today the mathematical waters have concepts to which we are now totally closed. grown so deep that a great mathematician can What mathematics is lurking out there that know only about 5 percent of the entire cor- we can never understand? How do our pus. What will the future of mathematics be brains affect our ability to contemplate God? like, as specialized mathematicians know What new aspects of reality could we absorb more and more about less and less until they with extra cerebrum tissue? And what exotic know everything about nothing? formulas could swim within the additional folds? Philosophers of the past have admitted 1.49 Nobel Prize. Nobel prizes were instituted that the human mind is unable to find answers by the will of Alfred Nobel, a Swede who was to some of the most important questions, but a chemist, an industrialist, and the inventor of these same philosophers rarely thought that dynamite. Since 1901, prizes have been our lack of knowledge was due to an organic awarded for achievements in Physics, Chem- deficiency shielding our psyches from higher istry, Physiology or Medicine, Literature, and knowledge. Peace—but not mathematics. Legend says If the Yucca moth, with only a few ganglia that Nobel ignored mathematics because his for its brain, can recognize the geometry of mistress or wife rejected him for Gösta the yucca flower from birth, how much of our Mittag-Leffler, a mathematician. However, mathematical capacity is hardwired into our little or no historical evidence exists for this convolutions of cortex? Obviously, specific story. Rather, Nobel probably excluded math- higher mathematics is not inborn, because ematics simply because he did not consider it

288 Answers bansw01.qxd 5/17/05 9:54 AM Page 289

a “practical” science that had much impact on Even during Roman times, Roman numerals society. Also, other prizes for mathematics were used more to record numbers, while existed during Nobel’s life. most calculations were done by using the aba- cus and piling up stones. 1.50 Roman numerals. In the Middle Ages, Note that the number of characters in the most of Europe switched from Roman to Roman numerals for 1, 2, 3, 4, 5, 6, 7, 8, 9, “Arabic numerals,” similar to those we use 10, . . . (or I, II, III, IV, V, VI, VII, VIII, IX, X, today. This isn’t to say that Roman numerals . . .) is 1, 2, 3, 2, 1, 2, 3, 4, 2, 1, 2, 3, 4, . . . . disappeared entirely in the Middle Ages. When this sequence is plotted for different Many accountants still used them because ranges—like the range 1 to 20, 1 to 200, and 1 addition and subtraction can sometimes be to 2,000—a scale-invariant, fractal-like easy with Roman numerals. For example, if stairstep pattern emerges. you want to subtract 15 from 67, in the Arabic system you subtract 5 from 7, and 1 from 6. 1.51 Mathematical universe. First, let me give But in the Roman system, you’d simply erase some background to this question. Marilyn an X and a V from LXVII to get LII. In many vos Savant is listed in the Guinness Book of instances, it’s subtraction by erasing. World Records as having the highest IQ in the However, Arabic numerals are superior world—an awe-inspiring 228. She is the to Roman numerals because Arabic numerals author of several delightful books and is the have a “place” system, in which the value wife of Robert Jarvik, M.D., the inventor of of a numeral is determined by its position. A the Jarvik 7 artificial heart. Her column in “1” can mean 1, 10, 100, or 1,000, depending Parade magazine is read by 70 million people on its position in a numerical string. This is every week. One of her readers once asked one reason it’s so much easier to write 1998 her, “Why does matter behave in a way that is than MCMXCVIII—1,000 (M) plus 100 less describable by mathematics?” She replied, than a 1,000 (CM) plus 10 less than a 100 “The classical Greeks were convinced that (XC) plus 5 (V) plus 1 plus 1 plus 1 (III). nature is mathematically designed, but judg- Try doing arithmetic with this Roman mon- ing from the burgeoning of mathematical strosity. Positional notation greatly simplifies applications, I’m beginning to think simply all forms of written numerical calculation, that mathematics can be invented to describe and I suspect that many of our most abstract anything, and matter is no exception.” theories in physics and math could not have Marilyn vos Savant’s response is certainly been contemplated if we still used Roman one with which many people would agree. numerals. However, the fact that reality can be described My guess is that during the Middle Ages, or approximated by simple mathematical the calculational demands of capitalism elimi- expressions suggests to me that nature nated any resistance to the “infidel symbol” of has mathematicsr rat its core. Formulas like zero and ensured that by the early seventeenth EmcFma==2,,1 + eiπ = 0, and λ = h/mv century, Arabic numerals reigned supreme. all boggle the mind with their compactness

Answers 289 bansw01.qxd 5/17/05 9:54 AM Page 290

2 and profundity. E = mc is Einstein’sr r equation Here Gardner suggests that simple mathe- relating energy and mass. Fma= is matics governs nature from the molecular Newton’s second law: force acting on a body to galactic scales. Rudolf Carnap, an impor- is proportional to its mass and its acceleration. tant twentieth-century philosopher of 1 + eiπ = 0 is Euler’s formula relating three science, profoundly asserts, “It is indeed a fundamental mathematical terms: e, π, and i. surprising and fortunate fact that nature can The last equation, λ = h/mv, is De Broglie’s be expressed by relatively low-order mathe- wave equation, indicating that matter has both matical functions.” wave and particle characteristics. Here the To best understand Carnap’s idea, consider Greek letter lambda, λ, is the wavelength of the first great question of physics: “How do the wave-particle, and m is its mass. These things move?” Imagine a universe called examples are not meant to suggest that all JUMBLE, where Kepler looks up into the heav- phenomena, including subatomic phenomena, ens and finds that most planetary orbits can- are described by simple-looking formulas; not be approximated by ellipses but rather by however, as scientists gain more fundamental bizarre geometrical shapes that defy mathe- understanding, they hope to simplify many of matical description. Imagine Newton drop- the more unwieldy formulas. I see no reason ping an apple whose path requires a 100-term why aliens will not discover the same truths. equation to describe. Luckily for us, we do I side with both Martin Gardner and Rudolf not live in JUMBLE. Newton’s apple is a sym- Carnap, whom I interpret as saying, Nature is bol of both nature and simple arithmetic from almost always describable by simple formulas, which reality naturally evolves. not because we have invented mathematics to do so but because of some hidden mathemati- cal aspect of nature itself. For example, Martin 1.52 A universe of blind mathematicians. Count- Gardner writes in his classic 1950 essay less examples exist of brilliant mathemati- “Order and Surprise”: cians who are totally blind. When the blind mathematician Bernard Morin (b. 1931) was If the cosmos were suddenly frozen, and asked how he computed the sign of a compli- all movement ceased, a survey of its struc- cated calculation, he said he did so “by feel- ture would not reveal a random distribution ing the weight of the thing, by pondering it.” of parts. Simple geometrical patterns, for The blind English mathematician Nicholas example, would be found in profusion— Saunderson (1682–1739) used abacuslike from the spirals of galaxies to the hexag- devices to aid calculations. Some mathemati- onal shapes of snow crystals. Set the cians have even speculated that blindness clockwork going, and its parts move may aid in certain areas of mathematics, rhythmically to laws that often can be where sight can prejudice or bias mathemati- expressed by equations of surprising sim- cians working in particular fields of geome- plicity. And there is no logical or a priori try. Famous blind mathematicians also reason why these things should be so. include Lev Semenovich Pontryagin

290 Answers bansw01.qxd 5/17/05 9:54 AM Page 291

(1908–1988), Louis Antoine (1888–1971), is not in the least like what it seems to be; and the modern mathematicians Emmanuel the more we think of it, the fuzzier its out- Giroux, Lawrence Baggett, Norberto lines become in the haze of sensations Salinas, John Gardner (also a physicist), which surrounds it; but “2” or “317” has and Zachary J. Battles. Salinas and Gardner nothing to do with sensation, and its prop- have developed a new form of Braille that erties stand out the more clearly the more has eight dots instead of the usual six. The closely we scrutinize it. two additional dots are reserved for providing a wealth of mathematical notation. For Hardy, a chair may be a collection of For further reading, see Allyn Jackson, “The whirling electrons or an idea in the mind of World of Blind Mathematicians,” Notices of God. The job of the physicist is to try to cor- the AMS 49, no. 10 (November 2002): relate the “incoherent body of crude facts 1246–51. confronting him with some definite and orderly scheme of abstract relations, the kind of scheme which he can borrow only from mathematics.” Hardy concludes that 317 is a 1.53 Close to reality. As with any deep topic on prime, not because we think so, or because the edge of mathematics and philosophy, our minds are shaped in one way rather than opinions are divided on this subject. In order another, but because it is so. to save space, I present my favorite opinion The philosopher and the psychologist and urge readers to consult essays such as William James, in his book The Meaning of Martin Gardner’s “How Not to Talk about Truth, argues that truths of science and math- Mathematics” (1981) for a range of view- ematics, not yet verified, are “sleeping truths.” points. The British mathematician G. H. The quadrillionth decimal digit of pi, for Hardy speaks on this topic in A Mathemati- example, “sleeps” in “the world of geometri- cian’s Apology (1940): cal realities,” even though “no one may ever There is probably less difference between try to compute it.” the positions of a mathematician and of a Martin Gardner’s essays on mathematical physicist than is generally supposed, and reality, which include “How Not to Talk about the most important seems to me to be this, Mathematics” and “Order and Surprise,” are that the mathematician is in much more reprinted in Order and Surprise (Buffalo, direct contact with reality. This may seem a N.Y.: Prometheus Books, 1983). paradox, since it is the physicist who deals with the subject-matter usually described as “real”; but a very little reflection is 1.54 Why learn mathematics? Of course, in enough to show that the physicist’s reality, some technical fields like engineering, people whatever it may be, has few or none of the do make use of mathematics beyond what is attributes which common sense ascribes taught in fourth grade. But is this small instinctively to reality. . . . A chair or a star minority of people sufficient to require that

Answers 291 bansw01.qxd 5/17/05 9:54 AM Page 292

all students learn algebra, geometry, and 2. Cool Numbers related forms of higher-level math? A 2004 survey conducted by the Organization for Economic Cooperation and Development 2.1 Pi. Symbolized by the Greek letter π, pi is ranked the United States 28th out of 40 the ratio of a circle’s circumference to its countries in mathematics, for example, far diameter and is approximately 3.14159 . . . We below Finland and South Korea. The survey don’t know who was the first to recognize that tested mostly practical skills like estimating a circumference of a circle was about 3 times the size of Antarctica. But does America’s the diameter. Perhaps it was not long after this poor showing really matter? After all, that wheels were commonly used. Cecil “America may lose math literacy surveys, Adams, the author of The Straight Dope, but it dominates number-crunching in every suggests that around 3500 B.C., a person may sphere from corporate profits to supercom- have noticed that for every revolution of a puters to Nobel Prizes,” according to Donald wheel, a cart moves forward about three times G. McNeil Jr., writing in “The Last Time the diameter of the wheel. An ancient Baby- You Used Algebra Was . . . ” (New York lonian tablet states that the ratio of the circum- Times, Week in Review, Section 4, Sunday, ference of a circle to the perimeter of an December 12, 2004, p. 3). However, it’s inscribed hexagon is 1:0.96, implying a value important to note that a third of the Ameri- of pi of 3.125. The Greek mathematician cans who won Nobel Prizes were born Archimedes (c. 250 B.C.) was the first to give abroad; thus, many American Nobel Prize us a firm, mathematically rigorous range for pi winners may have received early training as lying between 223/71 and 22/7. The latter is outside America. called the “Archimedean value” of pi, but this McNeil gives several possible reasons why approximation was in use long before his time. we should study math. One is that potential William Jones (1675–1749) introduced the employers and higher educational institutions symbol π in 1706, most likely after the Greek use mathematics as a “filter for the lazy or stu- word for periphery (περιϕερεια). Leonhard pid, as passing freshman physics is for premed Euler (1707–1783) used the symbol π in his students.” Perhaps a better answer comes from famous 1736 textbook Mechanica, and we’ve Miss Collins, McNeil’s daughter’s math used the symbol ever since. teacher: “Kids don’t study poetry just because Note that π is the most famous ratio in they’re going to grow up and be poets. It’s mathematics, both on Earth and probably for about a habit of mind. Your mind doesn’t think any advanced civilization in the universe. The abstractly unless it’s asked to—and it needs to number π, like other fundamental constants of be asked to from a relatively young age. The mathematics such as e = 2.718 . . . , is a tran- rigor and logic that goes into math is a good scendental number, a term defined later in this way for your brain to be trained.” chapter. The digits of π and e never end, nor has anyone detected an orderly pattern in their arrangement.

292 Answers bansw01.qxd 5/17/05 9:54 AM Page 293

2.2 An avalanche of digits. First, I’m not sure I 1,000,000 (6 zeros) and would consider the mathematicians and the 1,000,000 (6 zeros) computer scientists obsessed, but they are 1,000,000,000,000 π “driven.” Note that although cannot be (a British billion, 12 zeros) expressed by a fraction, it can be expressed as an infinite series of fractions. For example, in Americans had a pressing need for a simple 1671, the mathematician Gottfried Leibniz word for a number with a mere 9 zeros and 1 1 1 discovered that the series 1 – ⁄3 + ⁄5 – ⁄7 + . . . simply took the word billion for this purpose. slowly converges to π/4. Today, mathemati- I believe that the American meaning of a cians use increasingly sophisticated series that billion has permeated most of the world these converge more quickly to π. days, especially in scientific and mathematical The speed with which a computer can com- literature. pute π is an interesting measure of a com- The word billion is relatively recent; it was puter’s computational ability. Today, we know not in common use until the sixteenth century. pi’s digits to over a trillion digits, due to fast One of the earliest uses in an American book computers, better algorithms, and increased occurred by a man named Greenwood in understanding of how to mathematically 1729. Greenwood gave the billion as 1 with 9 manipulate large numbers that are over a zeros. billion digits long. 2.5 Pick an integer, any integer. Because there are an infinite number of integers, this task 2.3 Evenness. Yes. An even number leaves would seem to be impossible—only “small” no remainder when divided by 2. So, 0/2 = 0 integers are accessible for selection. My col- and has no remainder. Also, an integer n is league James “Jaymz” Salter writes to me, called “even” if there exists an integer m such “Selection implies physical specification. The that n = 2m, and n is called “odd” if n + 1 is ability to physically specify an integer N even. Thus, 0 is even by this criterion as well. diminishes as N approaches infinity. Certainly, integers of “infinite” size are beyond specifi- 2.4 Billion. Either way, a billion is big. If cation. So any integer specified would be nec- you started counting today, saying a number a essarily drawn from a pool of accessible second, you wouldn’t reach a billion (Ameri- integers, and therefore biased towards smaller can) until about 30 years later. Your friend in integers.” England would have to count for 32,000 What do we mean when we say “selected at years! random” in this question? Usually, random The word billion originally meant a million numbers are required to be independent, so million, and in England and Germany it still that there are no correlations between succes- does, at least in common talk. The prefix “bi” sive numbers. If no other information is given, in billion implies two “million” written side the word random usually means “random with by side a uniform distribution.”

Answers 293 bansw01.qxd 5/17/05 9:54 AM Page 294

Does my initial question imply “physical 2.7 Bombs on magic squares. Here is one solu- specification,” or can we mean some other tion, and I am aware that other solutions exist. kind of random specification? Salter writes to me, “‘Selection of a number’ requires at least 0 62 2 60 11 53 9 55 an infrastructure to represent the number by some physical means, under some ‘system of 15 49 13 51 4 58 6 56 meaning’ (or counting convention) that is absolutely dependent on the existence of 16 46 18 44 27 37 25 39 some physical substance, whether it is brain 31 33 29 35 20 42 22 40 cells, transistors, or beads.” Regardless of all the ingenious shorthands 52 10 54 8 63 1 61 3 (e.g., superfactorial, discussed in chapter 6), 59 5 57 7 48 14 50 12 the ability to represent arbitrarily large num- bers requires matter. It takes more matter to 36 26 38 24 47 17 45 19 represent or specify larger numbers (e.g., more paper to write down long numbers, more brain 43 21 41 23 32 30 34 28 cells to imagine large numbers, more transis- tors to hold more bits, etc.). Numbers that are 2.8 Liouville constant. Joseph Liouville showed inconceivably large are unfairly disadvantaged that his unusual number was transcendental, in the selection process. thus making this number among the first to be Could we in fact hypothetically produce a proved transcendental. Notice that the con- random integer by tossing a dart at the num- stant has 1 in each decimal place, correspon- ber line from 0 to 1 and then taking the recip- ding to a factorial, and zeros elsewhere. This rocal of whatever the dart lands on? The means that the 1s occur in the 1st, 2nd, 6th, answer would appear to be a resounding no 24th, 120th, 720th, and so on, places, and because the method is biased toward small zeros are elsewhere. More generally, we can integers, even if the dart is thrown randomly write on the interval. Half the time, the dart would ∞ hit a value between 0.5 and 1, and the recipro- ∑ar− k ! cal would be rounded to 1 if we are seeking to k k =1 produce an integer. ≤ ≤ where a ak r. The numbers ak are integers. 2.6 Superthin dart. As you learned in previous The resulting number is a Liouville number of

paragraphs, your superthin dart would base r. If the values for ak are all 1, and r = “always” land on a transcendental number. 10, we get 1/10 + 1/101 × 2 + 1/101 × 2 × 3 + . . . The infinity of transcendental numbers is so = 0.110001000000000000000001000 . . . . much larger than the infinity of algebraic Aside from his mathematical pursuits, numbers that your dart is virtually guaranteed Liouville was interested in politics and was to land on a transcendental number. elected to the French Constituting Assembly

294 Answers bansw01.qxd 5/17/05 9:54 AM Page 295

in 1848. After a later election defeat, Liou- higher-order taxicab numbers, such as triple- ville became depressed. His mathematical pair solutions to i3 + j3 = k3 + l3 = m3 + n3, ramblings were interspersed with poetical where all the numbers are integers. quotes (much like this present book!). In 1957, John Leech (1926–1992) discov- Nonetheless, during the course of his life, ered the smallest number expressible as the Liouville wrote over 400 mathematical sum of two positive cubes in three different papers. ways: 87,539,319 = 1673 + 4363 = 2283 + 4233 = 2553 + 4143. 2.9 The paradox of pepperonis. The fallacy is that when you count seven pepperonis, you 2.11 Transcendence. Mathematicians don’t are mixing up addition and subtraction in the always know whether sums and products of middle of a counting process. This is the same transcendental numbers are transcendental. fallacy that occurs in much more complicated For example, all that mathematicians know classic problems of gentlemen paying for about (π + e) and (π×e) is that at least one of hotel rooms. Also, by the twisted logic, you these two numbers is transcendental, but tran- could count backward, “6, 5, 4, 3, 2, 1” and scendence has not been proved for either say that there is only one pepperoni in the set. number on its own! All that we know with certainty is that they both can’t be algebraic. 2.10 Taxicab numbers. The renowned British If one of these numbers is transcendental mathematician G. H. Hardy (1877–1947) was and one is algebraic, we can’t say for sure visiting Srinivasa Ramanujan (1887–1920), which is which. John dePillis and others the self-taught yet brilliant mathematician prove some of our statements with the follow- from India whom we have already discussed. ing argument. Consider the roots of the Hardy mentioned that the number of the taxi- polynomial cab that had brought him was 1729, which (1) z2 – az + c = 0, where a = π + e and Hardy thought was “rather a dull” number. c = π×e Ramanujan smiled and replied instantly, “No, it is a very interesting number; it is the small- This is the same as saying est number expressible as a sum of two posi- (2) (z – π) × (z – e) = 0 tive cubes in two different ways.” Ramanujan was thinking of 1,729 = 13 + The roots of Polynomial (2) are z = π and 123 and 1729 = 93 + 103. Ramanujan was so z = e. The first step of the argument is to real- quick with numbers that it was as if he were ize that polynomials with algebraic number intimately familiar with every number! coefficients must have roots that are algebraic. Indeed, numbers were his friends. Let us assume for the moment that a and c in Today, we know that there exist an infinite Polynomial (1) are both algebraic (i.e., not number of “taxicab numbers” with integer transcendental). We can show that this is solutions of the form i3 + j3 = k3 + l3. Several impossible because this implies that the roots modern mathematicians enjoy searching for z = π and z = e must be algebraic. But we

Answers 295 bansw01.qxd 5/17/05 9:54 AM Page 296

know that π and e are transcendental (not limit, each block of three digits will occur algebraic). This contradiction means that at with 0.1 percent frequency, and so on. least one of the coefficients (π + e) or (π×e) Some cryptographers have noted that is transcendental. Champernowne’s number does not trigger Note that eπ was proved to be transcenden- some of the traditional statistical indicators of tal in 1929 and 2√2 in 1930. I believe that no nonrandomness. In other words, simple com- one knows whether ππ is transcendental. puter programs, which attempt to find regular- ity in sequences, may not “see” the regularity 2.12 Special class of numbers. For many years, in Champernowne’s number. This deficit mathematicians have studied this cool class of reinforces the notion that statisticians and numbers. Here’s how to understand them. If a cryptographers must be very cautious when number is less than the sum of its proper divi- declaring a sequence to be random or pattern- sors, it is called abundant. (A positive proper less. It is not known whether the digit divisor is a positive divisor of a number n, sequences of π and e are normal. excluding n itself.) As an example, the proper divisors of 12 are 1, 2, 3, 4, and 6. And these 2.14 Copeland-Erdös constant. The number proper divisors add up to 16. The number 12 0.23571113171923 . . . is the famous is less than 16, so 12 is abundant. The first Copeland-Erdös constant, created by concate- few abundant numbers are 12, 18, 20, 24, 30, nating the prime numbers 2, 3, 5, 7, 11, . . . In 36, . . . The first odd is 945. 1945, Arthur Copeland and Paul Erdös proved (Its prime factorization is 945 = 33 × 5 × 7, that this number is normal in base 10, which, and the sum of its factors is 975.) as we said for the Champernowne number, means that any finite pattern of numbers 2.13 Champernowne’s number. If you concate- occurs with the frequency expected for a com- nate positive integers, 1, 2, 3, 4, . . . , and lead pletely random sequence. See A. H. Copeland with a decimal point, you get Champer- and P. Erdös, “Note on Normal Numbers,” nowne’s number, 0.1234567891011121314 . . . Bulletin of the American Mathematics Society Like π, e, and Liouville’s number, Champer- 52 (1946): 857–60. nowne’s number is transcendental. Champernowne’s number continues to fas- cinate me. It is a transcendental that we know 2.15 Thue constant. The Thue constant is an is “normal” in base 10, which means that any example of an irrational, transcendental num- finite pattern of numbers occurs with the fre- ber that is not normal. For this binary number, quency expected for a completely random the nth digit is 1 if n is not divisible by 3 and sequence. In fact, David Champernowne is the complement of the (n/3)th bit if n is showed that not only will the digits 0 through divisible by 3. (In base 10, this number is 9 occur exactly with a 10 percent frequency in 0.85909979685470310490357250 . . .) You the limit, but each possible block of two digits can also generate this constant by mapping will occur with 1 percent frequency in the 0 → 111 and 1 → 110. To create the growing

296 Answers bansw01.qxd 5/17/05 9:54 AM Page 297

string of characters, simply start with 0, do 11,111,111,111,111,111,111,111,111,111, the substitutions, and watch the Thue constant 111,111,111,111,111,111,111,111,111,111, emerge: 111,111,111,111,111,111,111,111,111,111, 111,111,111,111,111,111,111,111,111,111, 0 111,111,111,111,111,111,111,111,111,111, 111 111,111,111,111,111,111,111,111,111,111, 110110110 111,111,111,111,111,111,111,111,111,111, 110110111110110111110110111 111,111,111,111,111,111,111,111,111,111, . . . 111,111,111,111,111,111,111,111,111,111, 111,111,111,111,111,111,111,111,111,111, 2.16 Exclusionary squares. I learned about 111,111,111,111,111,111 exclusionary squares from my colleague Andy Edwards. The other 6-digit example is The next such number has 1,031 digits. After 203,8792 = 41,566,646,641. Problems like that, the next two isoprimes that are believed this seem to be best solved using brute-force to be prime, but are not proven such, contain computer methods. If we do not require the 49,081 digits and 86,453 digits. Chris Cald- digits to be distinct, Ilan Mayer has found well has interesting Web sites on prime num- several exclusionary cubes, such as bers for further exploring: primes.utm.edu/ 6,3783 = 259,449,922,152 and 7,6583 = and primes.utm.edu/glossary/page.php/ 449,103,134,312. If we do not require that all .html. the digits be unique, Jonathan Dushoff notes Do you think humanity will ever find that we can find exclusionary squares of any larger isoprimes? Regarding the oscillating length; for example, we can experiment with bit prime, in 1991, Harvey Dubner discovered strings of 3s, such as 3,333,3332 = a prime number with a total of 5,114 digits 11,111,108,888,889. German Gonzales tells that is composed of only 1s and zeros. The me that he has found 168,569 exclusionary precise number is (105114 – 102612 + 9)/9. numbers from 1 to 1,000,000 of various Amazing. I do not know whether the 0s and orders. For example, here is an exclusionary 1s oscillate in any particular pattern in this number of the 83rd order: 283 = 9, 671, 406, large number. 556, 917, 033, 397, 649, 408. 2.18 Special augmented primes. Colleagues have 2.17 The grand search for isoprimes. Here is a list determined that there is a general set of num- of other isoprimes (in base 10): 11; 111; bers of the form 90909 . . . 91 that sometimes 1,111,111,111,111,111,111; and 11,111, consists of special augmented primes (SAPs). 111,111,111,111,111,111. In the world of fac- For example, one colleague discovered that toring and primality testing, 11 is also called a 909090909090909091—when augmented by repunit (repeated unit) prime. All repunit 1s to form 19090909090909090911—is a primes in base 10 can only be composed of factor of 1019 + 1. Other colleagues have 1s. The next such number has 317 digits: searched for SAPs of higher order. For

Answers 297 bansw01.qxd 5/17/05 9:54 AM Page 298

example, 137 corresponds to a SAP of order 2 the most profound and perhaps fatal effect. In because 21372/137 = 156. other words, if this quantization became com- monplace, many newborns would die. Could a premature infant weighing π pounds survive? 2.19 Triangle of the Gods. By computer search, (Of course, I’m not implying that there is my colleague Daniel Dockery found the fol- something special about π in this question, lowing smallest prime number of this kind in because a 3-pound quantization would have Row 171: similar effects.)

123456789012345678901234567890 123456789012345678901234567890 2.21 Jesus and negative numbers. No. The con- cept of negative numbers started in the sev- 123456789012345678901234567890 enth century. At this time, we first see 123456789012345678901234567890 negative numbers used in bookkeeping in 123456789012345678901234567890 India. The earliest documented evidence of 123456789012345678901 the European use of negative numbers occurs in the Ars magna, published by the Italian The largest known prime number of this kind mathematician Girolamo Cardano in 1545. occurs in Row 567 and ends in the digit 7. Al-Khwarizmi, who was born in Baghdad, When you perform such searches, note that discovered the rules for algebra around A.D. you can immediately eliminate numbers end- 800. Obviously, there is quite a bit of surpris- ing in the even digits and the number 5. ingly simple mathematics that was not around We can ask many questions. What percent- in Jesus’s time. age of prime numbers do you expect as we scan more rows in the mysterious triangle? If you could add one digit to the beginning of 2.22 Jesus notation. Some scholars, such as each number in order to increase the number Daniel Dockery, have claimed that Jesus of primes, what would it be? If you could add spoke Aramaic, and we expect that Jesus used one digit to the end of each number in order the Aramaic/Hebrew number system, where to increase the number of primes, what would alphabetic characters also served as their it be? numbers. Because some of the apocryphal and the pseudepigraphic infancy gospels tell tales of Jesus having discussed the symbolism 2.20 Body weights. This means that if you of the Greek and related alphabets, one might gained or lost weight, you would not change also argue that he could have written using the weight smoothly, but your weight would jump Greek number system, which likewise used its up or down by increments of 3.1415 . . . alphabet for numerical digits. pounds. The largest biological effect of this If one considers the text of the New Testa- strange quantization would be for the new- ment as definitive, reliable, or historical, born, where a 3-pound difference would have all numbers that appear in passages with

298 Answers bansw01.qxd 5/17/05 9:54 AM Page 299

references to Jesus in the four gospels are least 7 × 7. However, we must not lose sight written out in Greek (e.g., eis/mian [one], of the possibility that the biblical translators duo/duos [two], treis/trisin [three], tessares introduced the terms. [four], hex [six], hepta [seven], okto [eight], In addition, conversion between monetary heptakis [seven times], ennea [nine], deka systems like Roman sesterces, Jewish shekels, [ten], eikosi pente [twenty-five], triakonta and Persian darii probably required notions of [thirty], hekaton [one hundred], hebdomekon- multiplication and division. Jesus was proba- takis heptai [seventy times seven], dischilioi bly aware of the concept of debts and interest [two thousand], pentakischilioi [five thou- charged on debts. sand], etc.). Most numbers in the text of the Jesus would not have used a symbol for Bible tend to be written out, though there are a zero, because neither the Hebrew, the Ara- few exceptions, such as the infamous 666 of maic, nor the Greek number systems had a the Apocalypsis, written with the three Greek character representing the number 0, as it was letters chi, xi, and the antiquated sigma. In the not required by their nonpositional number Greek , the letter chi has a systems. value of 600, xi 60, and the sigma/digamma a value of 6, so that the three letters appearing 2.24 The digits of π. Certainly, if we assume together as a number have the combined value that modern mathematical conjectures are of 666. correct. Pi contains an endless number of dig- its with what mathematicians conjecture to be 2.23 Jesus and multiplication. Ver y likely. In a “normal” or “patternless” distribution. We Matthew 18:22, we find, “legei auto ho Iesous can even search for some of the first few con- Ou lego soi eos heptakis all’ eos hebdomekon- secutive runs, using computer searches that takis epta.” Or, in Jerome’s Vulgate, “dicit illi are available on the Web. The string 123 is Iesus non dico tibi usque septies sed usque found at position 1924, counting from the first septuagies septies.” Today we translated this digit after the decimal point. The “3.” is not as “Said Jesus: To you I say not ‘til seven counted. The string 1234 is found at position times,’ but ‘until seventy times seven.’” 13,807; 12345 is found at position 49,702; Because both seven and seventy can have and so forth. You can do further searches of symbolic meanings, the meaning may not be this kind at Dave Anderson’s π Web site: literal, but, nevertheless, it is an example of www.angio.net/pi/piquery. multiplication. The Bible does not make it clear whether 2.25 Living in the π matrix. I believe so, Jesus or his listeners would have been able to although many people have debated me on give the exact answer. Much earlier, in Leviti- this subject. Recall that the digits of π (in any cus 25:8, we find “Seven weeks of years shall base) not only go on forever but seem to you count—seven times seven years—so that behave statistically like a sequence of uniform the seven cycles amount to forty-nine years.” random numbers. In short, if the digits of π Therefore, we know these people could do at are normally distributed, somewhere inside

Answers 299 bansw01.qxd 5/17/05 9:54 AM Page 300

the endless digits of π is a very close repre- 2.28 The mystery of 0.33333. The reason that sentation for all of us—the atomic coordi- we find 1 = 0.9999 . . . is that it is true. There nates of all our atoms, our genetic code, all are numerous mathematical ways to show this our thoughts, all our memories. Thus, all of us that involve the sum of an infinite series, but are alive and, it is hoped, happy, in π. Pi my favorite way doesn’t require too much makes us live forever. We all lead virtual lives math. Consider that any two distinct (differ- in π. We are immortal. ent) real numbers must have another number You can read a large group discussion of in-between them. However, there is no num- this topic, which I initiated at my Web site, ber between 1 and 0.9999 . . . Thus, 1 and sprott.physics.wisc.edu/pickover/pimatrix. 0.9999 . . . are not different numbers. html. At my Web site, I state my controversial opinion: “This means that romance is never dead. Somewhere you are running through 2.29 The grand Internet undulating obstinate num- fields of wheat, holding hands with someone ber search. My friend Daniel Dockery has you love, as the sun sets—all in the digits computed the following obstinate number: of pi.” 9999999999999999999999999999999 9999999999999999999999999999999 2.26 Numbers and sign language. The person 9999999999999999999999999999999 would sign a 1, followed by a C (made with 9999999999999999999999999999999 curved fingers in the shape of a C) to signify 999999999999999999999999999 the Roman numeral C, which stands for one 999999999999999999999999999 hundred. 999999037

2.27 Adding numbers. My hero, the mathemati- It leaves a composite residue for all 621 cal prodigy Karl Friedrich Gauss (1777– possible powers of 2 that can be subtracted 1855), the son of a bricklayer, discovered that from it. he could sum the numbers from 1 to n using The smallest difference between adjacent the formula n(n + 1)/2. Thus, if we want to obstinates is 2; for example, 905 and 907 are sum 1 to 1,000, we simply compute 1,000 × both obstinate by this definition and have a (1,001)/2 = 500,500. difference of 2. Because obstinate numbers Little Gauss demonstrated his approach at must be odd, 2 is the smallest difference. age ten, when he quickly solved a problem Do any obstinates undulate? Certainly. that had been assigned by a teacher to keep Here are just a few: 6,161; 14,141; 39,393; the class busy. The teacher had asked the stu- 91,919; 1,313,131; 1,818,181; 7,070,707; dents to find the sum of the first 100 integers, 7,474,747; 7,676,767; 7,979,797; 59,595,959; and he was amazed that Gauss could add the 73,737,373; and so on. terms so quickly. In fact, the teacher assumed How are obstinates distributed through the that Gauss was wrong. numbers as we scan ever larger numbers?

300 Answers bansw01.qxd 5/17/05 9:54 AM Page 301

2.30 Mystery sequence. The missing number is recipes. I am also interested to see which 49. To create this sequence, I listed the num- reader recipes are most common. bers 1 through 13. Underneath this list, I listed the numbers 13 through 1. Then, I just 2.33 Mystery sequence. Write down all the multiplied the numbers in each column: numbers from 0 to 19. Start at 1. Jump 7. Repeat. When you get to 19, go back to the 1234567891011 12 13 start of the list. Once you land on a number in 13 12 11 10 98765 4321 your original list, it gets removed so that it is 13 24 33 40 45 48 49 . . . not used again as you traverse the numbers. You can also solve this another way, simply by You can imagine the list as numbers being adding 11, 9, 7, and so forth. These numbers around the circumference of a circle as you go represent the differences between consecutive round and round. Here is the sequence that is terms. produced as a result: 1, 8, 15, 3, 11, 19, 9, 18, 10, 2, 14, 7, 5, 4, 6, 13, 0, 12, 16, 17. 2.31 Strange code. ...--, obviously. Here, we are using the Morse code, invented by Samuel 2.34 Mystery sequence. The sequence lists the Morse (1791–1872), in which letters and prime numbers (numbers divisible only by numbers are represented by dots and dashes: themselves and 1), starting at 2 and then (0, -----), (1, .----), (2, ..---), (3, ...--), lumping their digits into sets of 4: (4, ....-), (5,.....), (6, -....), (7, --...), (8, ---..), 2, 3, 5, 7, 11, 13, 17, and (9, ----.). 19, 23, 29, 31, 37, 41, 43

2.32 Mystery sequence. 1. Starting with 1, I 2.35 Time-travel integer. The most recent year continue to add 8. However, if my number is 864. Alas, Pete won’t have too many ameni- ever gets greater than 22, I then subtract 22, ties, but at least it is the most recent date with and continue. I would be interested in hearing these characteristics. One colleague told me from those of you who got a different answer, that this problem is too trivial to include in using another kind of reasoning. One of my this book. If you agree, try this on a young colleagues arrived at an answer of 23 by student, and see how long it takes him or her examining the differences between consecu- to arrive at an answer. tive terms, which follow the sequence +8, +8, –14, +8, +8, –14 . . . It’s also easy to get 23 by 2.36 Mystery sequence. The next number is viewing the sequence as three interleaved 7,776. 10 = 1; 21 = 2; 32 = 9; 43 = 64; 54 = sequences with constant difference 2. 625; 65 = 7,776. Of course, given a sequence of n arbitrary numbers, it is always possible to justify any 2.37 Ostracism. Number 55. All the others are other integer as the next number in the 1 less than a square number (4, 9, 16, 25, 36, sequence by writing a polynomial equation of 49, 64)—that is, a number produced by squar- order n + 1. What I seek are very simple ing an integer. For example, 24 = 52 – 1.

Answers 301 bansw01.qxd 5/17/05 9:54 AM Page 302

2.38 Mystery sequence. The sequence consists 1 0 0 1. There can never be more than 2 adja- of prime numbers, starting at 17, plus 1. Here cent terms that are identical. For example, are the original prime numbers: 17, 19, 23, we’ll never see a 111, no matter how large we 29, 31, 37, 41, . . . let the sequence grow. Hundreds of Web pages are devoted to this subject. 2.39 Mystery sequence. Lizzy plays 4 notes. 2.41 Mystery sequence. The next number is 92. She is just multiplying the digits of each num- These are pentagonal numbers. If balls are ber to get the next. piled so that each layer is a pentagon, then the total number of balls in each successive pile 2.40 Cellular communication. This is the Morse- follows this sequence (figure A2.1). The gen- Thue sequence, which has dozens of fascinat- eral formula for the nth number in the ing properties. There are many ways to sequence is (1/2) × n × (3n – 1). The first few generate the Morse-Thue sequence. One way are 1, 5, 12, 22, 35, 51, 70, and 92. Curiously, is to visualize this as a sequence of 0s and 1s. all numbers of such a type end in 0, 1, 2, 5, 6, Start with a zero and then repeatedly do the or 7. This problem can also be solved simply following replacements: 0 → 01 and 1 → 10. by examining the differences between the In other words, whenever you see a 0 in a row, numbers (4, 7, 10, 13, 16, 19 . . .). So, the you replace it with a 01 in the next row. next difference is 22, and 22 + 70 = 92. Whenever you see a 1, you replace it with a 10. Starting with a single 0, we get the follow- ing successive “generations”:

0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0

The next line should be

0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 Figure A2.1 Pentagonal numbers. where the 0s are replaced by red and the 1s by blue. I’m in love with the Morse-Thue sequence. 2.42 Mystery sequence. The solution is Each generation can be formed by appending 89,793. The ith term of the sequence is its complement. For example, 0 1 1 0 1 0 0 1 the next i digits of the number π (π = is just 0 1 1 0 placed next to its complement, 3.14159265358979323846 . . .).

302 Answers bansw01.qxd 5/17/05 9:54 AM Page 303

2.43 Ostracism. This does not belong in the divisible only by themselves and 1) with a list: 15 × 87 = 1,305. In all other products, the short note. So the second, the third, the fifth, digits on the left side of the equation also the seventh, (and so on) are short: appear on the right side. Another answer 01101010001010001010001000001010000010001010 . . . might be 1,827, because this is the only prod- | | | | | | | | | | | | | | uct that does not have 5 as a factor. 2 3 5 7 1113 17 19 23 29 31 37 41 43

2.44 The amazing 5. The four facts are: 5 is the 2.48 Mystery sequence. This strange sequence hypotenuse of the smallest Pythagorean trian- lists the indices of the prime Fibonacci num- gle, a right-angled triangle with integral sides; bers. For example, the third, the fourth, and the 5 is the smallest automorphic number; 5 is fifth Fibonacci numbers (F3, F4, F5) are probably the only odd untouchable number; primes. (The Fibonacci sequence is 1, 1, 2, 3, and, there are 5 Platonic solids: the tetrahe- 5, 8, 13 . . . , where each number is the sum of dron, the cube, the octahedron, the dodecahe- the previous two.) dron, and the icosahedron. (All the faces of a Platonic solid must be congruent regular 2.49 The Lego sequence. Each element a(n) is polygons.) the number of stable towers that can be built from n Lego blocks. 2.45 Mystery sequence. The value of the miss- ing digit is 7. The solution relates to the num- 2.50 Vampire numbers. I discuss vampire num- ber of segments on a standard calculator bers in detail in my book Wonders of Numbers. display that are required to represent the digits Here are some other four-digit vampires: starting with 0: 21 × 60 = 1,260 15 × 93 = 1,395 ______30 × 51 = 1,530 21 × 87 = 1,827 || | _| _| |_| |_ |_ | |_| |_| × |_| | |_ _| | _| |_| | |_| _| 80 86 = 6,880 In fact, there are many larger vampire num- 2.46 Mystery sequence. The solution is 1828. bers. Here’s a beauty for you: The ith term of the sequence is the next i 1,234,554,321 × 9,162,361,086 = digits of the number e (e = 2.7182818284 11,311,432,469,283,552,606 . . .). The number e, like π, is transcendental and consists of a never-ending string of digits. 2.51 Jewel thief. We have 15 emeralds, 12 dia- monds, and 9 rubies altogether. This means that the maximum number of gems that could 2.47 Mystery sequence. The violinist is simply be out of the bag without having any matched marking every prime number (numbers sets would be 2 of each set for each kind: 10

Answers 303 bansw01.qxd 5/17/05 9:54 AM Page 304

emeralds, 8 diamonds, and 6 rubies. Thus, 2.52 Palinpoints of arithmetical functions. Here withdrawing 25 gems would guarantee that is one example for n = 21: Prime(21) = 73, there is at least one matched set (small, Prime(12) = 37. Some people have used the medium, and large) of one of the types of Mathematica software package to seach for gems. more examples. In 2003, Jens Kruse Ander- Notice that if you are creative and suggest sen found the largest known palinpoint of f(n) that the thief can tell sizes by touch alone, = Prime(n): n = 8,114,118 with Prime(n) = then the answer is 12, because he can tell by 143,787,341. (For more information, see touch which are the biggest! Joseph Pe’s article on palinpoints in his Let us assume that he can’t tell size by Number Recreations Page at www.geocities. touch because he is wearing gloves. With com/windmill96/numrecreations.html. Also respect to the second question, the thief has see Carlos Rivera, “The Palinpoints,” www. 12 large gems altogether and 36 gems total. primepuzzles.net/puzzles/puzz_194.htm.) The only way to guarantee that all the large gems have been randomly selected and pulled from the bag is to remove all 36 of the gems. 2.53 Dr. Brain’s Mystery sequence. Number 28. Any gem left in the bag at random could be a These are triangular numbers. They can be large gem, so all must be removed. formed by adding the series 1 + 2 + 3 + 4 + 5 Perhaps a more difficult question to ponder . . . Here’s another way to visualize triangular is, What is the probability that the first 3 numbers: gems he withdraws from the bag will make a ** * * * complete set? We believe the answer to be * * * * * * * * 18/595, which is about equal to 0.03, very * * * * * * * * * slim odds. The first gem drawn must be some * * * * * * * * size of some type. The probability of it being * * * * * an emerald is 15/36, a diamond is 12/36, and 13 6 1015 a ruby is 9/36. If the first gem is an emerald, the probability of the second gem also being an emerald but of a different size is 10/35, 2.54 Poseidon’s sequence. The number 77 is and of the third being an emerald of the the smallest number with persistence 4. In third size is 5/34. So, the probability of get- particular, 77 creates the sequence 77, 49, 36, ting a set of emeralds is 15/36 × 10/35 × 5/34 18, 8. It turns out that 277777788888899 is = 25/1,428. Similarly, the probability of get- the smallest number with persistence 11. ting a set of diamonds would be 12/36 × 8/35 × 4/34 = 16/1,785, and the probability of get- ting a set of rubies would be 9/36 × 6/35 × 2.55 Mystery sequence. From day to day, each 3/34 = 9/2,380. Adding up these probabilities is replaced with an ape-duck combi- together gives us 25/1,428 + 16/1,785 + nation, and each ape is replaced with a 9/2,380 = 18/595. single duck .

304 Answers bansw01.qxd 5/17/05 9:54 AM Page 305

2.56 Constructions with 1, 2, and 3. The follow- As this book goes to press, my colleague ing answers use very few numbers to repre- Mark Ganson claims to have found a repeat in sent the target number. I do not actually know (x → 2x + 2; x → 7x + 7) after 17 generations. whether these are answers with the fewest This 17th generation has 217 – 1 = 131,071 possible digits. elements, with just one repeat in it! The repeated value is 1,814,526. (3 + 2) × 23 = 40 2(2 × 3) – 3 = 61 2.60 The loneliness of the factorions. Two tiny factorions are 1 = 1! and 2 = 2! The largest (23) × 2 + (2 3) + 1 = 263 known is 40,585; it can be written (2 + 2) × ((3 + 2)3) = 500 as 40,585 = 4! + 0! + 5! + 8! + 5! (The facto- rion 40,585 was discovered in 1964 by R. I would be happy to hear from readers regard- Dougherty using a computer search.) Various ing their own solutions. proofs have been advanced indicating that 40,585 is the largest possible factorion, and 2.57 Mystery sequence. The number is 15,625. that humans will never be able to find a 2 3 4 5 6 The numbers go as 1 , 2 , 3 , 4 , 5 , . . . greater factorion.

2.58 Blue liquid. Because –40 degrees Centi- 2.61 69,696. This is the largest undulating grade equals –40 degrees Fahrenheit. square number known to humanity. A square number is an integer of the form y = x2. For 2.59 Grasshopper sequences. Problems like example, 25 is a square number. And 69,696 these both delight mathematicians and drive is a square number because 69,696 = 2642. them wild. We can even consider related Undulating numbers are of this form: sequences. For example, the grasshopper ababababab . . . For example, 171,717 and sequence (x → 2x + 2; x → 5x + 5) yields a 28,282 are undulating numbers. Do you think repeat after three generations. The grasshop- humanity (or aliens) will ever discover an per sequence (x → 2x + 2; x → x + 1) yields a undulating square larger than 69,696? repeat after four generations. I have not yet found a solution to the (x → 2x + 2; x → 6x + 2.62 The beauty of 153. The number 153 is a 6) problem or the related sequences: (x → 2x member of the class of numbers that are the + 2; x → 4x + 4) or (x → 2x + 2; x → 7x + 7). sums of powers of their digits. In other words, I go into greater detail regarding these these are n-digit numbers that are equal to the sequences in my books Computers and the sum of the nth powers of their digits. For Imagination and Wonders of Numbers, and example, 153 = 13 + 53 + 33. Variously called similar kinds of problems are described in narcissistic numbers, “numbers in love with Richard Guy’s “Don’t Try to Solve These themselves,” Armstrong numbers, or perfect Problems!” in The American Mathematical digital variants, these kinds of numbers have Monthly 90, no. 1 (January 1983): 35. fascinated number theorists for decades.

Answers 305 bansw01.qxd 5/17/05 9:54 AM Page 306

The English mathematician G. H. Hardy 0 1 2 3 4 5 6 7 8 9 Row 1 (1877–1947) noted that “There are just four numbers, after unity, which are the sums of 6 2 1 0 0 0 1 0 0 0 Row 2 the cubes of their digits. . . . These are odd Row 3 facts, very suitable for puzzle columns and likely to amuse amateurs, but there is nothing Now use Row 2 as the starting point, and your in them which appeals to the mathematician.” next task is to form Row 3, Row 4, and so on, The largest discovered using the same rules. For example, a digit in to date is the incredible 39-digit number: the first space of Row 3 would indicate how 11513221901876399256509 many 6s there are in Row 3’s 10-digit number. 5597973971522401 The second entry in Row 3 tells how many 2s to expect in Row 3, and so forth. Can you find (Each digit is raised to the 39th power.) I a Row 3 or a Row 4? believe it is impossible to beat this world record. What would Godfrey Hardy have 2.64 Erdös equation. The solutions are 25 = thought of this multidigit monstrosity? 4! + 1 = 52, 121 = 5! + 1 = 112, and 5041 = The number of narcissistic numbers has 7! + 1 = 712. I do not know if there are any been proved finite. They can’t have more than others. The mathematician Paul Erdös long ago 58 digits in our standard base-10 number conjectured that there are only three such num- system. As one searches for larger and larger bers. Erdös offered a cash prize for a proof of narcissistic numbers in other number systems, this. Currently, it is not known whether the par- will they eventually run out in all number ticular equation m2 – 1 = n! has only finitely systems? many solutions. Various researchers have searched for solutions with incredibly large values for n and m, but so far none have been 2.63 Ten silver boxes. Here is the only possible found. answer. 2.65 Perrin sequence. The sequence produced 0 1 2 3 4 5 6 7 8 9 Row 1 by u(n + 3) = u(n) + u(n + 1) is called the 6 2 1 0 0 0 1 0 0 0 Row 2 “Perrin sequence,” after the French mathe- matician who wrote about this subject in L’Intermédiaire des Mathématiciens in 1899. This problem is well known in the mathemati- Another French mathematician, Edouard cal literature. A more advanced problem, Lucas, was the first to study this sequence in which I designed, continues this process to 1876. Both gentlemen were unable to find any generate a sequence in a recursive fashion. In counterexamples to the notion that this this variation, each row becomes a “starting sequence always produced prime numbers. point” for the next. For example, start with the Bill Adams and Dan Shanks, two American usual 0 through 9 digits in Row 1: mathematicians, rediscovered the sequence in

306 Answers bansw01.qxd 5/17/05 9:54 AM Page 307

the 1980s and quickly found the first coun- Wait just a second! If a and b are both terexample at n = 271,441, by computer. even, they have a common factor of 2. But we You can learn more about the Perrin previously defined a and b as having no com- sequence from these papers: mon factor, so our original assumption that William Adams and Daniel Shanks, √2 can be expressed as the ratio a/b (where “Strong Primality Tests That Are Not Suffi- a and b are integers having no common cient,” Mathematics of Computation 39, no. factor) is false. Thus, we have shown that √2 159 (July 1982); G. C. Kurtz, Daniel Shanks, is irrational. and Hugh C. Williams, “Fast Primality Tests Here’s a simpler approach for showing the for Numbers Less than 50 × 109,” Mathemat- irrationality of √2. Consider the aforemen- ics of Computation 46, no. 174 (April 1986); tioned step, a2 = 2b2. Any factor in the prime Hugh C. Williams, Edouard Lucas and Pri- factorization of a2 (and, also, of b2) must have mality Testing (Canadian Mathematical Soci- an even power because of the square, so the ety Series of Monographs and Advanced prime factor 2 appears an even number of Texts, Vol. 22) (New York: Wiley, 1998). times in a2 (example: 82 = 16 = 24), but an odd number of times in 2b2, implying that a2 2.66 Square numbers. The only such numbers is not equal to 2b2, a contradiction. are 2 and 9. For example, 92 = 81 and 9 × 2 = 18. 2.68 Fibonacci snakes. To answer this ques- tion, write down the number of pairs in each 2.67 √2 is irrational. Let us assume for the generation. First write the number 1 for the moment that √2 is rational—which is the single pair you bought from the pet shop. Next opposite of what we expect to prove. This write the number 1 for the pair they produced means we are saying that √2 can be expressed after a year. The next year both pairs have as the ratio a/b, where a and b are integers young, so the next number is 2. Continuing having no common factor. this process, we have the sequence of numbers Given that √2= a/b, we can square both 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, sides of the equation to get 2 = a2/b2, which 377, . . . This sequence of numbers is called means that a2 = 2b2. Because any integer mul- the “Fibonacci sequence,” after the wealthy tiplied by 2 is an even number, a2 must be Italian merchant Leonardo Fibonacci of Pisa. even. In fact, a itself must be even because if As we said in the definition of the Fibonacci it were odd, a2 would also be odd. sequence, these numbers play important roles Given our assumptions, we now know that in mathematics and nature. These numbers are a is even, which means that a can be rewritten such that after the first two, every number in as 2r, where ra is an integer having half the the sequence equals the sum of the two previ-

value of a. Making substitutions, we have ous numbers Fn = Fn – 1 + Fn – 2. (2r)2 = 2b2, or 4r 2 = 2b2, or b2 = 2r 2. This also means that b is even, as we reasoned previ- 2.69 Palindromes on parade. Following are the ously for a. number of 1-digit palindromes, the number of

Answers 307 bansw01.qxd 5/17/05 9:54 AM Page 308

2-digit palindromes, and so on (the left-most than 47. To see this, consider a case where digit is not allowed to be zero). one of them is 53, a prime number. The small- est number that this is a factor of is 53, the Digit Form W(P) next smallest is 106, and so on. Since we have 1 digit a 9 been told that both of our mystery numbers are between 2 and 99 inclusive, 53 must be 2 digits aa 9 one of the numbers. The other one must be 3 digits aba 9 × 10 the product, divided by 53. Once Mrs. Brain 4 digits abba 9 × 10 has figured out that 53 is a factor, she would be able to determine the other number. Since 5 digits abcba 9 × 10 × 10 she couldn’t, there can’t be any prime factors 6 digits abccba 9 × 10 × 10 bigger than 47. (I learned about this kind of problem from Professor Edsger W. Dijkstra of the Netherlands, olimu.com/Notes/ Using this table, you can easily see that ProductAndSum.htm.) W(10 n) = 2[10(n – 1) /2 – 1] + 9 × 10(n – 1) /2 for n odd 2.71 Does pi contain pi? No. Several of my W(10 n) = 2[10 n/2 – 1] for n even colleagues have noted that if pi contained pi, We can conjecture that at the point where the “contained pi” started, pi would become a . Then pi logWP ( ) 1 would not be irrational. Hence, pi cannot con- lim = P→∞ log(P ) 2 tain pi. Is there any way that a number can “contain itself ” other than it having a pattern that repeats itself? 2.70 Alpha and omega. When Dr. Brain’s wife Here’s another way to look at it. If a number says, “Simply by looking at the product, I contained itself starting after n digits, then the can’t tell what alpha and omega are,” what she first n digits would be the same as the second really means is that the product does not auto- n digits. Similarly, the second n digits of the matically determine any set of two mystery copy would be the same as the first n digits of factors such as alpha and omega. This means the copy, which means, since the second n dig- that omega and alpha cannot both be primes. its of the copy are the third n digits of the orig- Why? If the mystery numbers were two primes inal number, the third n digits of the original (5 and 11, for example), then Mrs. Brain number would be the same as the first n digits. would know them at once on being given the And so on, and so on, to infinity. The number product (55). However, Mrs. Brain says that would be a repeating decimal of period n. she can’t tell what alpha and omega are. In the original question, I said that pi We also know that none of the prime fac- “probably” includes every possible string of tors of either alpha or omega can be bigger finite digits because this assumes that the

308 Answers bansw01.qxd 5/17/05 9:54 AM Page 309

distribution of pi’s digits is normal. Currently, 2  2  22× 2 this is only a conjecture with some good evi- 2 =   === A  2222 dence to back it up. So, this is the desired example that an irra- 2.72 Word frequency. Here are the occurrences, tional number raised to an irrational power based on my searching with the Google search need not be irrational (James F. Hurley, Lit- engine in the year I wrote this book. The num- ton’s Problematical Recreations [New York, ber of occurrences is in units of millions. Note N.Y.: Van Nostrand Reinhold, 1971]). the spikes at ten, twelve, and twenty. 2.75 A common fear. The term paraskevideka- Number Occurrence Number Occurrence triaphobia was coined by Dr. Donald Dossey one 571 seventeen 8 and refers to extreme fear of Friday the 13th. two 360 twelve 16 Paraskevidekatriaphobia is related to triskaidekaphobia, the fear of the number 13. three 183 thirteen 6 Interestingly, the number 13 was considered a four 163 fourteen 4 in ancient Egypt and China and five 115 fifteen 9 in the Mayan civilization. According to six 90 sixteen 5 Robert Todd Carroll, the author of The Skep- seven 73 seventeen 4 tic’s Dictionary, 13 may have a bad reputation because Loki, the Norse god of evil, started a eight 42 eighteen 4 riot when he came to a banquet at Valhalla nine 30 nineteen 3 attended by 12 gods. The ancient Hebrews ten 80 twenty 24 considered 13 unlucky because 13 was desig- nated by the 13th Hebrew letter, which corre- 2.73 Bad luck. The traditional explanation is sponded to the word mem, meaning “death.” that 13 people were at the Last Supper, which Friday may be considered unlucky because heralded the death of Jesus. The traitor Judas Jesus is thought to have been crucified on a was said to be the 13th apostle. The “unluck- Friday, the Roman day for executions. iness of 13” started to spread through Euro- Researchers writing in the British Medical pean culture in the Middle Ages. Today, many Journal have compared the ratio of traffic vol- buildings do not have a 13th floor—the num- ume to vehicular accidents on two different bering skips from 12 to 14. See the next entry days, Friday the 6th and Friday the 13th, over on paraskevidekatriaphobia. a period of years. Surprisingly, they found

2 that the number of hospital admissions due to 2.74 The height of irrationality. Let A = 2 . accidents was significantly higher on Friday If A is rational, it is the desired example. On the 13th than on “normal” Fridays. For more the other hand, if A is irrational, then consider information, see T. Scanlon, R. Luben, F. A 2 . By one of the standard exponent laws, Scanlon, and N. Singleton, “Is Friday the 13th we have (xm)n = xmn. Hence Bad for Your Health?” British Medical

Answers 309 bansw01.qxd 5/17/05 9:54 AM Page 310

Journal 307, no. 6919 (December 18–25, 25 = 1 × 25 = 5 × 5 → 1993): 1584–86. 12 + 52 + 52 + 252 = 676 = 2 × 338 According to Dr. Donald Dossey, as many 26 = 1 × 26 = 2 × 13 → as 21 million people suffer from paraskev- 12 + 22 + 132 + 262 = 850 = 2 × 425 idekatriaphobia in the United States alone. 60 = 5 × 12 = 6 × 10 → 55 + 65 + 105 + 125 2.76 Prime test. Yes, but only if the person = 359,733 = 3 × 119,911 is lucky and decides to check to see if the big number is divisible by 3, which is one of 2.78 Integer hoax. Martin Gardner flustered the easiest tests of divisibility. Because a readers in the April 1975 issue of Scientific π prime number can’t be divisible by 3, if we American by saying (in jest) that e 163 is an should find that this number is, it will not be integer, and various authors printed this “fact” a prime. in their later books. However, this number is A number is divisible by 3 if its digits sum only very “close” to being an integer. Its exact to a number that is divisible by 3. To see if our value is number is divisible by 3, first strike out all 262537412640768743. zeros and any other single digits that are 9999999999992500 . . . divisible by 3, which quickly takes us from the original number This is sometimes called a Ramanujan num- ber, although Ramanujan (1887–1920) did not 5,230,096,303,003,196,309,630,967 give this particular example. He did give other to impressive examples of almost integers, such as e π 58 . 5217 2 These digits sum to 15, which is divisible by 2.79 Cube square puzzle. N is 69. So 69 = 3 3. Thus 5,230,096,303,003,196,309,630,967 4,761 and 69 = 328,509. I believe there may cannot be a prime number. be various observations that we can make to make this problem easier to solve. For exam- 2.77 Never prime? No. Here is a counter- ple, it appears that N must be two digits, example: 12 + 22 + 52 + 72 = 79. However, because N (2 digits), S (4 digits), and C (6 as my colleague Nick Hobson notes, if we digits) are the only possible numbers to make have a × b = c × d (a, b, c, d > 0), it can be this work. In turn, this means that N must be shown that a2 + b2 + c2 + d2 is composite. In greater than 31 and less than 100. fact, the result remains true if we replace the 2.80 Cube numbers. N is 216 = 63 = 33 +43 + exponent, 2, with any non-negative integer! 53. Examples: 24 = 3 × 8 = 4 × 6 → 2.81 0s and 1s. The missing equivalence is 32 + 42 + 62 + 82 = 5 × 25 1110 = 10. I am simply replacing the 1s with

310 Answers bansw01.qxd 5/17/05 9:54 AM Page 311

their corresponding prime number and then 2.87 Prime king. The deck now contains 32 adding each prime number. Here are the first cards, assuming a standard pack. Note that few prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, cards like the jacks and the aces don’t show 23, 29, 31, 37, . . . So, for example, 01 = 3, numbers on their faces. The only cards 011 = 5 + 3 = 8, and 1,001 = 2 + 7 = 9. missing are the kings, the 2s, the 3s, the 5s, and the 7s. 2.82 Cube mystery. A number like 17 is one of only 6 other numbers that are equal to the 2.88 Pi deck. Any shuffling of cards with sum of the digits of their cube. For example, numbers will produce a digit string found 173 = 4,913, and 4 + 1 + 9 + 3 = 17. somewhere in the endless digits of pi. If we wish, we can analyze this further. Since all possible arrangements are found somewhere 2.83 Consecutive prime numbers. They are 2 in pi, it comes down to determining how and 3. many unique arrangements (shufflings) are possible. By removing the aces, the kings, the 2.84 Alien ships. 3,456. To determine the queens, and the jacks, we are left with a deck number of ships in the sequence, start with of 36 cards. There are 9 cards (2 through 10) 3, then perform the following operations: for each of the 4 suits (hearts, diamonds, multiply by 2, multiply by 3, multiply by 4, spades, and clubs). The number of unique repeat . . . arrangements (ignoring suits) is (4 × 9)/249 = 140,810,154,080,474,667,338,550,000,000, 2.85 Trains with crystal balls. There are 138 each of which produces a string of 40 digits crystal balls in the last car. Start with 42. of pi, since the 10s each produce 2 digits: 1 After this, I simply added the digits together and 0. to get the first digit or digits in the next num- ber. I also incremented the last digit of the number by 1 to obtain the last digits in the 3. Algebra, Percentages, Weird next number. So, for example, 4 + 2 = 6, Puzzles, and Marvelous which is the first digit of 63. The 3 is obtained Mathematical Manipulations simply by incrementing the 2 in 42. Next, we add 6 + 3 to get 9 and then append 4 as the 1 3.1 ⁄2 puzzle. The number –1. right-most digit, and so forth. 3.2 Shrunken heads puzzle. Gary had 10 2.86 Mr. Zanti’s ants. The number in the last shrunken heads. Joan had 14 shrunken heads. sequence is 27,306. Start with n = 1. The gen- erating formula is n ← 2(2n + 1). So, this 3.3 Loyd’s Leaning Tower of Pisa. In theory, the means that 1 becomes 6, 6 becomes 26, and ball travels 218.777 . . . feet or 218 feet, 9 and 1 so forth. ⁄3 inches. Here’s the reasoning that Loyd never

Answers 311 bansw01.qxd 5/17/05 9:54 AM Page 312

gave. Let’s generalize the problem to an initial S = r/(1 – r) for r < 1. In our case, r = 1/10, so drop of n feet. In Loyd’s case, n = 179. During S = 1/9. the initial drop, the ball falls n feet. Then it goes back up n/10 feet, then falls n/10 again, 3.4 Chimpanzees and gorillas. The chimpanzee giving us 2(n/10) feet. To this distance, we is 45 years old. The gorilla is 9 years old. Let must add the next up/down distance, which is the age of the chimpanzee be C and the age of 2(n/100) feet. Thus, for each successive rising the gorilla be G. We may solve this by solving and falling, we must add 2 × n/(10b), where b two equations in two unknowns: is the number of times the ball has fallen. In a moment, I’ll explain why the sum of C = 5G b all the 2n(1/10 ) distances converges to C – 3 = 7(G – 3) 2n(1/9), which is 39.777 . . . feet when n = 179 feet. For now, you can see that to get 5G – 3 = 7G – 21 the total distance traveled, we add to this the –2G = –18, G = 9 initial drop of 179 feet to arrive at 218.7777 . . . feet. 3.5 RED + BLUE. Here is one possible solu- Notice that the ball goes though an infinite tion. Can you find others? series of hops, each time adding to the dis- tance traveled. Of course, this analysis omits RED + BLUE = BUOL any frictional effects. Also, at some point, the 123 + 4,562 = 4,685 tiny bounces traveled become subatomic, and quantum effects would be considered. Can you My colleagues believe that there are 260 imagine how much more difficult this would unique solutions for integer values greater be if the ball is strange and its successive than zero. heights go as the Fibonacci sequence? How do we know that n/10b converges to 3.6 Loyd’s “teacher” puzzle. Loyd tells us there 1/9? Start by observing that the sum looks are infinite pairs of numbers that have the same like S = 1/10 + (1/10)2 + (1/10)3 . . . If r = sum and product. If one number is a, the other 1/10, we get S = r + r2 + r3 . . . There exists a number can be found simply by dividing a by simple formula for determining to what value a – 1. Here is why. Combine the two formulas this kind of infinite sum converges, and we so that you have ab = a + b and solve for b. can derive this formula. Consider this sum of the form S = r + r2 + ab = a + b r3 . . . where r < 1. Multiply both sides of the ab – b = a equation by r to yield rS = r2 + r3 + r4 . . . . The right-hand side of the equation is simply b(a – 1) = a S – r, so we get rS = S – r. Solving for S b = a/(a – 1) allows us to determine that the sum of an infinite geometric series of this form is As one example, if a is 10, then b = 10/9.

312 Answers bansw01.qxd 5/17/05 9:54 AM Page 313

3.7 Worms and water. People are always amazed 794418608 cubic inches, which is exactly at the answer: the 1,000 pounds of worms equal to the combined volume of 22 cubes, now weigh a mere 200 pounds. We can solve each 9.954 inches on the side. Therefore, the this using algebra. The solid part, S, of the green and the black teas must have been worms starts out as 1 percent of 1,000, or S = mixed in the proportion of 17,2993 to 25,4693. 10 pounds. After an hour, we know that the My friend Mark Ganson used a computer same solid (S = 10 pounds) of wriggling to solve this problem. He wrote to me, worms is now 5 percent of the worm weight One possible solution is where the smaller × W. This means that S = 10 pounds = 0.05 W green tea chest has a side length of 17,299 pounds, so W pounds = 10 / 0.05 pounds = and the larger black tea chest has a side 200 pounds. Your poor worms are probably length of 25,469. The 22 chests each have a quite thirsty now. side length of 9,954. Thus, 172993/254693 ~ 0.313348, the proportion of green tea to 3.8 Loyd’s mixed tea puzzle. To solve this prob- black. I found the solution through a brute lem, we can find two different integers (corre- force search. Initially, I created a list of the sponding to the different edge lengths of the first 40,000 perfect cubes and another list of green and the black tea boxes) so that when these same cubes × 22. Then I looped their cubes are added, the result can be evenly through the first list of cubes, creating a divided by 22 and also have a cube root that is third list each time. This third list was the an integer. This problem can thus be expressed sum of each cube and the nth cube in the 3 3 3 as a + b = 22c , where a, b, and c are inte- original list. Each time through the loop I gers. In other words, we must find a number, checked to see if the 2nd and 3rd list inter- c, that is the sum of cubes of two numbers, sected each other, which indicated when a which if divided by 22 gives another number cube × 22 equaled the sum of 2 other cubes. that is the cube of a third number, which is the length of the one side of the 22 combined How did someone of Loyd’s time arrive at boxes of tea. By specifying terminating deci- an answer without a computer? mals, we are ensuring that a, b, and c are not 1 irrational. This, in turn, allows us to restrict a, 3.9 Fragile fractions. The solution is ⁄2 = 1/22 b, and c to integers, or, if they aren’t integers, + 1/32 + 1/42 + 1/52 + 1/72 + 1/122 + 1/152 + we can multiply the equation by the cube of 1/202 + 1/282 + 1/352. This is the only solution the greatest common denominator. In addition, of which I am aware for x < 100. It’s possible by dividing out any common factors that a, b, to extend the problem to other fractions— and c have, we can say there exists a “mini- for example, 1/3 = (1/2)2 + (1/4)2 + (1/8)2 + mal” solution such that a, b, and c are rela- (1/24)2 + (1/28)2 + (1/30)2 + (1/40)2 + (1/56)2 tively prime. + (1/84)2. Can you find a set of fragile frac- Loyd’s answer is that a cube 17.299 inches tions for 1/5? on the side and a cube 25.469 inches on the My colleagues and I do not know whether side have a combined volume of 21,697. solutions exist for all of the first 100 rationals

Answers 313 bansw01.qxd 5/17/05 9:54 AM Page 314

of the form 1/n (such as 1/2, 1/3, 1/4, . . . 1/98, 3.11 The problem of the rich jeweler. The jeweler 1/99, 1/100) up to n = 100, given the domain has a total of 8,615,889 precious objects! of the first 100 rational squares of the form My colleague David Jones was the first to be 1/n2 (such as 1/22, 1/32, 1/42, . . . 1/982, 1/992, able to solve this, and he has written a 1/1002) up to n = 100. Perhaps the only way to detailed analysis at his Web site, www. answer this question is through a brute force nightswimming.com/math/. To solve this search—by systematically testing the sums of problem, he used the Microsoft Excel spread- all subsets of those first 100 rational squares sheet program. Jones first notes that there are until we find solutions for all of the targeted three types of objects: alloys, gems, and values (1/1 through 1/100). This approach is spices. Each type has four colors: beige, challenging because so many subsets exist, in green, pink, and yellow. Each item will be particular, 2100 – 1 = 1,267,650,600,228,229, referred to with two letters, the first by color 401,496,703,205,375 subsets. Even with a and the second by type. For example, pink computer that could perform 1 billion of these spices will be denoted by PS, beige alloys are subset sums per second, it would take 4 × 1013 denoted by BA, and so on. years to check them all. However, this number The second paragraph of the problem talks may be reduced substantially by using intelli- exclusively about gems. We start by examin- gent searches. ing the gems, and we will deal with alloys and spices later. An elementary interpretation of 3.10 Square pizzas. Abraham’s task is impossi- the paragraph yields the following equations, ble. Let V be the sum of all the numbers in the labeled A, B, and C. stacks of all corner vertices. Suppose that A: PG = (1/4 + 1/3)BG + GG Abraham is working with N different squares. The sum of all the numbers at the vertices of B: BG = (1/7 + 1/3)GG + YG/2 × all the squares is N (1 + 2 + 3 + 10) or 16N. C: GG = (1/5 + 1/11)(PG + BG) Can the sums of each vertex stack sum to 67? Let M be the common sum of each vertex Algebraic manipulation allows us to rewrite stack. Then 4M = 16N, which leads to M = these equations as 4N. Note that 4N is always an even number. A: (7/12)BG + GG – PG = 0 No matter how many squares Abraham has, B: –BG + (10/21)GG + (1/2)YG = 0 the common sum in each stack would have to be an even number. Thus, there is no way C: (16/55)BG – GG + (16/55)PG = 0 that Abraham can get each vertex stack to The alloys and spices equations are sum to 67. Another approach is to start with 67, which J: PA = (1/2 + 1/5)(PA + PG + PS) + 2YA implies that the sum of all pizza numbers is K: BA = (1/3 + 1/2)GA 4 × 67 = 268. Since each square has a sum of 16 on its surface, 268/16 has to be an integer, L: GA = (1/5)PA + (1/6)YA which is not possible. M: YA = (1/8 + 1/3)(GA + GG + GS)

314 Answers bansw01.qxd 5/17/05 9:54 AM Page 315

P: PS = (1/2)(BA + BG + BS) whatever boxes or materials you use to store the objects or the space you would need for a Q: GS + YS = BS + PS human being to walk through to retrieve items. Using linear algebra, David finds a minimum I would think that a room the size of a normal solution: high school chemistry lab would be sufficient.

Color Type Variable Amount 3.12 A huge number? At first glance, this looks Blue Gems BG 98,280 like a huge number. After all,

Green Gems GG 63,840 1 32 = 96 95 ... Pink Gems PG 121,170 a97 97 Yellow Gems YG 135,760 This number is unimaginably bigger than a Blue Alloys BA 871,035 googol. However, one of the terms in the long Green Alloys GA 1,045,242 × × × expression (a97 – a1) (a97 – a2) (a97 – a3) × × Pink Alloys PA 4,802,600 . . . (a97 – a98 ) . . . (a97 – a99) is (a97 – a97), Yellow Alloys YA 508,332 and thus the answer is zero. I learned about Blue Spices BS 105 this sort of problem from William Pound- stone’s How Would You Move Mount Fuji? Green Spices GS 6 which is a collection of puzzles that the Pink Spices PS 484,710 Microsoft Corporation uses when interview- Total 8,615,889 ing job candidates.

0 This is quite a lot of precious objects! In addi- 3.13 x ? Examine the powers of any number, tion, we may wonder how much space would say 4: be required to store all of this wonderful mate- 43 = 64 rial. David says that the total number of gems 2 is 419,050; the total number of alloys is 4 = 16 7,227,209; and the total number of spices is To get from 43 to 42, we divide 43 by 4. Next 969,630. Sample gems and rocks often come consider 1 in ⁄2-inch cubes, so we will assume that a 1 1 4 = 4 gem or an alloy sample is ⁄8 in.3 in volume. Powder samples are often stored in test tubes We divide by 42 by 4 to get 41. And finally we 3 1 0 ⁄8 inch across and 2 inches tall, so we assume divide 4 by 4 to get 4 = 1. This approach 9 ⁄32 in.3 for spices. This totals up to a net vol- works for any non-zero number. ume of just under 711 cubic feet. Assuming that the walls are 8 feet high, as in most 3.14 Winged robot. Yes. Danielle’s father hap- houses, you would need a room with 89 square pens to be 52 years old, and her mother’s feet of floor space just to store all of the father, her maternal grandfather, is 52 years objects. Keep in mind that this does not count old.

Answers 315 bansw01.qxd 5/17/05 9:54 AM Page 316

3.15 Fraction family. The odd one out is If a = b, the original equation yields (a + a) 74/372. For all other fractions, if we removed × 1,000 = a × a or 2,000a = a2 or a = 2,000 numbers that appear in both the numerator and b = 2,000. Here are all the (a, b) solu- and the denominator, these fractions would tions: (1,001,000; 1,001), (501,000; 1,002), equal a fourth: 1/4, 2/8, 3/12, 4/16, 8/32. (251,000; 1,004), (201,000; 1,005), (126,000; 1,008), (101,000; 1,010), (63,500; 1,016), 3.16 Tarantulas in bottles. Point to the middle (51,000; 1,020), (41,000; 1,025), (32,250; bottle and say, “Does the bottle on the right 1,032), (26,000; 1,040), (21,000; 1,050), contain a live tarantula?” If the answer is “yes,” (16,625; 1,064), (13,500; 1,080), (11,000; then the bottle on the right contains a live 1,100), (9,000; 1,125), (7,250; 1,160), (6,000; tarantula. If the answer is “no,” the bottle on 1,200), (5,000; 1,250), (4,125; 1,320), (3,500; the left contains a live tarantula. Notice that if 1,400), (3,000; 1,500), (2,600; 1,625), (2,250; you are pointing to a live tarantula, then 1,800), and (2,000; 2,000). Tiffany is telling the truth, and if you are point- Another solution starts from (a – 1,000) ing to the dead tarantula, the answer doesn’t (b – 1,000) = 1,000,000. Then a – 1,000 takes matter anyway because you will pick one of on all factors of 1,000,000 = 26 × 56, which the other two, which are both live tarantulas. can easily be written out.

3.17 Large ape. The day after tomorrow. 3.20 Starship journey. Kirk requires 30 hours. Eck requires 23 hours. Let Kirk’s ship travel at 3.18 Ψ substitution. Number 1. Here’s why: speed u, and Eck’s travel at speed v, in arbi- 58 × 13 = 754; 27 × 13 = 351; 65 × 13 = 845; trary units. Let the time of their meeting be t × 17 × 13 = 221. hours. We know that distance is time speed. Thus, we have the following distances covered: 3.19 Angel number-guessing game. We need to Kirk, before Kirk, after search for numbers such that (a + b) × 1000 = meeting: tu meeting: 17u a × b. One such answer is 1,250 and 5,000. Eck, before Eck, after There are twenty-five possible unique solu- meeting: tv meeting: 10v tions for positive integers. The largest number of possible apples or grapes is 1,001,000. Note that the distance that Kirk travels before One way to solve this is to solve for b: meeting Eck is the same as the distance that (a + b) × 1,000 = a × b, or 1,000a + 1000b = Eck travels after meeting Kirk. Thus, we ab, or 1,000(a/b) + 1,000 = a, or a/b = then have tu = 10v and 17u = tv. We can (a – 1,000)/1,000, or b = 1,000a/(a – 1,000). manipulate the formulas to solve for t. For Since we are interested in positive solutions, example, t = 10v/u and u = tv/17. Thus t = this means that a > 1,000. We also know that 170v/tv, which means t2 = 170, and t is because a + b = b + a and a × b = b × a, half approximately equal to 13. Thus Kirk’s ship of the solutions are found simply by switching requires 17 + 13 hours = 30 hours, and Eck a and b. requires 10 + 13 = 23 hours.

316 Answers bansw01.qxd 5/17/05 9:54 AM Page 317

3.21 Missing numbers. Here is one solution. pounds of peanuts Noah would have to mix Are there others? with all the cashews. The cost of the peanuts is 2.50 × x. Thus, the total weight, w, of the 13 8 9 10 final mix is 20 + x. The equation to solve is 3.55 × 20 + 2.50 × x = 3.20 × (20 + x), or 71 + 5 6 33 11 2.5x = 64 + 3.2x, or 7x = 0.7x, or x = 10 pounds of peanuts (Reference: NPR radio, 4 19 7 19 “Math Teacher’s Mission: To Make Equations Fun Sidewalk Instructor Fights Epidemic of 3 2 10 1 ‘Math-aphobic’Americans,” www.npr.org/ programs/morning/features/2002/apr/math/).

We believe that there are 32 different solu- tions for this problem. If we randomly scram- 3.25 Human hands. He owns 4 hands and uses bled the digits 1 through 11 to fill the white 3 shelves. Let H represent the number of cells, the probability of producing a correct hands and S the number of shelves. We know answer is 32/11! = 32/39,916,800, which sim- that: H – 1 = S (all the hands except one had a plifies to 1/1,247,400—a roughly one in a shelf), and H/2 = S – 1 (half the number of million shot. hands filled all the shelves but 1). Solving for H and S, we get 4 hands and 3 shelves. 3.22 Journey. Let the distance between the city and New York be D miles. We know that 3.26 Ages. Teja: 5; Danielle: 11; Nick: 21; time equals distance divided by velocity. This Pete: 31; Mark: 41. means that it takes D/21 hours to travel to New York and D/3 hours to return. The total time for the trip is D/21 + D/3 = 8D/21 hours 3.27 Three arrays. Here is one solution. Can to travel 2D miles, or 4/21 hours to travel 1 you find others? (Obviously, the numbers mile. Therefore, the average speed is 21/4 or inside a particular array might be shuffled 5.25 miles an hour. around to produce a valid solution.) How fast could you do this? There are 6 missing num- 3.23 Four intelligent gorillas. The successful bers, giving 6! = 720 permutations. I tried all gorilla received 2,468 votes. Let the winner 720 and found 8 that worked. All 8 are just receive w votes. Then the other three candi- variations on the given solution. Each 2 × 2 dates received w – 888, w – 88, and w – 8 grid can be arranged in 2 different ways, giv- votes. So the total number of votes is 4w – ing 2 × 2 × 2 = 8 ways to do this. (888 + 88 + 8), which we know equals 8,888. Hence, w = (8,888 + 888 + 88 + 8)/4 = 2,468. 1 2 8 9 6 4 3.24 George Nobl: A true story. He’d have to 10 11 12 5 7 3 mix 10 pounds of peanuts. Let x be the

Answers 317 bansw01.qxd 5/17/05 9:54 AM Page 318

3.28 Perfect cubes? No, they cannot be per- two solutions involve swapping 3 numbers, not fect cubes. First, consider that if integers A 2. I tried all 8! permutations, which required and B are perfect cubes, then A × B must be a only 0.93 seconds of actual processing time. perfect cube. Why? Let A = x × x × x, and B = y × y × y. Then we have A × B = x × x × x 3.31 Rational roots. When I posed this problem × y × y × y, or, rearranging, (x × y) × (x × y) × to colleagues at the end of 2003, I was not (x × y) , which is a perfect cube. certain that anyone could solve it. However, So, we can multiply our starting numbers Graham Cleverley found a solution to this for n + 3 and n2 + 3 to get (n + 3)(n2 + 3) = n3 + n = 113569/14400. This meets the criteria of 3n2 + 3n + 9 = (n + 1)3 + 8. This means the problem because (n + 1)3 + 8 must be a perfect cube, and we n = 113569/14400 = 3372/1202 can see that (n + 1)3 is a perfect cube. These two perfect cubes must differ by 8. n – 7 = 12769/14400 = 1132/1202 However, you can see that perfect cubes n + 7 = 214369/14400 = 4632/1202 grow very rapidly: 1, 8, 27, 64, 125, . . . Thus, there are no perfect cubes that differ by 8 Other solutions are possible, but we think for positive n. Therefore, n + 3 and n2 + 3 this is the smallest solution. Cleverley notes cannot both be perfect cubes. (This puzzle that if you can find integer solutions for the was inspired by Nick Hobson, www.qbyte. variables p, q, r, and s such that (p2 – 7q2)/2pq org/puzzles/.) = (r2 + 7s2)/2rs, then n is the left-hand (or right-hand) side of the equation squared. The 3.29 Four pets. In 84 days; 84 is the lowest previous solution occurs with p = 20, q = 3, common multiple of 6, 4, 3, and 7. The lowest r = 15, and s = 4. common multiple (LCM) of a group of num- Cleverley used a Microsoft Excel spread- bers is the smallest number that is a multiple sheet and varied r and s until he found values of each number in the group. One way of for which r4 + 42r2s2 + 49s4 is square, the finding the LCM is to list the multiples of requisite condition for the previous equation each number, and then pick the smallest num- having integers p, q, r, s. ber that is common to all numbers in the It is intriguing that today mathematicians group. You can learn about other ways of find- of all degrees of sophistication can solve ing the LCM on the World Wide Web. problems like this using spreadsheets. It took Cleverley about an hour of programming and 3.30 Fractional swap. 1,534/4,602 = 1/3. How experimenting to find a solution. long did you take to solve this? What method is the most efficient to use when solving prob- 3.32 Donald Trumpet. William got $200,000. lems of this kind? Do you think there is more ($200,000 + $800,000 = $1,000,000.) than one answer? Recently, I found four different answers: 1354/4062, 1534/4602, 3.33 Rubies and emeralds. The combined 0454/1362, and 0544/1632. However, the last weight is 20 pounds. Let R = the weight of

318 Answers bansw01.qxd 5/17/05 9:54 AM Page 319

one ruby and E = the weight of one emerald. {8, 3, 2, 1}, {7, 9, 2, 1}, {2, 9, 4, 1}, {2, 3, 5, We know that 3R + 2E = 32 and 4R + 3E = 1}, {6, 0, 4, 2}, {6, 7, 5, 3}, {9, 0, 5, 4}, and 44, which means that the weight of a single {8, 9, 5, 4}. ruby is 8 pounds, and the weight of a single emerald is 4 pounds. So, 2R + E = 20 pounds. 3.37 Wizard’s card. Number 23. In puzzles of Perhaps a more elegant solution is to note this kind, if the two numbers have a common that removing one ruby and one emerald divisor, then no numbers that are not a multi- (4R + 3E → 3R + 2E) reduces the weight by ple of that divisor can be obtained. Otherwise, 12 pounds (44 to 32), so doing the same again if one integer number is x and another is y, (3R + 2E → 2R + E) reduces by the same then the largest impossible score is xy – x – y. amount, to 20 pounds. Using this logic, there So, in our case, we have 9 × 4 – 9 – 4 = 23. is no need to calculate the individual weight of each stone. 3.38 Insert symbols. This was the first solution I came up with: 87 + 65 – 43 – 21 = 88. In 2 3.34 Crow and eagle. The crow gets 14 and ⁄7 fact, there are at least 9 solutions, including worms (approximately 14.2857 worms). The 87 – 6 + 5 – 4 + 3 + 2 + 1, 87 + 6 – 5 + 4 – 5 eagle gets 85 and ⁄7 worms (85.7143 worms). 3 – 2 + 1, 8 + 7 + 65 + 4 + 3 + 2 – 1, 87 + 6 – 5 – 4 + 3 + 2 – 1, 87 – 6 + 5 + 4 – 3 + 2 – 3.35 Number grid. 1, 87 + 6 + 5 – 4 – 3 – 2 – 1, 8 – 7 + 65 + 4 – 3 + 21, 8 – 7 + 65 + 43 – 21, and 87 + 65 – 8 + 2 + 2 = 6 43 – 21. At least 45 different solutions exist, if we × + × were to allow the additional use of × and ÷. If we wish to study a related problem, 8 7 6 5 4 7 × 4 + 6 = 34 3 2 1 = 1, we find only one solution using + and – symbols: 8 – 76 + 5 + 43 + 21 = 1. + + – 3.39 Missing numbers. Here is one solution. 3 × 5 + 9 = 24 Are there others?

= = = 2 3 5 6 16 59 11 3 4 2 4 7 17

2 0 5 8 15 3.36 Four digits. Here is one solution: × (23 + 2) 5 = 125. Are there other solutions? 2 1 5 9 17 Recent studies suggest that 8 possible solu- tions exist if we require that A, B, C, and D 10 6 19 30 18 are unique. These solutions are {A,B,C,D}

Answers 319 bansw01.qxd 5/17/05 9:54 AM Page 320

3.40 New Guinea sea turtle. I am 10 years old, both sides of the equation by 14 to yield and my turtle is 40 years old. Here’s one way 6W = 7M, and thus the least number is W = 7, to solve this. Let x = my age. Let 4x = the tur- M = 6. This gives 13 Martians total, of which tle’s age. Then, 6/13 of the crater’s inhabitants are married (i.e., 3 wives of the 7 women and 3 husbands 4x + 20 = 2(x + 20) of the 6 men). There are exactly 3 married 4x + 20 = 2x + 40 couples. For this problem, we assume that marriages are between male and female Mar- 2x = 20 tians. If I do not ask for the least number, x = 10 there are an infinite number of solutions to 6W = 7M. 3.41 Find A and B. The answer is 422 = 1,764. 1 3.46 Dimension X. A third of 12 would be 5 ⁄3. 3.42 Prosthetic ulnas. She weighs 160 pounds. Assume that there is a strange factor that 6 The equation is x = 120 + x/4. causes ⁄2 to be equal to 4 instead of 3. This fac- tor is 1.3333 . . . or 1 and 1/3. Therefore, (12/3) 1 3.43 Ladybugs. The relevant equation is L + × 1.3333 . . . is 5 ⁄3. Of course, this is one of 10 = 5L – 2. The answer is 3. You don’t have those frustrating puzzles when more than one to denote the number of grasshoppers by G. answer is possible. For example, we might con- sider the idea that 1 is added to each division 12 3.44 Nebula aliens. The radius is 18 feet. The operation so that ⁄3 = 5. Platonists may disap- area of a sphere is 4πr2 and the volume is prove of this puzzle and say that the eternal (4/3) πr3. According to our problem, this idea “6” is 6 in any dimension whatsoever. means that both 4r2 and (4/3)r3 must be If my wording bothered you, you can recast between 1,000 and 9,999. From the area con- the question as the following when presenting dition, we get 50 > r > 15, and from the vol- it to friends. My calculator has been acting up ume condition we get 20 > r > 9. Next, note lately. For instance, every time I divide 6 by 2, that (4/3)r3 can be an integer only if it is it gives the answer 4. What do you think it divisible by 3. This means r = 18 feet. Is it would give if I divided 12 by 3? That stops all possible to determine the sphere’s radius if the of the philosophical arguments about what I surface area and the volume are both five- might mean by “is” in “half of 6 is 4” or digit integers times π? indeed “half,” because there is no reason that in this nearby dimension, “half ” should mean 3.45 Martian females. In the crater, 3 females what you get if you divide by 2. and 3 males are married. Let’s refer to the females as women and males as men, even if 3.47 Wine and vinegar. Monica carries 10 × 3 × 1 3 they don’t quite look like us. The number of ( ⁄4) = 7.5 cups. William carries 5 × 4 × ( ⁄4) = married men and married women must be 15 cups. Thus, William carries 15 – 7.5 = 7.5 1 equal. Thus, we have 3/7 W = ⁄2M. Multiply cups more than Monica does.

320 Answers bansw01.qxd 5/17/05 9:54 AM Page 321

3.48 Unholy experiment. There are 40 humans Altogether, Bill has 3 birds in his “vast” col- and 30 rabbits. Let h be the number of lection! Two of his birds are not geese, but 1 humans, and let r be the number of rabbits. is. Two birds are not ostriches, but 1 is. Two Thus, we have two equations with two birds are not swans, but 1 is. This adds up to 3 unknowns. birds, 1 of each type.

r + h = 70 3.52 Fluid pool. It would take 12 minutes. The 4r + 2h = 200 creatures will rule Earth. This is a classic problem that can be analyzed in a simple We can multiply the first equation by 2 and manner. If only Hose A is open, the portion of subtract it from the second: the pool filled by Hose A is T/30, where T is 2r + 2h = 140 time. (Notice how after T = 30 minutes, the pool would be filled.) The portion of the pool 4r + 2h = 200 filled by Hose B is T/20. When both hoses are Thus, 2r = 60; r = 30; h = 40. Are there other open and the pool is completely filled, the answers to this problem? equation to solve is T/30 + T/20 = 1 3.49 Space race. The Americans and the Russians traveled different routes between Multiply by 60 to get the planets, and one route was shorter than 2T + 3T = 60 or T = 12 the other. (You didn’t need much algebra for this one!) This means that the creatures will fill the pool in 12 minutes. 3.50 Odin sequence. Indeed, every starting We can also think of many more compli- two-digit number in the Odin sequence cated variations. For example, Hose A would returns to itself eventually. Number 13 fill the pool in 30 minutes by itself. Hose B requires 20 steps to return; that is, the 21st would fill the pool in 20 minutes by itself. The number is the same as the first. All other two- creatures fill the pool in 3 minutes using Hose digit starting numbers require 20 steps to A, Hose B, and Hose C simultaneously. return, except for multiples of 5, which How long would it take to fill the pool using behave differently and require fewer steps. Hose C by itself? Another question to ponder is what the 3.51 Tanzanian zoo. Question 1: Bill has 18 approximate color of the fluid would be. giraffes and 4 ostriches. Each animal has 2 3.53 Madagascar death snail. The snail can’t go hind legs, so 22 heads means 44 hind legs fast enough to average 60 feet per hour for total. The remaining 36 legs must be the front both times around, no matter how hard it tries. legs of 18 giraffes. Therefore, 18 heads Here’s why. belong to the giraffes, and the remaining 4 heads belong to the ostriches. Question 2: 60 feet/hour = 1 foot/minute

Answers 321 bansw01.qxd 5/17/05 9:54 AM Page 322

To average 60 feet per hour, the snail would multiple of 20. How might we do this? First, have to travel around the 1-foot track twice in divide by 20b and recast into the form 2 minutes. First, let us compute how much (14x)/(20b) < 1 < (15x)/(20b) time the snail has taken to travel one lap. At 1 30 feet/hour (or ⁄2 foot a minute), the snail has Multiply the left inequality by 20/14: x/b < taken 2 minutes to complete the first lap, 20/14. because the track is 1 foot long. Multiply the right inequality by 20/15: 20/15 < As we said, if we want the snail to travel at x/b. an average speed of 60 feet/hour (1 foot/ minute), this requires that the two laps be Combine the two: 20/15 < x/b < 20/14. completed in 2 minutes. If the snail needs more than 2 minutes to travel the two laps, it 20/15 < x/b < 20/14 is traveling at a speed slower than 60 feet an or hour. However, the snail has already used up 2 minutes to do one complete lap. This means it 4/3 < x/b < 10/7 has used up all of its time. It can’t possibly Now, for positive fractions r/s in which r/s < complete two laps in 2 minutes. This means u/v, we also have r/s < (r + u)/(s + v) < u/v, there is no way that it can achieve an average and so, x = 14, b = 10, or x = 7, b = 5 is one speed of 60 feet/hour. solution.

3.54 Pulsating brain. Yes. Let us assume that 3.55 Grotesque vessel for total human harvest. there are x astronomical objects in the jar. The sphere to hold humanity is about 1.00 Then, the number b of black holes is more kilometer (0.6 miles) in diameter. Let us esti- than (70/100)x and less than (75/100)x. We mate the answer in such a way that Queequeg can rewrite this as does not choose too small a vessel and end 70 x 75x with a mess pouring out the top. First, assume <

322 Answers bansw01.qxd 5/17/05 9:54 AM Page 323

3.56 Kama Sutra puzzle. Number 28. When the We know that 3x + 2y = 35 and x + y = 13. man tells the woman how good she is with the Thus, we can multiply x + y = 13 by 2 to yield method of inversion, he is referring to the 2x + 2y = 26. We subtract this from 2y + 3x = idea of working a problem backward, so that 35, yielding x = 9. This implies 9 tricycles and when, for example, a divide operation is 4 bicycles. given, we actually multiply, and so forth. To solve the Kama Sutra problem, we start 3.59 Gelatinous octopoid. He was an active with the answer 2 and work backward. When octopoid for 4.41 centuries. The problem may the problem says divide by 10, we multiply by be solved by using the following equation: a/3 10. When we are told to add 8, we subtract 8. + a/5 + a/7 + 10 = a, where a denotes Dr. When told to find the square root, we take the Eck’s age in centuries. The equation may be square, and so forth. So we have [(2 × 10) – solved as follows. Multiply each term by 105 8]2 + 52 = 196. Instead of “multiplying this to get number by itself,” we take the square root, 35a +21a +15a + 1,050 = 105a which is 14. We proceed as follows: 71a + 1,050 = 105a ()(/)(14 3 2747)( / ) = 28 1,050 = 34a 3 a =1,050/34 = 30.88 centuries

3.57 Alien robot insect. In 9 months. The insect Therefore, Dr. Eck’s life spent as an active appears to be traveling upward by 4 feet each octopoid is = 30.88/7 = 4.41 centuries. month. In 8 months, it will have traveled 32 feet from the base of the wall. However, on 3.60 Cloned Jefferson in Rome. The magnifi- the ninth month, it will travel upward 8 more cent floor has a column at each corner. Each feet and reach the top of the wall before slip- side has 13 columns, excluding the corner ping down. columns. Thus, the total number of columns used is 4 + (4 × 13) = 56. Notice that the 0.3 dimensions were not needed to solve this. 3.58 Goa party. You see 9 tricycles and 4 bicy- Here’s a diagram showing a smaller example × × cles. As confirmation, note that 9 3 + 4 2 in which Jefferson counts 4 columns on a side: = 35 wheels. We can solve this in the follow- ing manner. Let y = the number of bicycles ** ** and x the number of tricycles. Then we solve ** for x and y in the following: ** x + y = 13 describes number of vehicles ** ** 2y + 3x = 35 describes number of wheels x = number of trikes 3.61 Hamburgers in space. In elementary calcu- y = number of bikes lus class, we learn that the “derivative” of a

Answers 323 bansw01.qxd 5/17/05 9:54 AM Page 324

distance function can be used to give us the Now that we have the value for k, we can sub- speed of a moving object. Given f(t) = 3t 2 + stitute this value in our original equation. 3 ′ 4t , we can find the derivative f (t) = 6t + N(t)=10e0.508t 12t 2. When t = 100, the derivative is 120,600. This means that the hamburger is traveling at This equation tells us the number of bacteria 120,600 miles per second. Of course, this is in the milk at any time. When will the milk outrageously fast, considering that the speed have reached its maximum of 6 billion of light is 186,000 miles per second in a vac- bacteria? uum! In real life, Britney’s hamburger (or As we think about this, the bacteria have anything else she tried to accelerate to this already started their rapid multiplication. speed) would have been damaged long before Notice that people around us are beginning to it reached this speed. gag from the stench, which resembles that While on the topic of derivative, note that produced by a rotting water buffalo corpse, or the mathematics professor Hugo Rossi once so I’m told. I have never actually encountered said, “In the fall of 1972 President Nixon a rotting water buffalo corpse. announced that the rate of increase of infla- We can quickly solve this problem by plug- tion was decreasing. This was the first time a ging 6 billion into our equation. sitting president used the third derivative to 6,000,000,000 = 10e0.508t advance his case for reelection” (Hugo Rossi, 600,000,000 = e0.508t “Mathematics Is an Edifice, Not a Toolbox,” Notices of the AMS 43, no. 10 (October ln(600,000,000) = 0.508t 1996): 1108). t = ln(600,000,000)/0.508 or 39.7 hours In 39.7 hours, there will be 6 billion bacteria 3.62 Spores of death and madness. First, let’s in the milk. I don’t want to be around here start with our exponential growth equation: then! N(t) = N ekt. The current time is time t = 0, 0 Note that in real life, bacteria won’t con- and N is 10. So we have N(t) = 10ekt. 0 tinue to grow exponentially, because they I’d like to first determine the value for k. need to eat and excrete. Growth tends to slow We know that tomorrow at this time, which when creatures are trying to subsist on their corresponds to 24 hours, the population will own excreta. be 2 million bacteria: N(24) = 2,000,000 = 10ek(24) 3.63 An ancient problem of Mahavira. The girl or originally had 148,608 pearls on her necklace. 200,000 = ek(24) That’s a big necklace! Let’s reflect on the 1 1 Let’s solve for k. problem: ⁄6 fell on the bed; ⁄3 scattered toward her. This means that the remaining ln(200,000) = 24k pearls that are neither on the bed nor near her 1 k = ln(200,000)/24 ≈ 0.508 are ⁄2 of all the pearls. The remaining pearls

324 Answers bansw01.qxd 5/17/05 9:54 AM Page 325

are halved six times, so ((1/2)7)x = 1,161, 3.64 Alien slug. Dr. Oz is 20.44 years old and where x is the total number of pearls. Thus x his wife is 17.66. Let Dr. Oz’s age be x and is 148,608. The Indian woman must have had his wife’s age be y. Then a huge necklace! x – 6 = 10 + y – (x/2 + 3) My colleague Jaymz provides another view of the solution. We assume that the pearls on y – 12 = 3 + x – (2y/3 + 6) the bed, the pearls that scattered toward the The 2y/3 term comes from the fact that when lady, and those mysterious remaining scat- the wife was a third of her present age, this tered pearls that factored with a sum of occurred precisely (2/3)y years ago. These diminishing fractions are all “scattered” equations reduce to pearls. Assume that the 1,161 unscattered pearls included all but the previous. Let T be (1) 3x – 2y = 26 the total number of pearls, and let S be the (2) 5y – 3x = 27 total number of scattered pearls. Thus, we have Adding these two equations gives 3y = 53 1. Number scattered toward lady = T/3 y = 17.66666 2. Number scattered on the bed = T/6 Placing y = 17.66666 into (2) gives us 3x = 3. Number scattered up to this point = 61.33333 or x = 20.4444. (T/3 + T/6) 4. Factor of “what remained” up to this point 3.65 Lucite pyramids. Alpha has 40 beetles. = T – (T/3 + T/6) Omega has 30 beetles. Let alpha have x bee- 5. Mysterious sum of diminishing fractions: tles and omega have y beetles. The number (1/2 + 1/22 + 1/23 + 1/24 + 1/25 + 1/26) taken by omega is y/3, which leaves alpha 6. Total of scattered pearls: with x – y/3. Alpha retrieves the same number, S = (T/3 + T/6) + (T – T/3 – T/6)((1/2 + which is (x – y/3)/3, so we have 1/22 + 1/23 + 1/24 + 1/25 + 1/26), which (1) y =70 – x reduces to S = T(1/3 + 1/6) + T (1 – 1/3 (2) y/3 = (x – y/3)/3 – 1/6)[(32 + 16 + 8 + 4 + 2 + 1)/64], or S = T(1/2) + T(1/2)(63/64), or S = From (2), we have 4y = 3x (3). From (3) and T(64 + 63)/128, or S = T(127/128), which (1), we get x = 40 and y = 30. provides us with a first equation. As for a second equation, we have T – S = 1161. 3.66 Bakhshali manuscript: A true story. The Combining the two final equations, we obtain solution is 2 men, 5 women, and 13 children. T(1 – 127/128) = 1,161, or T(1/128) = 1,161, We can let the number of men, women, and or T = 1,161 × 128 = 148,608 original pearls. children be m, w, and c, respectively. Two for- Quite a necklace, and worth quarreling over! mulas describe our situation.

Answers 325 bansw01.qxd 5/17/05 9:54 AM Page 326

m + w + c = 20 and the largest such number less than 245,000. As 3m +(3/2)w + (1/2)c = 20. the number of digits increases, it becomes We may multiply the first equation by 3 and increasingly unlikely that a larger such num- subtract the second equation to yield ber will be found, because the probability that a random string of digits contains only 1, 2, 4, 3 × [m + w + c = 20] and 8 very rapidly approaches 0 as the length –[3m + (3/2)w + (1/2)c = 20] of the string increases. = (3/2)w + (5/2)c = 40 3.69 Harmonic series. Although the divergence So 3w = (80 – 5c). The quantity 80 – 5c must of the harmonic series is not immediately be a multiple of 3 and of 5. Our choices are apparent, we can demonstrate this fact fairly 15, 30, 45, 60, and 75. Therefore, c = 1, 4, 7, easily. Given the harmonic series 10, or 13. We can attempt to list all possible ∞ 1 1 1 1 values of m, w, and c. The following is a table H ==+++∑ 1 ... of possible values of c, and the corresponding n=1 n 2 3 4

values of m and w: 1 we can begin with the ⁄2 term and group c w m terms—1, 2, 4, . . . terms at a time: 1 1 1 1 1 25 –6 H = ⁄1 + ( ⁄2) + ( ⁄3 + ⁄4) + 1 1 1 1 4 20 –4 ( ⁄5 + ⁄6 + ⁄7 + ⁄8) + . . . 7 15 –2 Next, replace each group in parentheses with 10 10 0 the smallest fraction in the group, to get 1 1 1 1 13 5 2 H > ⁄1 + ( ⁄2) + ( ⁄4 + ⁄4) + 1 1 1 1 ( ⁄8 + ⁄8 + ⁄8 + ⁄8) + . . . The only valid combination is c = 13, w = 5, Adding the terms in parentheses, we get and m = 2. 1 1 1 1 H > ⁄1 + ⁄2 + ⁄2 + ⁄2 + . . .

1 3.67 Luminescent being. N is 81. (√81 = 9 = 8 + Since we have an infinite number of ⁄2s to be 1) If you experiment further, you’ll see that no added, the result will be infinite. Since this larger values of N could exist because the sum smaller series diverges, the harmonic series of the digits, M, becomes much too small to (whose terms are larger than the new terms) sum to N. must also diverge. Hence H is unbounded. As I told you, the series diverges extremely 3.68 Mathematical romance. The answer is 128. slowly: after the first thousand of the terms, I do not know whether 128 is the only number the partial sum is 7.485; after a million terms, with these characteristics. My colleague it is 14.357; for the first billion terms, it is Joseph Pe used Mathematica to search for approximately 21; and for the first trillion additional solutions. He discovered that 128 is terms, it is approximately 28. My colleague

326 Answers bansw01.qxd 5/17/05 9:54 AM Page 327

Pete Barnes notes that to reach a partial sum You might think that the harmonic series 1 1 1 of 100, we would have to add up 1043 terms of with only odd terms converges: ⁄1 + ⁄3 + ⁄5 + 1 the harmonic series. A computer adding up ⁄7 +. . . . After all, it grows much slower than one million terms per second would take the standard harmonic series. Alas, the series about 1037 seconds to complete the job. Since diverges. the age of the universe is only about 1017 sec- onds, it would take quite a few universe life- 3.71 Shopping mall puzzle. The smallest value times. To get to 1,000, we must add together for N is 132 = 12 + 21 + 13 + 31 + 23 + 32. over 10434 terms. 3.72 Castles and strings. Light the 10-minute 3.70 Harmonic series on a diet. Given string at both ends. The flames will die in 5 ∞ 1 1 1 1 minutes. When this happens, light both ends ==+++ H ∑ 1 ... of the 1-minute string. This will burn in 30 = n 2 3 4 n 1 seconds. Thus, the total time elapsed is 5 min- We can remove all terms with 9s in the utes and 30 seconds. denominator and group as follows: J = (1/1 + . . . + 1/8) + (1/10 + . . . + 3.73 Target practice. Here is one solution: 17 + 1/18 + 1/20 + . . . + 1/28 + . . . + 1/80 + . . . + 13 + 19 + 51. Try this on friends. How long 1/88) + (1/100 + . . . + 1/888) + . . . did it take them to find an answer? Other solu- tions include {22, 62, 9, 7}, {22, 20, 7, 51}, In each set of parentheses, replace each term {15, 61, 17, 7}, {15, 23, 55, 7}, {15, 13, 63, with the greatest term in that set of parenthe- 9}, {15, 13, 17, 55}, {61, 23, 9, 7}, {61, 13, ses. This increases the sum of each set of 17, 9}, {61, 13, 19, 7}, {23, 13, 9, 55}, {23, brackets, and so J will be less than the sum of 17, 9, 51}, {23, 19, 7, 51}, {13, 63, 17, 7}, new sets of brackets. We then show that this {13, 17, 19, 51}, and {17, 9, 19, 55}. greater sum is finite. Hence, by comparison, J is finite. 3.74 Hobson gambit. The answer is 101 + 2/3. J < (1 + . . . + 1) + (1/10 + . . . + 1/10) + Perhaps we can make an interesting point with (1/100 + . . . + 1/100) + . . . the Hobson gambit. Problems that would have J < 9(1) + 92(1/10) + 93(1/102) + . . . taken mathematical geniuses like Euler, Gauss, and Newton a lifetime to solve are now J < 9[1 + 9/10 + (9/10)2 + . . .] solvable in seconds by mathematical punks on every street corner. J < 9/(1 – 9/10) For this problem, we have J < 90 a + b + c = 1, Hence the harmonic series with all the 9s a2 + b2 + c2 = 15, removed converges! This proof applies equally for any missing digit. a3 + b3 + c3 = 3

Answers 327 bansw01.qxd 5/17/05 9:54 AM Page 328

My colleague Mark Ganson used the follow- If anyone today can obtain answers to prob- ing Mathematica software steps to obtain a lems like these in seconds, a century from solution: now will ten-year-olds press buttons to solve Clear[a, b, c] challenges like Fermat’s Last Theorem in seconds? Even if solutions are easier to find, eqn = { each new computer-assisted discovery will a + b + c == 1, bring fresh, tougher questions. What could legendary mathematicians like Euler, Newton, a^2 + b^2 + c^2 == 15, and Pythagoras have accomplished with the a^3 + b^3 + c^3 == 3 tools we have today? } 3.75 Magic light board. Here is one solution. NSolve[eqn, {a, b, c}, 200][[1]] Can you find others? How many others exist? In the previous, the “200” indicates that the equation is to be solved using 200 digits of accuracy. We find r y o g a = 0.89253182605396733441976900973253 b i v t 1069243954902464648909768173967549575 2892670846352058496765784633125616195 5259812851620442770813756895354985532 3.76 Aqueduct. This is based on a classic puz- 8896282582210326719059230379147684158 zle. When the soldier is in the hut, sneak onto 4901206735270950 . . . the aqueduct and walk toward Greece. After 9 b = –2.6106243944700423379080253563497 minutes and 59 seconds, turn back and start 1854917202730470562737969433824128117 walking toward Italy. When the guard sees 4798088160245862497217001612441751133 you, he will assume you are coming from 8650243126844487876386497043442925863 Greece and will order you to go back. 2333273742400199884581511175234546061 409369936836225713 . . . 4. Geometry, Games, c = 2.71809256841607500348825634661718 and Beyond 7479928072402240978469926164273731599 5088210756106566475404231491291895143 1242618416824435993051213539074273099 4.1 Martian bodies and Venn diagrams. There are 4436454841791672126755881373197776455 90 Martians with none of these body charac- 60357869483516215 . . . teristics. One way to solve a problem of this type is to use Venn diagrams with three circles Once Mark had values for a, b, and c, he (figure A4.1). Circle A contains Martians with obtained pointed ears (a1 = 600). Circle B holds 4 4 4 a + b + c = 101.666666666 . . . Martians with fangs (a2 = 300). Circle C

328 Answers bansw01.qxd 5/17/05 9:54 AM Page 329

20 – 230 = 170. For B, we have 390 – 230 – 130 – 20 = 10. For C, we have 400 – 180 – 20 – 130 = 70. Initially, I told you that we were examining 900 Martians. So to compute the number of Martians not contained in the 3 circles, we have 900 – 70 – 180 – 20 – 130 – 170 – 230 – 10 = 90. Thus, 90 Martians have neither fangs, nor horns, nor pointed ears. Now do you realize how useful Venn diagrams can be?

4.2 Star of David. This is possible. As stated in Figure A4.1 Martian bodies and Venn diagrams. a previous , you can traverse a graph by going through every segment just once only if the graph has less than 3 vertices of odd holds Martians with horns (a3 = 400). A Venn diagram is usually drawn as a rectangle “valence.” For this graph, every vertex has an (which holds all the elements in a problem) even valence, so it is possible. If you haven’t surrounding circles that depict subsets of ele- solved this, keep trying! ments. As we mentioned previously, these dia- 4.3 Mondrian puzzle. The mystery square has grams are named after the English logician an area of 9.384 in whatever units of area are John Venn (1834–1923), who in 1880 popular- appropriate to the measurements. First, we ized their use. can ignore the two side rectangles of Areas 4 The practical use of Venn diagrams will be and 3. They don’t contribute to the solution. If best understood by filling them with our Mar- we label each of the rectangle’s horizontal tians. In the top left figure in figure A4.1, we dimensions (a, b, c, d) and vertical dimen- note that 20 individuals have all three body sions (e, f, g, h), we find that a × h = 10, c × h characteristics (a , a , a ). Proceeding to the 1 2 3 = 13, b × g = 8, b × f = 7, a × e = 9, and d × e right in figure A4.1, we continue our analysis = 12. The special unknown Mondrian square by noting that 200 creatures have a and a . 1 3 has area cf. Of these creatures, 20 are already displayed in Here’s what we know: the Venn diagram, and 180 remain. Note that × × × × × × × 150 creatures have a2 and a3, and 20 of these a b c d e f g h = are already in the diagram, so 130 remain. ae × bf × ch × dg = 9 × 7 × 13 ×11 Also, 250 creatures have a and a . Of these, 1 2 a × b × c × d × e × f × g × h = 20 are displayed in the figure and 230 remain. ah × bg × cf × de = 10 × 8 × cf × 12 Now we must fill in the larger parts of each circle. For example, to find the remaining part Thus, 9 × 7 × 13 × 11 = 10 × 8 × cf × 12,

of A, we know that a1 = 600, so 600 – 180 – which means cf = 9.384.

Answers 329 bansw01.qxd 5/17/05 9:54 AM Page 330

4.4 Compact formula. Drum roll, please. . . . the golden section is the most irrational num- One answer is eiπ + 2φ = √5. Isn’t that a ber.” The approximation of the continued beauty? fraction to the golden ratio is also worse than for any other number. Therefore, chaos 4.5 Remarkable formulas involving 1. Both of researchers often pick the golden ratio as a these formulas equal the golden ratio, parameter to make the behavior of simula- 1.61803 . . . The second formula is called a tions as aperiodic as possible. For more infor- continued fraction and has numerous uses for mation, see Manfred Schroeder, Number mathematicians and physicists. A general Theory in Science and Communication expression uses the letter b to denote the num- (Berlin: Springer, 1986). ber in each denominator: 4.6 Goly. A golygon is a special kind of path 1 b + on a plane that has an equally spaced grid of 0 + 1 b1 + 1 points. To create a golygon, start at one point, b2 b + 1 3 ... and take a first step one unit to the north or the south. The second step is two units to the Manfred Schroeder remarked, “Continued east or the west. The third is three units to the fractions are one of the most delightful and north or the south. Continue until your path useful subjects of arithmetic, yet they have closes on itself and reaches the starting point. been continually neglected by our educational No crossing or backtracking is allowed. factions.” These typographical nightmares can Figure A4.2 is a typical golygon. The num- be more compactly written as [b0, b1, b2, . . .]. ber of golygons of length 8n for the first few n And the golden ratio can be represented as are 4, 112, 8432, 909288, . . . , which [1,1,1,1, . . .]. We can also write this more approaches compactly as [1,1], where the bar indicates a − repetition of the number 1. 32⋅ 84n Even though transcendental numbers do π nn2 ()41+ not have repeating numbers in their continued fractions, their continued fractions often dis- for large values of n. Note the appearance of play patterns. It is mind-boggling that the irra- the ever-present pi in a formula that appears tional number e (e = 2.718281828 . . .), unlike unrelated to a circle. π, can be represented as a continued fraction Golygons are more than just a geometric with unusual regularity [2, 1, 2, 1, 1, 4, 1, 1, curiosity. Golygons, formally known as serial 6, 1, 1, 8, 1, . . .]; however, this initially con- isogons of 90 degrees, have inspired countless verges very slowly because of the many 1s. In puzzles and problems for research. For further fact, the golden ratio, which contains infi- reading, see L. Sallows, M. Gardner, R. K. nitely many 1s, is the most slowly converging Guy, and D. Knuth, “Serial Isogons of 90 of all continued fractions. Schroeder notes, “It Degrees,” Mathematics Magazine 64 (1991): is therefore said, somewhat irrationally, that 315–24.

330 Answers bansw01.qxd 5/17/05 9:54 AM Page 331

where Φ = (1 – √5) / 2. Both φ and Φ are the roots of x2 – x – 1 = 0. The occurrence of the golden ratio in various areas of geometry becomes evident in the next question.

4.8 Mystery pattern. The Lute of Pythagoras (figure A4.3) is among mathematics’ most beautiful recursive shapes and has many remarkable properties. You may wish to spend some time constructing this interesting shape and thinking about its features. Begin your construction by drawing an isosceles triangle, such as you see marked Figure A4.2 A typical golygon. ABC in figure A4.3. Next, construct the ladder steps marked ED, FG, and so on. There is a trick you must follow to locate the ladder 4.7 Special number. This number, discussed in steps: the length AC must equal AE, the length chapter 2, is called the golden ratio and DE must equal DG, and so on. Thus we have equals 1.61803 . . . . It appears in the most AC = DC = AE, DE = DG = EF, and so on. surprising places in nature, art, and mathe- Next create the pentagonal, starlike figures by matics. A golden rectangle has a ratio of the length of its sides equal to 1:φ. Some people have reported that the golden rectangle is among the most visually pleasing of all rec- tangles, being neither too squat nor too thin:

Golden Rectangle

Because φ = (1 + √5)/2 (and φ2 = φ +1) , it has some amazing properties: For example, φ – 1 = 1/φφΦ= –1

n n + 1 n + 2 φ + Φ =1 φ + φ = φ Figure A4.3 The Lute of Pythagoras.

Answers 331 bansw01.qxd 5/17/05 9:54 AM Page 332

joining the appropriate ladder points. A new difficult to heat. By “surface area,” I mean the point, Z, is located so that CE = AD = AZ = area exposed to outside air. Body features ZC. You can also recursively create star such as the ears, the head, the neck, and the shapes for as far as your eye can see. Note limbs increase the surface area of the mar- that the initial isosceles triangle for the lute is moset relative to a smooth torus. a “golden triangle,” that is, one where BC/AC On the other hand, some respondents rea- = AC/EC = φ, the golden ratio. Also, care soned that a marmoset could be more novel must be taken during construction to make than a torus and thus could be used to make successive ladder length ratios equal, such as money as a tourist attraction. Also, perhaps CE/EG = EG/GI. Given this construction, the marmoset shape would keep the owner mathematicians have noted that the ratio of more in touch with nature. successive sides of the ladder CE/EG = My colleague Marie S. writes, EG/GI . . . is the golden ratio. I would choose a torus. I could have a “covered” patio in the center where I could 4.9 Cut the crescent to make a cross. Figure exercise my dogs (and wouldn’t need a A4.4 shows Loyd’s solution. fenced yard). If there were doorways in and out of the center, I would have quick and easy access to the different areas. Even without that, I could have easy access to the main living areas, access to kennel areas that could be separated from the main living areas, and access to a garage within the torus. The shape would be reasonably efficient to heat and cool. A marmoset, on the other hand, would be more expensive to heat and cool because of the greater surface expo- Figure A4.4 Sam Loyd’s “Cross and Crescent” sure. If the marmoset were in a standing puzzle. position, it would have more than one story—and the height would also increase 4.10 Torus versus marmoset. The torus home. I heating and cooling costs. If lying, it would surveyed several dozen individuals. A major- be more spread out and have more difficult ity preferred living in a torus. Most found the access to areas in the arms, legs, and head, shape more practical and aesthetically pleas- as well as costing more to heat and cool ing than a marmoset. From a purely geometri- because of the limited air circulation and cal standpoint, the marmoset would probably loss through the extremities. have more surface area than a comparably Actually, a torus with a covered interior sized torus and therefore would be more atrium (with drainage) and both interior

332 Answers bansw01.qxd 5/17/05 9:54 AM Page 333

and exterior access doors might be really produced with n cuts of a 2-D crescent region. workable. The floor would be part way There are similar formulas for a 3-D dough- up the sides of the torus, and there would nut and a sphere cut with n plane cuts. For a be good storage space like a basement doughnut (or a torus), the largest number of underneath. pieces that can be produced with n cuts is Depending on size, there could be a bal- (n3 + 3n2 + 8n)/6. Thus, a doughnut can be cony with “bedrooms” as a second story, sliced into 13 pieces by three simultaneous although I’d prefer everything on one level. plane cuts. For a sphere, the equation is (n3 + 5n) / 6 + 1. However, Nick H. writes, “I’d prefer the mar- moset; the torus might roll away!” 4.12 Circle crossing. According to “Johnson’s theorem,” named after the American mathe- 4.11 Green cheese moon puzzle. Sam Loyd’s matician Roger Johnson (1890–1954), if three answer is shown in figure A4.5. He says, “By circles with identical radii pass through a taking the best possible advantage of the cres- common point, then their other three intersec- cent form of the moon, 21 pieces of green tions lie on another circle with the same cheese can be cut for the hungry.” Martin radius (see figure A4.6). Gardner notes that for a crescent, the number of pieces increases as the number of cuts n increases: (n2 + 3n)/2 + 1. Try the same exper- iment using a circle. How many pieces can you cut a circular region into, using 4 straight cuts? 5? How about a circle with a hole in the middle? The crescent answer gives an equation for the maximum number of pieces that can be

Figure A4.6 Circle crossing.

4.13 Sam Loyd’s fifteen puzzle. The “14-15” puzzle, or just the “fifteen puzzle,” illustrated Loyd’s interest in practical jokes (figure A4.7). Many people claimed to have solved the puzzle, but none could duplicate their achievement at collection time. Quite simply, Figure A4.5 Sam Loyd’s green cheese Loyd knew this because the puzzle was moon puzzle. impossible to solve. Mathematicians are

Answers 333 bansw01.qxd 5/17/05 9:54 AM Page 334

fascinated by the fact that for some initial even, the set of positions is possible to create; arrangements, this rearrangement is possible, otherwise, it is not. For example, in the fol- but for others, it is not. lowing arrangement

2 1 3 4

5 6 7 8

9 10 11 12

13 14 15

n2 = 1 (2 precedes 1) and all other ni = 0, so γ = 1 and the puzzle cannot be solved. I Figure A4.7 Sam Loyd’s fifteen puzzle. fondly recall as a boy giving a friend the pre- vious arrangement to solve, never telling the This puzzle became an instant success, friend that it was impossible. much like the Rubik’s Cube 100 years later. The famous Russian puzzlist Yakov Perel- The only way to get from the standard starting man (1882–1942) quoted the German mathe- position to the finishing position is to physi- matician W. Arens regarding Loyd’s fifteen cally lift the 15 and 14 tiles out of the frame puzzle: and then swap them, an illegal move. Can you In the late 1870s, the Fifteen Puzzle bobbed imagine how many hours people must have up in the United States; it spread quickly, spent attempting to solve this properly? and owing to the uncountable number of It’s fun to think about what initial arrange- devoted players it had conquered, it became ments can lead to solutions. Here is the a plague. The same was observed on this strategy. If the sliding square containing the side of the ocean, in Europe. In offices and number i appears “before” (reading the shops bosses were horrified by their squares in the box from left to right and top to employees being completely absorbed by bottom) n numbers that are less than i, then the game during office and class hours. In call it an inversion of order n, and denote it n . i Paris, the puzzle proliferated speedily from Then define the capital all over the provinces. A French 15 15 author of the day wrote, “There was hardly γ ≡=nn ∑ ii∑ one country cottage where this spider hadn’t = = i 1 i 2 made its nest lying in wait for a victim to where the sum need run only from 2 to 15, flounder in its web (Yakov Perelman, Fun rather than 1 to 15, since there are no num- with Maths and Physics [Moscow: Mir Pub- γ lishers, 1988]). bers less than 1 (so n1 must equal 0). If is

334 Answers bansw01.qxd 5/17/05 9:54 AM Page 335

To learn more about this puzzle, see Eric est common divisor (GCD) of the sides’ Weisstein, CRC Concise Encyclopedia of lengths: A + B – GCD(A,B). The greatest Mathematics (New York: CRC Press, 1998). common divisor of two integers is the largest number that divides both integers. For exam- 4.14 Find the bugs! Here is one possible answer ple, a 16 × 24 face would have 16 + 24 – 8 = showing the locations of the bugs. Fourteen 32 crossed tiles, since 8 is the greatest com- other solutions exist. Can you find any of the mon divisor of 16 and 24. other solutions? Of the three tablets given, we have

Number of Squares A B GCD Cut by Diagonal 16 19 1 34 16 18 2 32 16 24 8 32

Most of my colleagues used computer pro- 4.16 Strange dimension. You can design a com- grams to solve this—including the “solver puter program to solve this problem by repre- feature” in Microsoft Excel. Others solved senting the three religions as red, green, and similar puzzles by writing a program that puts amber squares in a 3 × 3 checkerboard. The random integers into each cell until a viable program uses three squares of each color. solution is found that meets all of the row and Have the computer randomly pick combina- the column sum requirements. tions and display them as fast as it can, until a solution is found. The rapidly changing ran- 4.15 Tablet of Ezekiel. The diagonal line cuts dom checkerboard is fascinating to watch, the most tiles in the 16 × 19 array. If you were and there are quite a lot of different possible to draw large versions of these arrays and arrangements. In fact, for a 3 × 3 checker- carefully draw diagonals, you would soon board there are 1,680 distinct patterns. If it realize that a diagonal enters a new tile at the took your computer 1 second to compute and beginning and each time it crosses a horizon- display each 3 × 3 random pattern, how long tal or a vertical line. However, in situations would it take, on average, to solve the prob- where the diagonal enters exactly at the cor- lem and display a winning solution? (There is ner of a tile, the diagonal crosses two lines but more than one winning solution.) enters only one tile. In other words, the diago- I believe there are twelve solutions for the nals of such tiles are on the main diagonal. problem that asks us to find an arrangement The number of tiles that a diagonal crosses with no more than one type of church in any is therefore the length A of one side of a face row or any column. Here are two of these plus the length B of the other minus the great- twelve solutions:

Answers 335 bansw01.qxd 5/17/05 9:54 AM Page 336

entries of N different elements, none of them occurring twice or more within any row or any column of the matrix. The integer N is called the order of the Latin square. Recently, the subject of Latin squares has attracted the serious attention of mathematicians, due to their relevance to the study of combinatorics and error-correcting codes. 4.17 Ant mathematics. Here is one solution with intersections at 120 degrees (figure A4.8).

It can be proven that for any valid solution, (1) one diagonal must contain the same reli- gion in each of its cells, and (2) the other diagonal must contain unique religions in each of its cells. For the second problem, here is one way to arrange the religions so that there are only two of the same religion in each row and each column:

Figure A4.8 Ant puzzle.

I believe this solution to be optimal, in the sense that it uses the least amount of tubing. Two in Each Row and Each Column Aside from using analytical approaches, my colleagues have found it even easier to use Try these problems on a few friends. Many Mathematica to actually perform computer people have difficulty visualizing the solution. simulations with tubes and ants to suggest this The “strange dimension” problem can be answer. How would your answer change if we thought of as a special problem in the remark- used a pentagon-shaped ant farm with five ably rich mathematical area concerned with different ant colonies? Another variation is to Latin squares. Latin squares were first sys- place three ant colonies at three corners of a tematically developed by the Swiss mathe- square, leaving one of the corners unoccu- matician Leonhard Euler in 1779. He defined pied. Which tube configuration would use the a Latin square as a square matrix with N 2 least amount of tubing?

336 Answers bansw01.qxd 5/17/05 9:54 AM Page 337

4.18 Nursery school geometry. Here is one 4.20 Lost in hyperspace. Mathematical solution. How many other solutions can you theoreticians tell us that the answer is one— find? infinite likelihood of return for a one-dimen- sional random walk. If you were placed at the ☺ 1 origin of a 2-space universe (a plane) and then executed an infinite random walk by taking a 0 random step north, south, east, or west, the probability that the random walk would even- ☺ 1 tually take you back to the origin is also ☺ 1 one—infinite likelihood. Our three-dimensional world is special: ☺ ☺ 2 three-dimensional space is the first Euclidean space in which it is possible for us to get hope- ☺ 1 lessly lost. While executing an infinite random 1 2 0 2 0 1 1 walk in a 3-space universe, you will eventually come back to the origin with a 0.34 or 34 percent probability. In higher dimensions, the 4.19 Frodo’s magic squares. Here is one chances of returning are even slimmer, about solution: 1/(2n) for large dimensions n. The 1/(2n) prob- ability is the same as the probability that you would return to your starting point on your sec- 16 3 2 13 ond step. If you do not make it home in early attempts, you are probably lost in space forever. 5 10 11 8 For those of you who enjoy more mathe- matical rigor or staring at impressive-looking 9 6 7 12 formulas, the precise probability for returning to your start point in a walk on a 3-D lattice is 4 15 14 1 1 1−=0.3405373296... u 10 18 1 14 22 where

π π π 11 24 7 20 3 3 dxdydz u = ∫ ∫ ∫ ()23π 3 −−−cosxyz cos cos 17 5 13 21 9 − π − π − π = 1.5163860592... 23 6 19 2 15 Some of you may enjoy writing computer pro- 4 12 25 8 16 grams that simulate your walks in confined hypervolumes and making comparisons of the

Answers 337 bansw01.qxd 5/17/05 9:54 AM Page 338

probability of return. By “confined,” I mean that the “walls” of the space are reflecting so 0 – 0 – that when you touch them, you are reflected back. Other kinds of confinement are possi- 0 – – – ble. You can read more about higher dimen- + + + + sional walks in Daniel Asimov, “There’s No Space Like Home,” The Sciences 35, no. 5 + – 0 0 (September–October 1995): 20–25.

4.21 Heterosquares. Here is one solution. 4.23 Bouncing off the Continuum. For clarity, assume that the spaceship is located at point S, symbolized by the black dot next to the 9 8 7 spaceship. Further assume that the star is located at the black dot next to the drawing of 2 1 6 the star. Suppose that the aliens aim for some point, P, on the edge of the Continuum (figure A4.9). Reflect the aliens’ original position in 3 4 5 the edge of the Continuum. Then the distance SPA equals S ′PA , and the latter will be a mini- mum when S ′PA is a straight line. It follows These kinds of squares are called het- that P is the point such that SP and PA make erosquares and were first considered with the same angle with the edge of the Contin- enthusiasm in the early 1950s. Royal V. uum. (Note that Heron of Alexandria [A.D. 75] Heath, an American magician and a puzzle used a similar argument to conclude that enthusiast, was the first to prove that a 2 × 2 when light is reflected from a mirror, the heterosquare formed with the numbers 1, 2, 3, angles of incidence and reflection are equal.) and 4 is impossible. Although this puzzle may seem difficult at first, and you might not be able to create a heterosquare at all, I believe there to be 24,960 possible solutions out of 9! = 362,880 possible orderings. This means that the probability of a random ordering being a heterosquare is 24960/9! = 13/189 or roughly 6.9 percent.

4.22 Charged array. Here is one solution. I believe there are a total of four solutions. Can you find the others? Figure A4.9 Bouncing off the Continuum.

338 Answers bansw01.qxd 5/17/05 9:54 AM Page 339

4.24. Alien heads. Here is one solution. Can has at least two 3s, Cliff has at least one 10 you find others? and at least two 17s, and Pete has at least two 17s and at least one 13. It is not possible for all three players to be represented in all three rows. If all three players have at least one 17 each, then Cliff has all the 10s. If all three players have at least one 13 each, Danielle has no 17s. Can you find the other two solutions? 4.27 Bioterrorist puzzle. One solution is for Romeo to start at Square 1 and Juliet to wait at Square 2. Romeo makes the following moves: 1-6-11-16-17-12-13-8-7-2 One way to solve this problem is to write a 4.25 Relationship. Switch the 48 and the 28 computer program to search for possible cell colors. White cells are divisible by 3 and paths. Another solution is simply to experi- gray cells are not. ment yourself, using trial and error. I would be fascinated to hear from readers who have 4.26 Sticky faces. One possibility is that developed methods for finding solutions more Danielle (D) has 56 points, Cliff (C) has 74 efficiently than using trial and error. points, and Pete (P) has 77 points. We don’t My colleagues found solutions by drawing know anything about the ordering of the faces diagrams and placing coins on an arbitrary set in each row, but here is one possible solution of squares that added up to 93. Once the coins that shows the number of each person’s faces were placed, they explored potential solutions in each row. Is this the only answer? by moving coins in pairs (one +1, one –1) so that the total remained constant. 10 points C D D D It would also be interesting to find the shortest solution for this puzzle, assuming 13 points C DD P P that Romeo gets tired if he walks too far! One 17 points CCC PP P might modify the original puzzle to force this by giving Romeo a limited amount of fuel We believe there are three possible solutions with which to make his hops. We believe that for how many of each player’s faces fell in four solutions exist that require Romeo to each row (ignoring the orderings), including take just five steps. the one given here. Here are a few clues to help you in your quest to find the other two 4.28 Magic square. Here is one solution. Are solutions. In every possible solution, Danielle there others?

Answers 339 bansw01.qxd 5/17/05 9:54 AM Page 340

0 6 12 23 19 show an example of a talisman square in which the difference between any number 13 24 1 7 15 and its neighbor is greater than 1. The number 16 2 8 14 20 1, for example, has 3 neighbors (5, 9, and 11); 9 10 21 17 3 11 has eight neighbors (1, 5, 3, 13, 4, 5, 2, and 9). 22 18 4 5 11 Talisman squares have only been studied since the late 1970s, and no rules for con- 4.29 Rope capture. This is based on a classic structing them are known. problem. Tie the lower ends of the rope together near the floor. Climb one rope to the ceiling. Cut the other rope about a foot from 4.31 Circle madness. In circle arrangements the ceiling and let the remainder fall. Tie a constructed in the way I described, the lines loop in the 1-foot-long rope. Cut the remain- joining opposite points of contact cross at a ing rope and thread it through the loop. single point (see figure A4.10). This is some- Finally, hold both ends of the long rope and times referred to as the “seven circles theo- lower yourself to the ground. rem” (C. J. A. Evelyn, G. B. Money-Coutts, Note that because Grand Central Terminal and J. A. Tyrrell, “The Seven Circles Theo- in New York City, the largest station in the rem,” §3.1 in The Seven Circles Theorem world, covers 48 acres on two levels with 67 and Other New Theorems [London: Stacey tracks, it should be relatively easy for you to hide from your captors once you are released.

4.30 Talisman square. Here is a solution.

1 5 3 7

9 11 13 15

2 6 4 8

10 12 14 16

These squares, known as Talisman squares, were invented by Sidney Kravitz, a mathe- matician from Dover, New Jersey. Here I Figure A4.10 Circle madness answer.

340 Answers bansw01.qxd 5/17/05 9:54 AM Page 341

International, 1974] 31–42; Stanley Ogilvy, Platonic Solids Tomorrow’s Math: Unsolved Problems for the Platonic Shape of Amateur, 2nd edition [New York: Oxford F NF V E Dual University Press, 1972]; and David Wells, The Solid Faces Tetra- Equilateral Tetra- Penguin Dictionary of Curious and Interest- 4 3 4 6 ing Geometry ([Middlesex, England: Penguin hedron Triangle hedron Books, 1991]). Octa- Cube 6 Square 3 8 12 hedron Octa- Equilateral 4.32 Platonic solids. The ancient Greeks rec- 8 4 6 12 Cube ognized and proved that there are only five hedron Triangle Dodeca- Regular Icosa- Platonic solids: the tetrahedron, the cube, the 12 3 20 30 octahedron, the dodecahedron, and the icosa- hedron Pentagon hedron hedron (see figure A4.11). Icosa- Equilateral Dodeca- 20 5 12 30 hedron Triangle hedron

The Platonic solids were known to the ancient Greeks and were described by Plato in his Timaeus, c. 350 B.C. Pythagoras of Samos, the famous mathematician and mystic, lived in the time of Buddha and Confucius, around 550 B.C., and probably knew about three of the five regular polyhedra. Historians now seem to agree that the cube, the tetrahedron, and the dodecahedron were known to the Greeks of this period.

4.33 Mystery pattern. Fractal tic-tac-toe by Figure A4.11 The five Platonic solids. Patrick Grim and Paul St. Denis. As we dis- cussed in the puzzle “So many Xs and Os” in chapter 1, the first player in tic-tac-toe, The following table shows each Platonic labeled X, has a choice of one of nine squares solid’s name, the number of faces (F), the face in which to place his or her mark. The oppos- shape, the number of faces at each vertex ing player O then has a choice of one of the (NF), the number of vertices (V), the number remaining eight squares. On X’s next turn, of edges (E), and the “dual”—that is, the again he or she has a choice of seven Platonic solid that can be inscribed inside by squares, and so forth. There are thus a total connecting the midpoints of the faces. of 9! possible series of moves (9 factorial:

Answers 341 bansw01.qxd 5/17/05 9:54 AM Page 342

9 × 8 × 7 × . . . × 1), giving us 9! possible tic- tac-toe games. Some of these are wins for X, some for O, and some draws (wins for neither player). In figure 4.19, the mathematicians Grim and St. Denis offer an analytic presentation of all possible tic-tac-toe games. Each cell in the tic-tac-toe is divided into smaller boards to show various possible choices. For more information, see Paul St. Denis and Patrick Grim, “Fractal Images of Formal Systems,” The Journal of Philosophical Logic 26 (1997): 181–222. This piece also appears in Patrick Grim, Gary Mar, and Paul St. Denis, The Philosophical Computer (Cambridge, With seven star Mass.: MIT Press, 1998). See also Paul St. 4.36 Twinkle, twinkle, little stars. systems, at least one will always survive. Denis and Patrick Grim, “Fractal Images of There will be two star systems closer together Formal Systems,” www.sunysb.edu/ than any other star pair, and these must have philosophy/fractal/2Tic.html. fired their missiles at each other. Continue this line of reasoning, and you will see why at 4.34 Omega sphere. You should choose to toss least one star system must survive. What are the darts at the sphere. For geometrical rea- the maximum and the minimum number of sons, your three impact points will always be survivors for related problems, using differ- on the “same half of the sphere (hemi- ent numbers of stars? How are your answers sphere).” Any two points on the sphere deter- affected for two-dimensional, three-dimen- mine a great circle dividing the sphere into sional, and four-dimensional arrangements of two hemispheres. The third point will be in stars? one hemisphere or the other, unless you are so unlucky as to have it land exactly on the great 4.37 Mystery triangles. Figure A4.13 is one circle. But that’s worth the gamble. And, in solution with nine triangles. Are there others? any case, three points on a great circle are all Can you do better? considered to be located in the same (closed) Try this problem with larger arrays of crys- hemisphere. tals. Can you make any generalizations as to how the maximum number of triangles 4.35 Cutting the plane. Here is one possible depends on the grid’s dimensions? If you have solution. You can draw a line, so that all of the access to computer graphics, extend your symbols that fall in the gray squares are on results to three dimensions, using triangles or one side. Can you find other solutions? tetrahedrons.

342 Answers bansw01.qxd 5/17/05 9:54 AM Page 343

decimals like 0.666666 . . . , 0.5, and 0.272727 . . .) and an infinity of irrational numbers (non- terminating, nonrepeating decimals like pi and √2). As we have said, he conjectured that the infinity of irrationals is greater than the infinity of rationals. This gives a hint as to why we can place infinitely many lines between the pre- cisely placed grid of points. For a line to intersect another point, the slope of this line must be rational, because the differences in the x, y, and z points are all inte- Figure A4.13 Mystery triangles. gers. If we choose random lines, we must note that there are many more lines that have irra- tional slopes and do not intersect points in the 4.38 Space station jam. The missing color is grid than those that do because of the infinite green. Consider the various rectangles and number of points in space between the points circles in this figure. Let’s call these “bound- in the grid. Because there are infinitely more ing shapes.” The color relates to the number ways of not hitting a point than of hitting one, of bounding shapes in which a plate is the odds of hitting a point are essentially zero. enclosed. (Plates are not just circles and rec- tangles but can have various hard-to-describe 4.40 In an ancient tomb. Figure A4.12 shows forms.) Yellow regions are enclosed by only one solution. Many of my genius friends have one bounding shape. Green regions are told me that this puzzle was impossible to enclosed by two bounding shapes. Red solve. However, if my friends looked at the regions are enclosed by three. Blue regions puzzle a day later, they usually were able to are enclosed by four. solve it on the second day.

4.39 Grid of Gebeleizis. Essentially, it is cer- tain that all lines through your initially selected dot will never meet another dot! (This assumes that you choose the direction of all the lines randomly. If, for example, the direction of a line were chosen precisely par- allel to one of the cube’s edges, then the prob- ability of hitting another dot would be one.) Georg Cantor (1845–1918) was interested in this kind of problem. For example, on a quite related topic, he showed that there is an infinity of rational numbers (terminating or recurring Figure A4.12 In an ancient tomb.

Answers 343 bansw01.qxd 5/17/05 9:54 AM Page 344

4.41 Poor Pythagoras. The correct answer is c, for determining the inside and the outside of but most people say it is a. Experiment with these kinds of curves. (The proof was cor- two quarters. I’ve heard rumors that a few rected in 1905 by Oswald Veblen.) Jordan had years ago, the people who designed the SAT originally trained as an engineer. had the wrong answer to a similar problem. 4.44 Aesculapian mazes. Figure A4.14 shows 4.42 Alien colonies. A bacterium’s color is one solution. How many other solutions can determined by the number and the size of the you find? bacteria it touches. Denote the “base” color of a bacterium by “0.” This number is incre- mented by 1 for each touching bacterium that is larger than the base bacterium, and decre- mented each time a smaller bacterium is attached. The base color is not incremented or decremented when a bacterium touches another bacterium of the same size. For exam- ple, a bacterium with 2 smaller touching bac- teria is decremented by 2 and therefore has a “color” of “–2.” These structures are very beautiful when drawn in color, where colors may be assigned as follows: –3 and smaller numbers are yellow; –2 orange; –1 red; 0 black; 1 blue; 2 green; 3 and larger numbers are violet. I would be interested in hearing from readers who have designed larger colorful colonies using these rules.

4.43 Ant planet. Nadroj’s quick way to tell whether he is inside or outside the Jordan curves is to count the number of times an imaginary line drawn from his body to the Figure A4.14 Aesculapian mazes. outside world crosses a wire. If the straight line crosses the curve an even number of times, the ant is outside the maze; if an odd 4.45 Contact from Aldebaran. The chances are number of times, the ant is inside. 100 percent that there was a spot along the Back in the real world, the French mathe- spiral that Britney passed at exactly the same matician Marie Ennemond Camille Jordan time on both days. To understand this, visual- (1838–1922) offered a proof of the same rules ize Britney’s initial trip and return trip taking

344 Answers bansw01.qxd 5/17/05 9:54 AM Page 345

place at the same time. In other words, she 4.48 Infinitely exploding circles. By continually starts from the center at the same time her surrounding the shapes with circles, you “twin” starts from the spiral outlet. At some might have guessed that the radii should grow point along the journey, they must meet as larger and larger, becoming infinite as we they pass each other. That will be the place continue the process. With a simple computer and the time. program, you can in fact show that the radius of a circle is always larger than its predeces- 4.46 Detonation! Here is one solution (see fig- sor. (After all, the predecessor shapes are ure A4.15). Can you find others? enclosed by the most recently added circles.) However, the assembly of nested polygons and circles will never grow as large as the universe, never grow as large as Earth, or never grow as large as a basketball. Although the circles initially grow very quickly in size, the rate of growth gradually slows down, and the radii of the resulting circles approach a limiting value given by the infinite product: R = 1/ [(cos π/3) × (cos π/4) × (cos π/5) . . .] The limiting radius is: 8.7000366252081945 . . . .

4.49 Hexagonal challenge. Figure A4.19 shows two solutions. Do others exist?

Figure A4.15 Detonation!

4.47 Gear turns. The same speed—zero! The Figure A4.19 Hexagonal challenge. collection of gears cannot turn at all. The number of gears in the ring of gears in the 4.50 Magic circles. Figure A4.16 shows one middle is an odd number. An even number of solution. These magic circles are about a cen- gears is required for a ring of gears to spin tury old and are from W. S. Andrews, Magic because every touching gear must rotate Squares and Cubes (New York: Dover, 1960), clockwise, counterclockwise, clockwise, the second edition of which was originally counterclockwise, and so on. printed in 1917.

Answers 345 bansw01.qxd 5/17/05 9:54 AM Page 346

One way to solve the problem is to start by inserting values that are forced. For example, we know that a “C” is above the “B” given in the original problem.

4.52 y = xsin(1/x). Because sin x is every- where continuous, and 1/x is continuous for x ≠ 0, it follows that the composite function sin(1/x) is continuous for x ≠ 0. Therefore ψ(x) is a simple mathematical function that is everywhere continuous, even though it has infinitely many oscillations in the neigh- borhood of x = 0, where the size of the oscil- lations becomes infinitely small. However, unlike the fractal Koch curve, ψ(x) is differ- entiable (i.e., smooth) for x ≠ 0, even though Figure A4.16 Magic circles. the frequency near x = 0 approaches infinity and the spacing between the maxima 4.51 Robotic worm. There seems to be more approaches zero. Don’t you love mathemat- than one answer; for example, ics? It really lets the soul soar.

4.53 Magic sphere. Figure A4.17 is one solu- C1 B1 C4 D4 tion. Notice that pairs of numbers on each D1 A1 B4 A4

A2 D2 A3 D3

B2 C2 B3 C3

A1 B1 C4 D4

D1 C1 B4 A4

A2 D2 A3 D3

B2 C2 B3 C3 Figure A4.17 Magic sphere.

346 Answers bansw01.qxd 5/17/05 9:54 AM Page 347

side of an imaginary diameter line sum to 27. As in the previous question, these magic spheres are about a century old and are from W. S. Andrews, Magic Squares and Cubes.

4.54 Continuity. A curve can be continuous even if it has points at which the derivative (or the slope) is not defined. In fact, some of these kinds of curves can be quite fascinating. Curves can be continuous even if they have points at which they are not “differentiable.” (A function is differentiable at a point x if its Figure A4.21 How to create a Koch curve. derivative exists at this point.) For example, y = |x| is continuous everywhere—you can draw it without lifting your pen—even though the The edge of a Koch curve looks a little like derivative is not defined at x = 0 where a sharp a snowflake’s edge. You can construct a Koch corner exists. Figure A4.20 is a plot of y = |x|, curve edge by continually replacing the center where the |x| denotes the absolute value of x. third of every straight line segment with a V-shaped wedge. After numerous generations, the length of the curve becomes so great that you could not carefully trace the path in your entire lifetime. In 1904, the Swedish mathematician Helge von Koch proposed this curve, and it is con- Figure A4.20 A graph of y = |x|. sidered to be a fractal curve because it dis- plays similar structures as you magnify the Think of a seesaw and a long plank of wood crinkly edges. You can’t draw tangent lines at atop the pivot point of a seesaw. Further visu- any points, so the curve is nondifferentiable at alize the seesaw teetering back and forth every point. because there is no single tangent to a corner Generally speaking, a fractal is an object or on which it balances. Similarly, a function is a pattern that exhibits similar structures at dif- not differentiable at a point in which the ferent-sized scales. Think of the leaves of a derivative has no particular value. fern, the branchings of blood vessels, or the I often think about curves as being differ- edges of a coastline. Sometimes, it’s a little entiable everywhere only if they are smooth strange to imagine a fractal shape like the and have no sharp edges or jumps. On the Koch curve with infinitely many bumps other hand, my favorite curve that is between bigger bumps, in a finite region in nondifferentiable everywhere (because it is so space, and realize that it is still a continuous pointy!) is the Koch curve (figure A4.21). curve.

Answers 347 bansw01.qxd 5/17/05 9:54 AM Page 348

1 4.55 Limits. The answer is ⁄4. Your friends 4.57 The Procyon maneuver. The plantation may tell you that when x is 2, the denominator owner ties the rope around the base of the is zero, and thus the limit of this function ankh tower on the edge of the funnel and then must be undefined. But this is not so. Don’t carries the rope on a walk around the funnel’s give up so easily. The limit can exist for some edge. As he completes half of his walk around fractions with 0 denominators. First, try to the circular aperture, the rope begins to wrap simplify the fraction: around the central ankh on the cylindrical plat- form, and when he reaches his starting point, x − 2 x − 2 lim= lim = he ties the other end of the rope to the ankh on →→ xx2 x 2 − 4 2 ()()xx+−22 the edge of the funnel. Having created a rope bridge from ankh to ankh, he can pull himself 1 = lim= 14 / across. The chicken skull serves no purpose. x→2 x + 2 4.58 Leaning tower of books. The stack of It is true that the function (x – 2)/(x2 – 4) is books will not fall if the following rule is met: not defined at x = 2. It has a “hole” at this the center of mass of all the books above any point. At other points, the curve just looks particular book must lie on a vertical axis that like 1/(x + 2). Remember, when you evaluate cuts through that particular book. This must a limit, you are only concerned about values be true for each book in the stack. For exam- of a function near a particular point and not at ple, the top book in a stack can be made to the actual point. clear the table if there are 5 books in the stack (identical book sizes are assumed). For an 4.56 Space station scordatura. In figure A4.18, overhang of 10 books, you need 272,400,600 the space station should be built at the inter- books. Although there is no limit as to how section of lines AB and CD. far out one can “travel” with the book stack, a great many books are required to do so. I dis- cuss this classic physics problem further in my book The Mathematics of Oz.

4.59 Mystery swirly curve. This is the famous “Ikeda attractor.” A deep reservoir for striking images is the dynamical system. Dynamical systems are models comprising the rules that describe the way some quantity undergoes a change through time. For example, the motion of planets about the sun can be modeled as a dynamical system in which the planets move according to Newton’s laws. Figure 4.41 shows Figure A4.18 Space station scordatura. the behavior of mathematical expressions

348 Answers bansw01.qxd 5/17/05 9:54 AM Page 349

called differential equations. Think of a differ- Here is an outline of computer code that ential equation as a machine that takes in val- will allow you to produce the Ikeda pattern, a ues for all the variables at an initial time and representation of a dynamical system. Simply then generates the new values at some later plot the position of variables j and k through time. Just as one can track the path of a jet by the iteration. The variables scale, xoff, and the smoke path it leaves behind, computer yoff simply position and scale the image to fit graphics provides a way to follow paths of par- on the graphics screen. ticles whose motion is determined by simple c1 = 0.4, c2 = 0.9, c3 = 6.0, rho = 1.0; differential equations. The practical side of for (i = 0, x = 0.1, y = 0.1; i <= 3000; i++) dynamical systems is that they can sometimes [ be used to describe the behavior of real-world temp = c1 – c3 / (1.0 + x * x + y * y); things, such as planetary motion, fluid flow, the sin_temp = sin(temp); diffusion of drugs, the behavior of inter-indus- cos_temp = cos(temp); try relationships, and the vibration of airplane xt = rho + c2 * (x * cos_temp - y * wings. Often the resulting graphic patterns sin_temp); resemble smoke, swirls, candle flames, and y = c2 * (x * sin_temp + y * cos_temp) ; windy mists. x = xt; The Ikeda attractor shown in figure 4.41 j = x * scale + xoff; is an example of a strange attractor. As back- k = y * scale + yoff; DrawDotAt (j,k) ground, predictable attractors represent the ] behavior to which a system settles down or is “attracted” (for example, a point or a looping The Ikeda attractor has been described in closed cycle). An example of a fixed point greater detail in this article: K. Ikeda, “Multi- attractor is a mass at the end of a spring, with ple-Valued Stationary State and Its Instability friction. It eventually arrives at an equilibrium of the Transmitted Light by a Ring Cavity point and stops moving. A limit cycle is exem- System,” Optical Communications 30, no. 2 plified by a metronome. The metronome will (1979): 257–61. tick-tock back and forth, its motion always periodic and regular. A “strange attractor” has 4.60 Kissing circles. For years, I’ve been fasci- an irregular, unpredictable behavior. Its nated by several simple recipes for graphi- behavior can still be graphed, but the graph is cally interesting structures that are based on much more complicated. With “tame” attrac- the osculatory packing of circles. The prob- tors, initially close points stay together as they lem of covering a finite area with a given set approach the attractor. With strange attractors, of circles has been popular in mathematics initially adjacent points eventually follow journals. As background, the densest packing widely divergent trajectories. Like leaves in a of non-overlapping uniform circles is the turbulent stream, it is impossible to predict hexagonal lattice packing, where the ratio of where the leaves will end up, given their ini- covered area to the total area (packing frac- tial positions. tion) is φ - π/√12 ≈ 0.9069. The limiting pack-

Answers 349 bansw01.qxd 5/17/05 9:54 AM Page 350

δ ing fraction for the nested hexagonal packing negative i, then the selected center is within φ of circles, with k different circle sizes, is k = a circle on the plane. In this case, the circle 1 – (1 – .09069)k. This applies to cases where center is discarded, and a new attempt to place each of the uncovered areas, or interstices, is a circle is made. Repeated magnification of also hexagonally packed by smaller circles. the figures reveals the self-similarity of the φ For larger values of k, k approaches unity. figures; the figures are fractal and look the Other researchers have usually defined a same at various-sized scales. distribution of circles as osculatory if any available area is always covered by the largest 4.61 Heron’s problem. Let u and v be the side possible circle. If the original area to be cov- lengths of one rectangle and x and y be the ered is a tricuspid area (figure A4.22), then the sides of the second rectangle. We know that first circle to be placed must be tangent to the three original larger circles. This kind of pack- u + v = 3(x + y) (perimeter relationship) ing is also often referred to as Apollonian xy = 3uv (area relationship) packing. In contrast to past work, my criterion for osculatory packing is relaxed here: each How would you go about finding an integer successively placed circle on the plane need solution for x, y, u, and v? According to David only be tangent to at least one previous circle Wells, the author of The Penguin Book of (“tangent-1 packing”). To generate figure 4.43, Curious and Interesting Puzzles (Puzzle 21), I randomly place a circle center within the Heron’s ancient solution was a 53 × 54 rectan- available interstice. The circle then grows until gle and a 318 × 3 rectangle. it becomes tangent to its closest neighbor. The Today we know that there are many solu- process is repeated several thousand times. tions to this problem, and Internet debates One easy way to simulate this on a com- and contests regarding the puzzle are currently maintained by Ken Duisenberg puter is to determine the distances di from the newly selected circle center to all other circles (ken.duisenberg.com/potw/). In particular, δ see ken.duisenberg.com/potw/archive/ i on the plane. Let i = di – ri , where ri is the δ arch96/960820.html. Computer searches are radius of circle i. Min { i} is then the radius of the new circle. Note that if there exists a particularly effective in yielding numerous solutions. Such searches can be restricted by noting that u + v and xy are multiples of 3. Large rectangle solutions include 15,012 × 17,578,886,877 and 5,859,498,852 × 135,111.

4.62 The game of elegant ellipses. Figure A4.23 shows one solution. How did you go about solving this? How much more difficult is this if we add more ellipses and more dividing lines? Figure A4.22 Tricuspid interstice. How would a computer solve this problem?

350 Answers bansw01.qxd 5/17/05 9:54 AM Page 351

figure. You can see that there are some dia- mond-shaped objects in the pattern. As corre- lations within the data become greater, the number of diamonds decreases. A completely random tiling contains the maximum number of diamonds; in this case, “the diamond frac- tion” is approximately 5 percent (the number of diamonds in the pattern divided by the number of tiles). Try using this tile to represent genetic sequence data symbolized by the four different letters G, C, A, and T. Genetic sequences can be represented by a collection of tiles with four different orientations. For example, what does the resulting tile pattern (an “Escher- Figure A4.23 The game of elegant ellipses. gram”) tell you about the patterns, and the degree of randomness, within the first 1,000 4.63 Dudeney’s circles. Here is one solution bases of the AIDS virus? For more informa- that leaves behind 3 squares when perpendi- tion on Escher tiles, see D. Schattschneider, cular lines are drawn between the circles. Visions of Symmetry (Freeman: New York, 1990). For information on the use of tiles to ... represent noisy data, see C. Pickover, “Pictur-  ing Randomness with Truchet Tiles,” Journal ......  of Recreational Math 21, no. 4 (1989):

4.64 Eschergrams. In several of my books, I’ve discussed the use of computer graphics to represent noisy data. One method I’ve employed uses a pattern from the Dutch artist M. C. Escher. To produce figure 4.41, simply draw the generating tile (shown in figure A4.24) with a random orientation, and place it within the corner of a large square lattice. Successive adjacent tiles are added to the lat- tice for a particular row until it is filled, and a new row is started. A seamless plane-filling pattern is created, no matter what tile orientation is used. I used just two orientations of the tile to create this Figure A4.24 Eschergram.

Answers 351 bansw01.qxd 5/17/05 9:54 AM Page 352

256–59. Also, C. Pickover, “Mathematics and 4.67 Dudeney’s cuts. Figure A4.27 is one solu- Beauty: Several Short Classroom Experi- tion. Are there others? ments,” American Math Society Notices 38, no. 3 (March 1991): 191–95.

4.65 Dudeney’s house. Figure A4.26 is one solution.

Figure A4.27 Dudeney’s cuts.

1 e– Figure A4.26 Dudeney’s house. 4.68 e . Here is the question: For what value of x is x x a maximum? Note that

4.66 Dudeney’s 12 counters. Any two overlap- e > x ex= ping triangles could be used to create a solu- tion (figure A4.25). Isn’t that great? The Swiss mathematician Jacob Steiner (1746–1827) was one of the 1 first people to work on the e–e problem. Inter- estingly, Euler proved that

. . . x x y = x x x

1 has a limit if x is between e–e = 0.065988 . . . and e e = 1.444667861 . . .

4.69 Dudeney’s horseshoe. The hard part of this problem is doing it in your head. It turns out that you just have to make two straight lines Figure A4.25 Dudeney’s 12 counters. that intersect each other (figure A4.28).

352 Answers bansw01.qxd 5/17/05 9:54 AM Page 353

time = distance). We can now use the Pythagorean theorem to compute the distance from Mark to Bill. A2 + B2 = C2 A2 + 2002 = 6002 A2 + 40,000 = 360,000 Now we need to solve for A. A2 = 320,000 A = 565.7 feet.

Figure A4.28 Dudeney’s horseshoe. 4.72 Antimagic square. Here is one solution.

32 6 8 9 7 4.70 Tunnel through a cube: A true story. 4 = 1.060660 . . . In other words, a cube with a side length of 1.060660 . . . inches can pass 3 12 5 11 through a cube with a side of 1 inch. In the late seventeenth century, Prince 10 1 14 13 Rupert, whose other titles were Count Pala- tine of the Rhine and the Duke of Bavaria, 16 15 4 2 won a wager that a hole could be made in one of two equal cubes large enough for the other cube to slide through. I believe that the Antimagic Square 1.060660 solution was not known until Pieter Niuewland solved it more than a century after 4.73 Annihilation magic squares. Here is one Prince Rupert asked the question. For more solution. information, see D. J. E. Schrek, “Prince Rupert’s Problem and Its Extension by Pieter Nieuwland,” Scripta Mathematica 16 (1950): 8 –7 –6 5 73–80 and 16 (1950): 261–67. –4 3 2 –1 4.71 The mathematics of love. Bill was 565.7 feet north of Mark. Because Bill runs 3 times as 1 –2 –3 4 fast as Mark and because Mark and Bill arrive at Shannon simultaneously, the distance from –5 6 7 –8 Bill to Shannon must be 600 feet (speed ×

Answers 353 bansw01.qxd 5/17/05 9:54 AM Page 354

4.74 Cramming humanity into small spots. To equal: A1 = 60.67515473587 and A2 = solve this problem, we can estimate the popu- 60.67515473587. If d grows larger than lation at 6.4 billion, which corresponds to 8.789425, the square becomes a better buy. 2,066 square miles of land. Thus, everyone The general solution for the special value should be able to fit into any state’s land area of d is in the United States, except for Rhode Island 42+ π or Delaware. They would all fit onto the island d = − π of Puerto Rico. 4 If we fashioned a cube and placed each We obtain this by solving for (d/2)2 ×π= person on one of the inside or the outside (d – 1)2 and finding the points where both faces of the cube, the cube would be only sides of the equation are the same. 13 miles wide. They could all fit into Alaska, π(d/2)2 = (d – 1)2 leaving 99.7 percent of the land unoccupied. π 2 2 More precisely, let us assume that the num- ( d )/4 = d – 2d + 1 ber of people on earth (at the time of this πd 2 = 4d 2 – 8d + 4 writing) is 6,366,780,666. The area allocated d 2(4 – π) – 8d + 4 = 0 per person is 9 square feet. The total area required = 6,366,780,666 × 9 = 57,301,025, By the quadratic formula, we get 994 square feet. Total area in square miles is d = [8 ± √(64 – 16(4 – π))]/2(4 – π) 2 (57301025994)/(5280 ) = 2,055 square miles. = [8 ± 4√(4 – (4 – π))]/2(4 – π) This many people could fit in Rhode Island √ π π (1,545 square miles) if they sucked in their = [4 ± 2 ( )]/(4 – ) guts and occupied 2.6-by-2.6-ft. plots. = [4 ± 2 × 1.772453851]/0.858407 My colleague Nick Hobson notes that if we which yields make use of the third dimension, 6.4 billion ≈ people, each allocated a 6′×6′×6′ cube, d 8.789426 or 0.530159 would fit into a cube with a side that’s just In theory, d values between these two over 2.1 miles. This would comfortably fit on bounds yield a circular cake with a bigger Manhattan Island, or it could be “dismantled” area, and outside of them, the square area is to fit in the Grand Canyon. bigger. However, we exclude the solution d = 0.530159 because it yields a negative cake 4.75 Chocolate cake computation. The circular area. The quantity d – 1 must be greater than

cake is a better buy. The area A1 of the circu- 0 to be physically meaningful. 2 ×π lar cake is (d/2) . The area A2 of the 2 2 × square is (d – 1) = d – 2 d + 1. A1 = 56.74. 4.76 Bears in hyperspace. Yes, the polar bear A2 = 56.25. could be crammed into an 11-dimensional However, the circular cake is not always a sphere of radius 6 inches. To help you under- better buy than the square. Notice that at stand this answer, consider the act of stuffing about d = 8.78942582838, the areas are rigid circular regions of a plane into a sphere.

354 Answers bansw01.qxd 5/17/05 9:54 AM Page 355

If the circular disks are really two dimen- sional, they have no thickness or volume. Therefore, in theory, you could fit an infinite number of these circles into a sphere—pro- vided that the sphere’s radius is slightly bigger than the circles’ radius. If the sphere’s radius were smaller, even one circle could not fit within the enclosed volume, since it would poke out of the volume. Therefore, the volume of a polar bear could reside comfortably in an 11-dimensional sphere with a 6-inch radius. In fact, an infinite number of polar bear volumes could fit in an 11-dimensional sphere. How- ever, you could not physically stuff a polar bear into the sphere because the bear has a minimum length that will not permit it to fit. Figure A4.29 In two dimensions, a circle can make Indeed, a polar bear volume equivalent could contact with six other circles of the same size. What happens in higher dimensions? be contained within the sphere, but to do so would require the bear to be first put through a meat grinder that produces pieces no larger 4.78 Lattice growth. It turns out that these than the diameter of the sphere. It would help lattice numbers grow very quickly, but you if the polar bear could be folded or crumpled might be surprised to realize just how in higher dimensions like a piece of paper. quickly. The formula describing this growth is fairly simple for an n × n lattice: L(n) = 4.77 Hypersphere packing. For circles, we know n2 (n + 1)2/4 . The sequence goes 1, 9, 36, that the answer is 6 (figure A4.29). For 100, 225, 441 . . . spheres, the largest number is 12, but this fact Let’s jump up a dimension. Can you find was not proved until 1874. In other words, the a formula for the number of boxes for 3-D largest number of unit spheres that can touch lattices? Can you find a formula for the num- another unit sphere is 12. For 4-D hyper- ber of hyperboxes in hyperlattices of any spheres, the number is 24, and 196,560 dimension? 24-dimensional spheres can kiss a central 24- Did you know that a small n = 2, 7-dimen- dimensional sphere of the same radius. sional lattice (2 × 2 × 2 × 2 × 2 × 2 × 2) has The number of equivalent hyperspheres in over 1,000 hyperboxes? If we think of each n dimensions that can touch an equivalent box as a container, an n = 9 hyperlattice in the hypersphere without any intersections is 50th dimension can hold each electron, each sometimes called the Newton number or proton, and each neutron in the universe (each ligancy. Newton correctly believed that the particle in its own cage). Does this all boggle kissing number in three dimensions was 12. your mind?

Answers 355 bansw01.qxd 5/17/05 9:54 AM Page 356

4.79 In the garden of the knight. Here is the these kinds of problems (Ed Pegg Jr., “Math solution (Ed Pegg Jr., “Math Puzzles,” Puzzles,” www.mathpuzzle.com/29Jun2003. www.mathpuzzle.com/29Jun2003.html). html).

4.81 In the garden of the knight. The challenge was to place 48 knights on a 10-by-10 chess board so that each knight attacks two, and only two, other knights. This is one of twenty possible solutions from Jean-Charles Meyrignac (Ed Pegg Jr., “Math Puzzles,” www.mathpuzzle.com/29Jun2003.html).

4.82 Polyhedral universe. A dodecahedron. According to Science magazine (Charles Seife, “Polyhedral Model Gives the Universe an Unexpected Twist,” 302 [October 10, 2003]: 209), a team of scientists from France 4.80 In the garden of the knight. Here is the and the United States studied the measure- solution from Jean-Charles Meyrignac, who ments from the Wilkinson Microwave has done extensive computer analyses of Anisotropy Probe (WMAP) satellite to reach a surprising conclusion: the universe might be finite and twelve-sided. Although the hypothesis is being challenged, its proponents say that it matches the data. Also, opposite faces of the dodecahedron corre- spond in unusual ways to each other. In fact, these faces are actually the same face so that a spaceship flying out of one side of the universe winds up flying back into the other side. To make a finite dodecahedral space, one glues together opposite faces of a slightly curved dodecahe- dron—a soccer ball–like shape with twelve pentagonal sides. Of course, such gluing is difficult to imagine in our ordinary 3-D space. See also Erica Klarreich, “The Shape of

356 Answers bansw01.qxd 5/17/05 9:54 AM Page 357

Space,” Science News 164, no. 19 (November have fewer bonding options than interior 8, 2003): 296–97. atoms do. I notice that some friends seem to In the spirit of full disclosure, I should solve this by pure intuition, in ways I don’t note that scientists’ theories about the shape fully understand. Others attempt to rigorously of the universe change almost every month. analyze the possibilities and get “stuck” when In April 2004, Frank Steiner at the University they encounter so many initial options. of Ulm in Germany suggested that the universe is shaped like a medieval horn— a very long funnel. In Steiner’s model of the universe, technically known as a Picard topology, the universe is infinitely long in the direction of the funnel’s spout, but so narrow that the universe has finite volume.

4.83 Tank charge. Here is one path. Can you find others?

S 1 2 3 4

Figure A4.30 Alien molecule confounds scientists. 10 9 8 6 5

12 11 7 17 18 4.85 Clown with balls. The side length is 11.464 . . . My colleague Mark Ganson dis- 13 14 15 16 19 cussed this puzzle of his at my discussion group, and I like the puzzle for its simplicity and because it can be solved in so many dif- E 23 22 21 20 ferent ways. Here is one way. Consider a ball at the bottom left-hand corner. Let the center of the ball be O, the tangent point at the bottom T, and the left triangle corner C. 4.84 Molecular madness. Figure A4.30 shows OC bisects the angle at C, so angle OCT is one solution. How many solutions exist? 30 degrees; OTC is 90 degrees; COT is 60 When solving this puzzle, my colleagues degrees; OT is 1, and TC is tan(60) or 1.732 often start by searching for those atoms near . . . Therefore, the length of one side of the the periphery of the molecule that sometimes triangle is 8 + 2 × TC = 11.464 . . .

Answers 357 bansw01.qxd 5/17/05 9:54 AM Page 358

4.86 Stained glass squares of Constantine. There permit a legal rectangle at the upper left of the are 16 squares, counting the black frame grid. The solution is unique. around the window. I find that most people who casually study the window find only 4.88 Jerusalem crystal. Follow the black cir- about 12 to 14 squares. How can our percep- cles to see one possible path (figure A4.31). tual systems be so different? How many How many other solutions exist? squares did you find? Let’s see how well your friends can do on this puzzle. If you are a teacher, how many squares can your students find? How does the number of perceived squares depend on a person’s age, gender, occupation, emotional state, IQ, caffeine level, and culture?

4.87 Chocolate puzzle. Here is the solution:

4 6 6 8 2 6 4 6 4 4 3

6 5 Figure A4.31 Jerusalem crystal.

Most of my brainy friends at work solved this in about 5 minutes. One way to approach the 5. Probability: Take Your Chances problem is to simply eliminate possibilities. For example, you can examine the 6 in the 5.1 Gambling. You can easily turn Donald’s bottom-left corner, which seems to have two unfair coin into a fair one. Get ready to toss possible rectangles that can be associated with the coin twice. Before doing so, you can it. However, we can eliminate the vertical select heads followed by tails (HT), and Don- 1 × 6 rectangle by noting that this would not ald can select tails followed by heads (TH). If

358 Answers bansw01.qxd 5/17/05 9:54 AM Page 359

both tosses give the same result, discard the 5.3 Many monkeys typing Hamlet. Each monkey results, and toss the coin twice again. The first still individually has the same odds, 1 out of time the coin lands either TH or HT, you can 44176,522, which we discussed in the answer to determine who wins the bet! the previous problem. But each day the proba- If you don’t see why this is fair, let’s pre- bility that one of the monkeys will succeed tend, for example, that the biased coin lands doubles, so that on day two the odds become tails 80 percent of the time. Even so, some- 2 out of 44176,522, and on day three the odds times we will have TH or HT. There is no rea- become 4 out of 44176,522, and so on, day by son that either of these will be favored over day. On some future day, d, the number of the other, and, in fact, they should each occur monkeys 2d will exceed 44176,522, and on that with equal frequency. Thus, by monitoring day, the odds are very good (i.e., close to 1 “HT” versus “TH,” we can create an unbiased out of 1) that one of those poor monkeys will selection process. If each toss is independent, succeed. Of course, at this point the visible then the probabilities for each pair are universe would be flooded with monkeys, not leaving much room for humanity to have fun. p(TT) = 80% × 80% = 64% (Naturally, I’ve made some assumptions in p(TH) = 80% × 20% = 16% this interpretation. Can you name a few?)

p(HT) = 20% × 80% = 16% 5.4 The Book of Everything That Can Be Known. p(HH) = 20% × 20% = 4% When a book is flipped open, it displays one page on the left and another on the right. So, So, 32 percent of the time you have a result. if the statement is anywhere on the two dis- Otherwise, you toss the coin two more played pages, we’ve found the statement. The times. Book of Everything That Can Be Known is 10,000 pages long, so it has 5,000 different 5.2 Monkeys typing Hamlet. Typewriters have openings. The chance of flipping the book about 44 keys. Hamlet has about 32,301 open to the fact “the universe is finite in spa- words or 176,522 characters, including tial extent” is therefore about 1 in 5,000. On spaces. If a typewriter with 44 keys is used, the average, you would need 5,000 random the odds of getting one character correct (the flips to find this fact. There’s no guarantee, first one, being “H” for Hamlet in the title) is however, that you will find it in thousands of 1 out of 44. Getting two characters correct random flips. As William Poundstone notes would clearly be less likely, and, in fact, the for a similar problem in his book How Would probability would be (1/44) × (1/44). Getting You Move Mount Fuji? no matter how many all 176,522 characters correct would be 1 out times you flip the pages, you can never be 100 of 44176,522. A computer keyboard has about percent sure of flipping so that a particular 2 80 keys, giving us the lower odds of 1 out of pages are displayed. 80176,522. In fact, the chances of flipping to the wrong

Answers 359 bansw01.qxd 5/17/05 9:54 AM Page 360

2 pages on any given try is 4,999/5,000 5.7 The ancient paths of Dr. Livingstone. There because there are exactly 10,000 pages and are 6 ways to get from A to B and 4 ways to exactly 5,000 openings to flip to. The chances get from B to C. Using the multiplication that the first n flips will all fail to open to “the principle in “ Combinatorics defined,” we universe is finite in spatial extent” is then find 6 × 4 = 24 possible paths from A to C. (4,999/5,000)n. The chance that you will flip to the correct opening in n flips or less is 1 – 5.8 Organ arrangements. We have 5 organs. As (4,999/5,000)n. Thus, the odds of flipping to we learned, the organs have 5! = 5 × 4 × 3 × “the universe is finite in spatial extent” is 2 × 1 = 120 permutations. The number of per- about 50 percent on the 3,470th flip. Half of mutations of any 3 organs from the 5 is 5P3 = the time, you’ll hit “the universe is finite in 5!/(5 – 3)! = 120/2 = 60 permutations. If you spatial extent” in 3,470 flips or less. didn’t get this answer, reread the previous If we wish to be more precise about our entries. assertion that a 10,000-page book has 5,000 different openings, note that if you open a 5.9 Mombasa order. Because the wife has book at the front, it has only one page on the chosen the last city, we are left with a permu- right. At the back, the book has one page on tation of 6 cities, which is 6! = 720 different the left. So, for example, we would find that a ways they can order their visits. 4-page book has 3 ways of opening it. A 10,000-page book has 5,001 ways. So, more 5.10 Diamond arrangements. We find (n – 1)! precisely, the aforementioned probability is arrangements, given n different objects 1/5,001, not 1/5,000, and on average, you arranged in a circle. Thus, the movie star has would have to randomly flip the book open an amazing 15! = 1,307,674,368,000 different 5,001 times. possible arrangements of the diamonds on the bracelet. If diamonds were cheap, it would be very easy to give a different arrangement of 5.5 Bookkeeper arrangements. The solution is the 16 diamonds to everyone on Earth and 10!/(2!2!3!) = 3,628,800/24 = 151,200. If you still have many more arrangements left over. didn’t get this, reread the previous entry. 5.11 Marble maze. One way to solve this maze 5.6 Subway odds. Turn over any three slips of puzzle is to realize that at each marked inter- paper. Next continue to turn papers until you section (or decision point), the marble has a reach a number higher than the highest num- 50-50 choice (or 1/2 chance) of going right or ber on the first three slips of paper. This is the left. There are three paths by which the mar- number you stop on and show your captor. If ble can get to the winning exit (1-2-6-8, 1-2- you are about to turn over all the papers, stop 4-6-8, and 1-3-5-4-6-8). All we need to do is at (and choose) the last one turned. This sys- multiply the 1/2 probabilities at each decision tem gives you maximum odds of escaping, point along each path to find the likelihood of which are slightly better than one in three. traveling a particular path. So for the three

360 Answers bansw01.qxd 5/17/05 9:54 AM Page 361

paths we have (1/2 × 1/2 × 1/2 × 1/2) + (1/2 × 5.12 Sushi combinatorics. By the multiplication 1/2 × 1/2 × 1/2 × 1/2) + (1/2 × 1/2 × 1/2 × 1/2 principle we discussed in “ Combinatorics × 1/2 × 1/2). Thus, we find 1/16 + 1/32 + 1/64 defined,” we can make 3 × 2 × 5 = 30 different which is about 0.11—only about an 11 per- kinds of sushi. cent chance of winning! Here’s a new one for you to ponder from 5.13 Turnip permutations. The word turnip has 6 my colleague Derek Ross. Consider the fol- letters. Thus, the letters have 6! = 6 × 5 × 4 × lowing super-simple maze: 3 × 2 × 1 = 720 permutations.

5.14 The Africa gambit. My friend Nick Hobson notes that the answer depends on the map pro- jection that is used. The African mainland has an area of about 11.6 million square miles, out of about 197 million square miles for all of Earth. So, throwing the dart at an equal- area projection map, such as the “Eckert IV,” will give a probability of about 11.6/197 = 5.9 percent, or 1/17. The Eckert IV projection, presented by Max Eckert in 1906, is a “pseudocylindrical equal- area” projection. The central meridian and all parallels are straight lines; other meridians are equally spaced elliptical arcs. On the other hand, the more familiar Mercator projection, originally produced in the sixteenth century for navigation purposes, stretches higher latitudes Figure A5.1 Super-simple maze. east-west, and therefore, for example, exagger- ates the size of North America and Europe. In You can go any direction: north, east, south, such maps, the probability of hitting Africa west. There are two one-way doors, indicated would be much less than 5.9 percent. by dotted lines. The arrow indicates the direc- tion of the door. Dr. Brain has been getting 5.15 Sushi gambit. Place 1 piece of octopus you drunk on wine. Next, he drops you at the sushi on one dish and the other 9 pieces of start gate of the tunnel. Since it is completely sushi on the other dish. We can determine the dark, and you are mentally disoriented, you are chances that Dr. Sushi will eat an octopus capable of making only random turns when- sushi as follows. He will choose the dish con- ever you encounter a fork in the tunnel. The taining 1 octopus sushi with 50 percent proba- problem is to find the probability that you will bility. We must add to this the probability that eventually crawl out of the exit marked “Win.” he will eat octopus sushi from the other dish.

Answers 361 bansw01.qxd 5/17/05 9:54 AM Page 362

The other dish has 5 tuna and 4 octopus sushi, 5.17 Cards of Minerva. The probability that so the chances of selecting an octopus from Zeus obtains more blacks than Minerva is 1/2. this dish are 4/9. Thus, the probability that he Either Zeus throws more blacks than Minerva, will eat octopus is 0.5 + 0.5 × 0.44 = 0.722 or or Zeus throws more whites than Minerva. By about 72 percent. symmetry, these two mutually exclusive pos- sibilities occur with equal probability. There- 5.16 Alien gambit. Write all the possible fore, the probability that Zeus obtains more sequences of button presses in order to com- blacks than Minerva is 1 out of 2 (1/2). Are pute the probabilities of your turning green. you amazed that this probability seems to be For discussion, name the three buttons independent of the number of cards, n? You “explode (E),” “disable (D),” and “happy can learn more about problems of this kind (H).” Here are the six different possible sce- from Richard Epstein, The Theory of Gam- narios, with B1, B2, and B3 indicating the bling and Statistical Logic (New York: Acade- effects of pressing Buttons 1, 2, and 3: mic Press, 1995). An example may clarify. Suppose n = 1. B1 B2 B3 Outcome Minerva throws “no blacks” with probability 1 E D H You turn green. 1/2 and one black with probability 1/2. Zeus 2 E H D You turn green. throws “no blacks” with probability 1/4, one black with probability 1/2, and two blacks 3 D E H You stay flesh colored. with probability 1/4. We can illustrate this in a 4 D H E You stay flesh colored. table. 5 H E D You turn green. 6 H D E You stay flesh colored. Minerva Throws 0 blacks 1 black Zeus Throws I calculate six different possible orders in (p = 1/2) (p = 1/2) which you could press the three buttons. Of 0 blacks (p = 1/4) 1/8 1/8 these, there are three scenarios in which you 1 black (p = 1/2) 1/4 1/4 turn green and three in which you do not. This would appear to suggest that you have a 50-50 2 blacks (p = 1/4) 1/8 1/8 chance of turning green. If you want to be more realistic, the chances are probably greater that Examining the table, we can see that Zeus you will turn green, because in Line 6 you throws more blacks (bold cells) half the time, might be so happy that you don’t care whether the same number 3/8 of the time, and fewer you turn green, and that means you may not 1/8 of the time. press any button again to disable the timer that opens the capsule. That leaves 3 sure greens, 2 5.18 Card shuffles. Only eight consecutive per- sure not greens, and 1 uncertain. Thus, you are fect shuffles are required to restore a deck of somewhat more likely to turn green. cards to its original order. Let us consider the

362 Answers bansw01.qxd 5/17/05 9:54 AM Page 363

second card from the top of the deck. The that is 1/10 the volume of the room. If you shuffles move it to the following sequence of consider two molecules moving in the room, positions: 2, 3, 5, 9, 17, 22, 14, 27, and back to the chance of both being in the corner is much 2. This works for any card in the deck. For fur- smaller, only (1/10) × (1/10) or 1 percent. Ten ther reading, see Robert Ehrlich, What If You molecules have a Could Unscramble an Egg? (New Brunswick, 1 N.J.: Rutgers University Press, 1996). 10,,, 000 000 000 5.19 Piano probability. First, let us assume that chance of being in the corner. One hundred the keys have equal area so that, for example, molecules have a you wouldn’t be more likely to press a white note than a black note. Then, the four most 1 equally likely notes are A, A#, B, and C, since googol on a standard 88-key piano, there are 8 of each of those notes, and 7 of all the others (12 chance of being in the corner, where a googol notes in an octave; 8 of them occur 7 times, is 1 with 100 zeros. It has been estimated that 80 the other four 8 times: 8 × 7 + 4 × 8 = 56 + 32 we would have to wait 10 times the age of = 88). For example, there is an 8/88 or a 1/11 the universe for all 100 molecules to migrate chance of striking an A key but only a 7/88 to the corner of the room by chance alone. In chance of striking a D key. Of all the black What If You Could Unscramble an Egg? 27 keys, you are most likely to strike the A# key. Robert Ehrlich notes that there are 10 air molecules in a typical room. The probability 5.20 Martian shuffle. There are six possible of all of them going to the corner at one orders of the cards: MPD, MDP, PMD, PDM, moment due to random motion is DMP, and DPM. Thus, one in six shufflings 1 will return your original order. With ten cards 1010 27 in the deck, there would be 3,628,800 possi- ble orderings. If you shuffled this deck as fast The number is so tiny that it is about equal to as you could, without stopping for eating and the odds of the Statue of Liberty jumping into sleeping, it would still take you over a month the air. (Robert Ehrlich, What If You Could before you got your original deck back, based Unscramble an Egg? [New Brunswick, N.J.: on chance alone. Rutgers University Press, 1996].) Of course, this is just an approximation, because, in real 5.21 Air molecules. Consider one air molecule gases, molecules diffuse by randomly floating in the room. For simplicity, let’s pretend that a through space, and future positions depend on molecule can jump from its current position current positions. to any position in the room. By chance alone, it has a 10 percent or 1/10 probability of 5.22 Chess moves. There are 400 possible being in a predefined corner room volume board configurations. Each side has 8 pawns

Answers 363 bansw01.qxd 5/17/05 9:54 AM Page 364

and 2 knights, each of which has 2 possible Brown male male female moves, giving 20 potential moves for Player 1, against the same for Player 2. Thus, there are Polka-dot male female male 20 times 20, or 400 possible configurations. Thus, the probability is 1 out of 3 (1/3) that 5.23 Hannibal’s organs. The probability of both rabbits are male. removing a brain is now quite high, much higher than 50 percent. The chance is two out 5.26 Card deck cuts. This is a beautiful and of three (2/3) or 66.6 percent. Denote the brain fun trick question. Try it on friends. Think added to the jar as “Brain 2.” After you remove about it. This approach does not really the brain from the jar, there are three equally shuffle the deck at all! The deck will not be likely states: Brain 1 in jar, Brain 2 outside of randomized. jar; Brain 2 in jar, Brain 1 outside of jar; kid- My mathematician friends tell me that ney in jar, Brain 2 outside of jar. In two out of technically speaking, one cut will create some three cases, a brain remains in the jar. degree of randomization, but it’s not the kind Let me clarify by adding my assumptions. of randomization most players would want. When Hannibal reaches into a jar containing a No further randomization will take place brain and a kidney, assume that it is equally as regardless of how many additional cuts are likely that he will withdraw a brain as it is that made, and in some special cases the minor he will withdraw a kidney. Also, it is equally initial randomization will be lost if the shift- likely that the jar initially contains a brain or ing of the cards in the pack reaches its origi- a kidney. (This exercise in “conditional nal position. probability”—that is, the probability of pulling a second brain, “conditioned by” or 5.27 Russian American gambit. Both humans “given” that the first pull was a brain—always are liars! If the woman was lying, then there leads to much debate from readers. Write to might be two Russians. If the man was lying, me if you need more information.) there might be two Americans. However, we are told that one of the humans is a Russian 5.24 Alien pyramid. Yes. Of the remaining 9 and one is an American, and the truthful robot pyramids, there is a 5/9 = 55.55 percent tells us that at least one of them is lying. chance of selecting an even one and a 4/9 = Therefore, both are lying. 44.44 percent chance of selecting an odd one, so this pyramid is more likely to be even than 5.28 Car sequence. The three cars nearest odd. you can be in 3! = 6 different arrangements. For example, if we represent the dates as The probability is 1 out of 3 5.25 Rabbit math. numbers 1 through 3, we have these 6 (1/3). There are three possible pairings of the arrangements: brown and polka-dot rabbit, given that at least one of the rabbits is male: 123, 132, 213, 231, 312, 321

364 Answers bansw01.qxd 5/17/05 9:54 AM Page 365

Of these arrangements, only one arrangement problem. Note that the probability of having will be in descending order. Thus, the chances the king of spades is higher for hands that are 1 in 6. contain more than one king than it is for hands that have only one king. If you’ve got 5.29 Quantum kings and the death of reality. only one king, it is probably not the king of Monica’s second hand—the one with the king spades. But if you have three kings, it is more of spades—is more likely to have another probable than not that one of these kings will king. My colleague Mark Ganson reasons in be the king of spades. the following manner. Consider the similar case of a deck of 4 cards—1, 2, 3, 4—dealt to 5.30 AIDS tests. No. The chances are 50-50 a hand that contains just 2 cards. The deck of that you don’t have AIDS—no better than the 4 cards can be dealt into hands of 2 cards flip of a coin! Suppose your company has each 6 different ways: 10,000 people. We assumed that 98 percent {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4} (9,800 people) do not have AIDS, and 2 per- cent (200 people) actually have AIDS. Now, let’s refer to Cards 1 and 2 as “small” Of the 9,800 uninfected people, 98 percent cards and Cards 3 and 4 as “large” cards. “Do of them (9,604 people) will test negative, and you have a small card?” is equivalent to, “Do 196 will test positive. Of the 200 infected you have a king?” and, “Do you have a 1?” is people, 98 percent of them (196) will test pos- equivalent to, “Do you have the king of itive, and 4 will test negative. Thus, we have: spades?” Notice that these hands all contain a small 196 tests are false positives card: 196 are true positives {1, 2}, {1, 3}, {1, 4}, {2, 3},{2, 4} The ratio of false positives to true positives is 1:1. These hands contain a 1: To better see why the chances are so poor {1, 2}, {1, 3}, {1, 4} of you having AIDS, despite the positive AIDS This is the only hand that contains both small test, let’s consider a more extreme “theoreti- cards: cal” example of AIDS testing. Assume we know that exactly one person out of Earth’s six {1, 2} billion has AIDS, and we have a test that is 99 The probability of having {1, 2} is 1 out of 3 percent accurate. The test says you have AIDS. (1/3) for hands containing the 1 card. The Would you think it more likely that you’re that probability of having {1, 2} is 1 out of 5 (1/5) one person out of six billion who has AIDS, or for hands containing a small card. Thus, if is it more likely that you’re among the 1 per- you have the king of spades, you are more cent who got false positives? likely to have at least one other king than if you simply have a king. 5.31 Woman in a black dress. The probability is Here’s another way to consider this 5/23 = 5/8. The total number of possible

Answers 365 bansw01.qxd 5/17/05 9:54 AM Page 366

sequences from n card tosses is 2n. Let f(n) geometric diagrams. Consider a circle cen- be the number of sequences of reds and tered at C. Choose a point on the circle, Q. blacks, of length n, in which two consecutive Construct chords PQ and QR such that they reds do not appear. The probability that no are equal in length to the radius CQ. Just to two consecutive reds occur in n card tosses is make it obvious, construct line segments CP, f(n)/2n. CQ, and CR, forming two equilateral trian- Let’s explore the meaning of f(n). For one gles, CPQ and CQR. From geometry, we card, f (1) = 2 because both choices (a red face know that these two adjacent triangles fill 120 R or a black face B) do not show two consecu- degrees of the circle’s sweep, leaving 240 tive reds. For two cards, we have f(2) = 3 degrees of the circle remaining. Any random because three of the four possibilities do not point on the circle, X, will enjoy a 1/3 proba- contain RR: RB, BR, and BB. With three bility of falling within the 120 degrees and a cards, we have RRR, BBB, RBR, RRB, BRR, 2/3 probability of falling without. Chord QX RBB, BBR, and BRB. Here f(n) = 5. If we then has a 1/3 probability of being shorter experiment a few more times, we find that than the radius. (The process of randomly f(n) follows a sequence that many math nerds selecting chords on a circle to solve this prob- will recognize: 2, 3, 5, 8, 13, and so on, which lem leads to some famous paradoxes. As I is the Fibonacci sequence, where each term is said, the term random chord is ambiguous the sum of the previous two. Thus, it is possi- unless the exact procedure for producing it is ble to compute the probabilities of larger sets defined.) of cards by dividing appropriate values of the Fibonacci sequence by 2n. 5.33 Bart’s dilemma. Here is one clever solu- tion. Bart should say, “You will shave my 5.32 Random chords. The probability is 1 out head.” of 3 (1/3). This answer applies only when you use the definition of “random chord” that I 5.34 Multilegged creatures. First, note that Mr. gave in the question. Other definitions will Hundred cannot have 100 legs, so he must give different answers. If you’re a computer have either 80 or 90 legs. Because the robot programmer, you can actually simulate this by with 90 legs replies to Mr. Hundred’s remark, randomly selecting chords and determining Mr. Hundred cannot have 90 legs. Therefore, how many of them are shorter than the radius Mr. Hundred has 80 legs. Now consider Mr. of the circle. I did this for 100,000 trials and Ninety. He cannot have 90 legs because this found the ratio to be 0.33. Therefore, we can would match his name. Mr. Ninety has 100 say that 1/3 of all the possible chords of a cir- legs. cle are less than the radius. If you are a gam- bling person, you should not bet that a 5.35 Three fishermen. One fish is sufficient. randomly selected chord is smaller than the Look at one fish from the bucket labeled circle’s radius! “flounder and mackerel.” Say that it’s a We can solve this by using some simple flounder. Because each bucket is labeled

366 Answers bansw01.qxd 5/17/05 9:54 AM Page 367

incorrectly, the bucket cannot be the “flounder Melissa to win on her turn, Don must sink and mackerel” bucket; therefore, it must be and Melissa must win, which requires us to the flounder bucket. The bucket labeled multiply (1/2)(1/2) = 1/4. For Carl to win, “mackerel” must contain mixed fish, and the Don must lose, Melissa must lose, and Carl bucket labeled “flounder” must actually be the must win, which has a chance of mackerel bucket. (1/2)(1/2)(1/2) or 1/8.

5.36 Mummy madness. The probability is 4/7. 5.40 Clown’s dreams. Believe it or not, both There are seven possible pairings of the cat, aquaria are equally contaminated. The juice the hyena, and the mouse. Of these, 4 of the contains exactly as much vinegar as the vine- cases present a cat with a missing tail. In gar contains juice. Perhaps the best way to the following table, M signifies that the mum- visualize this is to put 6 purple balls in an my is missing a tail, and T signifies that aquarium (to represent grape juice) and 6 it has a tail. white balls in another aquarium (to represent vinegar). Let’s assume that your glass cup cat M M T T M T M holds 3 balls. You take 3 white balls and add hyena M T M T T M M them to the aquarium containing 6 purple mouse T M M M T T M balls. The grape aquarium now contains 6 purple balls and 3 white balls. Next “stir” the balls in the grape aquarium. If you dip your 5.37 Heart attack. The chances are zero! If cup into the contaminated aquarium, on aver- four of the hearts are returned to their correct age your cup will contain 2 purple balls and 1 bodies, then five of the hearts must also have white ball. Add these to the vinegar aquarium. been returned to their correct bodies. Each aquarium will now have 4 of one ball and 2 of the other. 5.38 Sushi play. The chances are 1 out of 3 Another explanation: If you moved 1 ounce (1/3). Nick has these numbered sushi pieces: of grape juice to the vinegar aquarium, you 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10. Because you must have moved 1 ounce of vinegar to the know that the mystery sushi is not odd, we grape juice aquarium, because the total have one of these in the box: 2, 2, 4, 6, 8, 10. amount of liquid in each has not changed. Thus, 2 of the 6 sushi pieces have the number 2 on them. This means the chances are 1 5.41 Lottery. Because there is no connection out of 3 (1/3) that the sushi with a 2 is in between one lottery number and the next the box. one, you won’t do any better if you play different numbers instead of always playing 5.39 Floating boat game. Don’s, Melissa’s, and the same one. Carl’s odds of “winning” are 4 to 2 to 1. Here’s why. Don has a 1 out of 2 (1/2) chance 5.42 Fossil lock. Put the fossil into the sphere, of making his boat float on his turn. For secure it with one of your locks, and send the

Answers 367 bansw01.qxd 5/17/05 9:54 AM Page 368

sphere to Homer. Homer should then attach Companies like Grand Illusions manufacture one of his own locks and return the sphere. these and other nontransitive dice. When you receive it again, remove your lock The toy collector Tim Rowett uses a set of and send it back. Now, Homer can unlock his three nontransitive dice, each die having two own lock and retrieve the fossil. different numbers: Die 1: 1, 4, 4, 4, 4, 4 5.43 Nontransitive dice. Examine figure A5.2. Die 2: 3, 3, 3, 3, 3, 6 Proceeding clockwise around the circle, the die with 6s and 2s beats the die with 5s and Die 3: 2, 2, 2, 5, 5, 5. 1s, which in turn beats the die with 4s and 0s, Here, Die 1 beats Die 2 in 25 out of 36 throws; which beats the die with all 3s, which beats Die 2 beats Die 3 in 21 out of 36 throws, and the die with 6s and 2s. In particular, each die, Die 3 beats Die 1 in 21 out of 36 throws. in order, is twice as likely to beat its partner. You can read more about nontransitive dice For example, comparing the die with all 3s at many Web sites, including Ivars Peterson, and the die with 6s and 2s, we find that Bill “Tricky Dice Revisited,” Science News Online loses when Monica throws a 6 (which occurs 161, no. 16 (week of April 20, 2002); www. 2/6 of the time), and he wins when she throws sciencenews.org/20020420/mathtrek.asp; and a 2 (which occurs 4/6 of the time), so he is Grand Illusions, “Magic Dice, or Nontransi- twice as likely to beat her than she is to beat tive Dice,” www.grand-illusions.com/ him. Whichever die Monica selects, Bill magicdice.htm. chooses the die at the tail of the arrow. 5.44 Tic-tac-toe. Many people whom I sur- veyed next chose Cell 5 for X; however, other moves would be better. For example, if you were to play 4 or 6, this would give O three losing moves out of a possible six. If O plays to 5, 6, or 9, O loses (assuming that X plays correctly). If O plays to 1, 3, or 7, then it could go either way, but if both play correctly, it’s a draw.

5.45 Farmer McDonald’s moose. He must retrieve 201 gloves. If old McDonald was having bad luck, he could conceivably take out 100 red left-handed gloves and then 100 blue left-handed gloves. After these 200 were removed from the sewer, the next one would have to be either the right-hand or the Figure A5.2 Nontransitive dice. left-hand match.

368 Answers bansw01.qxd 5/17/05 9:54 AM Page 369

5.46 Black versus red. The probability that the Notice that there is one length-3 solution, other side is black is 2 out of 3 (2/3), good with a probability of 1/8. There are nine odds. To help solve this, draw all of the possi- length-4 solutions, with odds of 1/16. There ble scenarios where Brad sees a black side of are nine length-5 solutions, with a probability the bill. For example, if you label the three of 1/32. There are two length-6 solutions, with black sides B1, B2, and B3, then in 2 of the 3 a probability of 1/64. The formula to combine cases in which Brad sees a black side, the these various probabilities is other side will also be black. (1 × 3 × 1/8) + (9 × 4 × 1/16) + (9 × 5 × 1/32) + (2 × 6 × 1/64) = 135/32 = 4.21875 5.47 Brunhilde’s moose. The chances are 4 out of 25 (4/25). The chance that she will hit an O My friend Jon Anderson has performed is 2/5. The chance that she will do this twice computer simulations of this game and found in a row is (2/5) × (2/5) = 4/25 or 16 percent. that they confirmed the solution that was arrived at by analytical means. At my request, 5.48 Board game of the gods. It would take he also performed simulations for games in 4.21875 coin tosses. We may create a table which the fifth chamber has a chute that that shows each possible winning situation moves the player back to Chamber 1 when- and the probability of getting it. For example, ever he lands on Chamber 5. In this more one path to the solution is to hop 2, hop 2, complicated game, the average number of hop 2, which has a probability of 1/8 because tries needed to win rises from 4.21875 to 9.6, during each hop, we have a 1/2 probability of based on both simulations and analytical hopping by 2. This represents the first entry in considerations. the following table. Similarly, we can com- pute the other probabilities for each path. 5.49 Chimps and gibbons. The odds are 1 out of 3 (1/3). We have three possibilities. The pri- mate is Chimp Gibbon, and he called out his Path Probability Path Probability first name. The primate is Chimp Chimp, and 222 1/8 11112 1/32 he called out his first name. The primate is 1122 1/16 11121 1/32 Chimp Chimp, and he called out his last 1212 1/16 11122 1/32 name. All of these possibilities are equally 1221 1/16 11211 1/32 likely. In one out of the three possibilities is 1222 1/16 11212 1/32 the primate Chimp Gibbon. 2112 1/16 12111 1/32 Sometimes my readers argue with me over 2121 1/16 12112 1/32 problems of this kind that involve conditional 2122 1/16 21111 1/32 probabilities. Colleagues tell me that this may 2211 1/16 21112 1/32 be an interesting problem to which we can apply Bayes’s theorem: the probability of a 2212 1/16 111111 1/64 hypothesis given a relevant event is the proba- 111112 1/64 bility of the event given the hypothesis times

Answers 369 bansw01.qxd 5/17/05 9:54 AM Page 370

the initial probability of the hypothesis ant, the odds favor you if you switch to divided by the initial probability of the event. another tunnel. Many of my colleagues did This is usually written as P(H|E) = (P(H) × not believe my answer, so they wrote a com- P(E|H))/P(E). In our case, puter simulation that proved me correct. Alternatively, it may be helpful for you to P(H) = 1/3 (probability that the chimp’s imagine that there are 1,000 tunnels, and Pun- last name is Gibbon) isher points to the 998 tunnels that terminate P(E) = 3/6 = 1/2 (probability that one in a warrior ant. Now would you switch your of the names is Chimp) choice of tunnels? (What assumptions are being made in this puzzle?) P(E|H) = 1/2 (probability that the chimp will Let’s look at this from another perspective. say “Chimp,” given his last name is Gibbon) Assume that Tunnel 1 is the tunnel to free- P(H|E) is therefore (1/3) × (1/2)/(1/2) = 1/3. dom. Here are the possibilities before our captor points to a sticky tunnel: 5.50 Cars and monkeys. Yes, we can make a •You choose Tunnel 1. If you don’t switch, determination. The woman driving Barbara’s you win. car and with Claire’s monkey can’t be Barbara •You choose Tunnel 2. If you don’t switch, or Claire; thus, she is Andrea. If Barbara is you lose. driving Andrea’s car, Claire is driving her •You choose Tunnel 3. If you don’t switch, own. But she is not, so Barbara is driving you lose. Claire’s car, and Claire is driving Andrea’s. •You choose Tunnel 4. If you don’t switch, you lose. 5.51 Guessing numbers. Let us suppose that Bill called out “3,500,002.” This means you •You choose Tunnel 5. If you don’t switch, must guess the year before his number and the you lose. year after his number—namely, 3,500,001 Odds of winning: 1/5 = .2 and 3,500,003. It’s virtually certain that you Now let’s examine the possibilities after your will win. captor points to a sticky tunnel: •You choose Tunnel 1. If you switch, you 5.52 Martian identities. There are 520 Mar- lose. tians, at most. The first position of the card •You choose Tunnel 2. If you switch, you could contain 1 of 26 letters. The second posi- have 1/3 chance of winning. tion could contain 10 possible digits. 26 × 10 = 260. We must double this number for all the •You choose Tunnel 3. If you switch, you cases in which the number appears first and have 1/3 chance of winning. the letter appears last. •You choose Tunnel 4. If you switch, you have 1/3 chance of winning. 5.53 Robotic ants. Since Punisher always •You choose Tunnel 5. If you switch, you points to a tunnel that terminates in a warrior have 1/3 chance of winning.

370 Answers bansw01.qxd 5/17/05 9:54 AM Page 371

Odds of winning: 4/5 × 1/3 = 4/15 = 0.2666 are about 6.27 × 1015 ten-character domain . . . names and 3.94 × 1031 twenty-character domain names. Please note that these numbers This puzzle is very similar to the famous are all approximations because the rules for Monty Hall problem that is discussed in great domain name generation have additional com- detail in the literature. These kinds of prob- plexities; for example, domain names cannot lems are most relevant when you’re consider- begin or end with a hyphen. Also, I have not ing the best strategy to use if the “game” is considered the different domain name exten- played repeatedly. sions, such as .net, .org, .com, and so on.

5.54 Venusian insects. One hundred percent of 5.56 Where are the sea horses? Chamber C. To them eat insects. The problem states that all solve this problem theoretically, we assume Venusians eat four of the five foods, so how that the sea horses swim randomly. In this could a Venusian avoid the insects? Here’s sense, they behave like diffusing molecules in another way to look at it. Select a Venusian at a gas. Therefore, the number of sea horses in random. Either he eats beetles or he does not. each chamber is proportional to the volume of If he eats beetles, he is eating an insect. If he the chamber. The nature of the interconnecting doesn’t eat beetles, then he can choose from tunnels should not matter if you give the dif- the other four groups, which includes ants. fusing sea horses sufficient time to come to an Therefore, he is still eating an insect. equilibrium state. In other words, Chamber C in figure 5.6 will have the most sea horses 5.55 Domain names. Consider that there are 38 because it is the chamber with the largest vol- possible characters, if you count the various ume. One assumption we make in this prob- symbols on the keyboard in addition to the 26 lem is that the large-area Chamber C, in this letters. You just take the number of possible schematic slice through the aquarium, also characters and raise it to the number of char- represents a large volume if viewed in three acters in the domain name, so there are 38 to dimensions. the third, or 54,872 three-character possibili- ties; and 38 to the fourth, or 2,085,136 four- 5.57 Lotteries and superstition. Bill is wrong. character possibilities; and 385 = 79,235,168 Monica is just as likely to win as Bill is. In five-character possibilities. Of course, many fact, she would be just as likely to win if she of these are uninteresting and unpronounce- avoided 13, 14, and 15 and picked “16, 16, able, like xnzy. The novel’s character creates 16, 16, 16, 16.” Any set of six numbers is just patented algorithms to determine names that as likely to be picked as any other. The proba- are pronounceable and initially buys only bility of winning is 1/46 in every case. those. If you consider that domain names can be 5.58 Coin flips and the paranormal. I did a many characters in length, we should not run small survey of colleagues. Most said that out of domain names soon. For example, there they would begin to become suspicious after

Answers 371 bansw01.qxd 5/17/05 9:54 AM Page 372

about 5 heads in a row. Most colleagues felt land the same way it started 51 percent of the that a mathematician wouldn’t think that time, but a casual observer wouldn’t notice the coin was biased until about 15 heads in this small bias. More alarming are the results a row. of spinning a penny on its edge, in which case Of course, a coin may be biased and not the penny will land on tails 80 percent of the reveal its bias by always yielding a head. My time because the head side has slightly more friend has a set of dice that are weighted to mass. For further reading, see Erica Klarreich, roll 6s, but about 20 to 25 percent of the time, “Toss Out the Toss-Up,” Science News 165, they still roll a non-6. To detect bias, most no. 9 (February 28, 2004): 131–32. mathematicians probably wouldn’t look for a As for the paranormal implications, Susan consecutive number of heads but would rather Blackmore, a researcher, uses the term sheep like to see a sample set. to refer to unskeptical people who believe in Other colleagues noted that if the initial the paranormal. Blackmore has found that results were somewhat random, and suddenly when sheep are given a string of random a string of heads resulted—say, 8 heads in a numbers, they overestimate the significance row—most people could accept that this of ordinary repetitions in the sequence. Sheep might happen by chance and would consider are also more prone to generally misjudge that the coin was unbiased. probabilities. For example, if we flip a coin, My friend Graham notes that if you just sheep tend to underestimate or overestimate had to call a single coin toss of a biased coin, the odds of getting a head if a coin has gotten and the caller did not know that the bias five heads in a row, because sheep assume existed, the procedure of calling the toss that the previous tosses influence the next would still be fair. Consider the extreme case one. Finally, when sheep are asked to write of a double-headed penny. It always comes down a sequence of random digits, sheep are down heads. However, if the caller takes a more likely to avoid repeating digits than random guess of heads or tails, he or she still chance would dictate (John Horgan, Rational has a 50 percent chance of being correct. For Mysticism [New York: Houghton Mifflin, a single toss, a biased coin is as “fair” as an 2003], p. 111). unbiased one. It is similarly true that as long as I guess randomly each time, my expected proportion of correct guesses is still 50 per- 5.59 Robot jaws. The top jaw has 100 possible cent no matter how biased the coin is and no combinations. The bottom jaw has 100 possi- matter how long the sequence. ble combinations. The probability of opening In 2004, the mathematicians Persi Diaconis both locks on the first attempt is (1/100) × and Susan Holmes discovered that it is impos- (1/100) = 1/10,000. sible to actually toss a coin into the air If it takes you, on average, an hour to get “fairly,” because a coin is always more likely the top combination right, how much time on to land on the same face it started out on. In average would it take you to get both combi- particular, their data indicate that a coin will nations right on the first try?

372 Answers bansw01.qxd 5/17/05 9:54 AM Page 373

5.60 Flies in a cube. It’s possible to compute 5.63 Dark hallway and vapor men. It turns out this average distance (known to physicists as that an analysis of this problem is not too dif- the mean free path) by using the following ficult. The chance of Man 1 vaporizing you is formula: 50 percent. The probability of reaching the second man and being vaporized is less. L = 1/(4π√2 ar2) Specifically, it is the probability that the first Here, L is the average distance traveled before man didn’t vaporize you times the probability hitting another fly, a is the density of flies, and that the second man did vaporize you, 0.5 × r is the radius of a fly. From the equation, you 0.5 = 25 percent. For the third man, we have can see that as the radius of the fly increases 0.53 = 0.125. This also means that in a large- or the density of the spheres increases, the enough sample, 1/2 of the people will be distance traveled before hitting another fly (as vaporized by Man 1, 1/4 by Man 2, 1/8 by you might expect) decreases. In our case, a is Man 3, and so on. We can create a table that 1,000 flies/cubic mile. shows the chances of reaching and being Given all these hints, what value do you get vaporized by each man as you walk through for L? Does the answer you get seem reason- the hallway: able? Are you surprised by the answer, which suggests that the average distance traveled Percent Chance of between collisions is way over 500,000 miles? Man Number Reaching and Being Vaporized by Man 5.61 Boomerang madness. The probability is 1 1 50 out of 20. The first boomerang merely indi- 2 25 cates which tree the second boomerang must 3 12.5 get caught in. It doesn’t matter that they were thrown at the same time. If you throw one of 4 6.25 them later, its odds of landing in any particu- 5 3.125 lar tree, and therefore the odds of hitting the 6 1.5625 tree with the other boomerang, are 1/20. I sus- 7 0.78125 pect that many people would falsely answer 1/400, the odds of both boomerangs landing 8 0.390625 in a particular tree. 9 0.1953125 10 0.09765625 5.62 Apes in a barrel. One out of 30—the same as if the puzzle were recast and you were to win if Tiffany emerged third or at any point in Your chances of reaching and being vaporized the sequence of apes leaving the barrel. It by the final man are slim indeed—only about would be very easy to overanalyze this. But if 9/100ths of a percent. Therefore, most mathe- you think about it, each ape has an equal maticians whom I asked said that because chance of emerging last. they were limited to selecting one man, they

Answers 373 bansw01.qxd 5/17/05 9:54 AM Page 374

would place their money on Man Number 1 Napoleon and Churchill would win. However, as the fellow who will vaporize you. In other such is not the case. HHH appears before words, individuals would be most likely to be THH only if the first three tosses come up vaporized by this man. heads. Any other result will allow THH to How many attempts would it take to reach block HHH. Therefore, the probability that the end of the hallway without being vapor- HHH appears before THH is 1/8, which is the ized along the way? Note that the chances of probability that the first three tosses are HHH. reaching each succeeding man are the same as If you don’t see this, try writing down random for reaching and being vaporized by the previ- strings of Hs and Ts on paper, and this logic ous one. Thus, the chances of passing by all will become apparent. the men safely are the same as reaching and being vaporized by Man 10. Therefore, the 5.65 Triangles and spiders. To solve this prob- probability is 0.009765625; that is, 1,024 lem, we must determine the area of the trian- attempts would be required by a person, on gular target for which the x coordinate is less average, to reach the end of the hallway than the y coordinate and compare that area,

safely. A1, to the area A2 of the triangle in which the x My colleague J. Theodore Schuerzinger coordinate is greater than the y coordinate. notes that because 1/210 or (1/1,024) people The two regions are separated by the line OP would make it all the way down the hallway (y = x) (figure A5.3). Before we do any calcu- without being vaporized by any of the myste- lations, we can see that the meatball has less rious men, this means that 1,023 out of 1,024 than a 50-50 chance of having the x-coordi- people would be vaporized. He notes that by nate less than the y-coordinate, because the using the formula (1023/1024)x = 1/2, we can area of the region is smaller. determine that out of the first x people to go down the hallway, there is a 50 percent chance that one person will make it down without being vaporized. The solution x = 709.4 satisfies the equation. Thus, I would bet that a person would make it all the way down on one of the first 710 attempts. In other words, after 710 attempts, the chance of someone succeed- ing exceeds 1/2. Figure A5.3 Triangles and spiders. 5.64 Napoleon and Churchill. Churchill is much more likely to win than Napoleon is. In other Let’s calculate the area of the entire triangu- words, THH is much more likely to appear lar target. Using the formula area = (1/2) × before HHH does. base × height, we find A = 1/2 × 5 × 4 = 10.

Most people reason that each triplet is Next, we compute A1, the area of the smaller equally likely, so that it is equally likely that internal triangle. One way to do this is to first

374 Answers bansw01.qxd 5/17/05 9:54 AM Page 375

calculate the equation of the hypotenuse of the Application of Multivariate Analysis to entire triangular target and then calculate the Authorship Attribution,” Chance 16, no. 2 coordinates of point P. (2003): 9–18. Also see Erica Klarreich, The big hypotenuse connects points (0,4) “Bookish Math,” Science News 164, no. 25 and (5,0), so it has a slope of –4/5. The y- (December 20, 2003): 392–94. intercept is 4, so the equation of the hypotenuse line is y = (–4/5)x + 4. Point P 5.67 Factors. As I alluded to in chapter 2, the must satisfy both y = x and y = (–4/5)x + 4. solution is 1/ξ(3), where Solving for y and x, we find that P is at ξ 3 3 3 3 (2.22, 2.22). (3) = 1/1 + 1/2 + 1/3 + 1/4 + . . . = Finally, we can compute the area of the 1.20205690315959428539973816 smaller internal triangle using the usual A = 151144999076498629234049 . . . (1/2) × b × h. Here we can visualize the base ξ(3) is called Apery’s constant. It’s also the × × resting on the y axis so that A1 = 1/2 4 value of the Riemann Zeta function for s = 3: 2.22 = 4.44. Recall that the area of the entire ∞ 1 triangle is 10. Of this, the area where the x ξ()3 = ∑ s coordinate is less than the y coordinate is n=1 n 4.44. So the probability that the meatball lands on a point for which x < y = 4.44/10 or Incidentally, the values of the Zeta function 2n 44 percent. for s = 2n are known to be fractions of π . For example, Euler proved that

5.66 Stylometry. Stylometry is the science of π 246π π measuring literary styles. In 2003, statistical ξ()2 === ,()ξ 4 ,()ξ 6 tests, artificial intelligence methods, and other 6 90 945 mathematical tools were used to determine that the fifteenth book in the Oz series, The 5.68 Plato’s choice. The interval is 14 for the Royal Book of Oz, was written by Ruth gods, and 13 for the mortals. How would your Plumly Thompson and not by Frank L. Baum. answer change if another god were inserted Jose Binongo, of the Collegiate School and after Plato? Virginia Commonwealth University in Rich- The mathematical puzzle involves the con- mond, has verified the authorship by examin- cept of decimation. Throughout history, the ing the 50 most frequently observed words in lawful penalty for mutiny on a ship was to various Oz texts and exploring projections of execute one-tenth of the crew. First, the crew a 50-dimensional space onto a plane. members were forced to randomly line up in a Researchers speculate that authors have circle. It was then customary that the victims certain habits ingrained in their neural path- be selected by counting every tenth person ways that favor particular word correlations. from the circle, hence the term decimation. For further information, see Jose Binongo, Eventually, this term came to be applied to any “Who Wrote the 15th Book of Oz? An depletion of a group by any fixed interval—

Answers 375 bansw01.qxd 5/17/05 9:54 AM Page 376

not just ten. (In real life, when we wish to dec- fans are likely to share their birthdays with imate a group of people, we don’t usually line about 135 others in attendance. In a random them up in a circle because repeatedly going selection of 23 people, there is a greater than around the circle kills everyone.) 50 percent chance that at least 2 of them cele- This problem in combinatorics is an exam- brate the same birthday. ple of a class of problems that is sometimes Incidentally, in statistics and mathematics, called Josephus problems: given a group of n “the law of large numbers” has a different men arranged in a circle under the command meaning and refers to the rule that the average that every mth man will be executed going of a large number of independent measure- around the circle until only one remains, find ments of a random quantity tends toward the the position P(n,m) in which you should stand theoretical average of that quantity. in order to be the last survivor. For further reading, see W. W. R. Ball and H. S. M. Cox- 6.3 The ultrahex. Its last digit is a 6, because 6 eter, Mathematical Recreations and Essays, raised to any power produces a result that 13th ed. (New York: Dover, 1987), pp. 32–36. ends in a 6.

6. Big Numbers and Infinity 6.4 The ubiquitous 7. You could essentially say that all numbers have a 7 in them. Why? As the numbers get larger, they contain more dig- 6.1 Counting. It would take 31 years and 251 its, increasing the probability that one of the days. In reality, it would take you longer digits in them might be a 7. In fact, the proba- because larger numbers would take more than bility that a 7 will not appear in a very long a second to pronounce. number is vanishingly small. Moreover, you can make a graph of the proportion of num- 6.2 Large law. This “law” refers to coinci- bers with 7s in them as you scan larger and dences in everyday life. It essentially says that larger numbers, and you will see it continu- many seemingly odd coincidences are likely to ously rise and approach 1. We can also make happen with a large-enough sample. As Robert a table showing the percentage of numbers Todd Carroll points out in The Skeptic’s Dictio- with at least one 7 digit for the first X num- nary, we might be amazed if a person wins the bers. Here is a table, showing the actual num- lottery twice. However, the statisticians ber of numbers with sevens: Stephen Samuels and George McCabe of Pur- due University calculated the odds of someone X Percentage of Occurrence of 7 winning the lottery twice to be about 1 in 30 10 10 for a four-month period—because players usu- 100 19 ally buy multiple tickets every week. 1,000 27 More than 17 million people on the planet share your birthday. Carroll notes that at a 10,000 34 typical football game with 50,000 fans, most . . . rapidly approaching 100 percent

376 Answers bansw01.qxd 5/17/05 9:54 AM Page 377

A formula describes this growth: 10n – 9n, from the last problem that as the numbers get where n is the power of 10. Thus larger, they contain more digits, increasing the (10n – 9n)/10n gives you the percentage. probability that one of the digits in them According to the software package Mathe- might be a 7. In fact, the probability that a 7 matica, the limit as n approaches ∞ is 1. will not appear in a very long number in my Or, even without Mathematica, the formula list is very low. reduces to 1 – (9/10)n. The quantity (9/10)n approaches zero as n grows. 6.7 Computers and big numbers. The computer that I am envisioning is one that is not an ide- 6.5 Knuth notation for ultra-big numbers. No. alized or theoretical model, but one limited by 3 ↑↑4 = 3 ↑ 3 ↑ 3 ↑ 3 = 3 ↑ 3 ↑ 27 = known physical laws such as the speed of 3 ↑ 7625597484987. This number is huge, light, electrical resistance, RC (resistor-capac- much larger than the number of atoms in the itor) delay, atomic dimensions, the world sup- visible universe. (It’s estimated that there are ply of silicon, the finiteness of programs and 1080 protons and the same number of elec- data, and other known phenomena. Can such trons in the visible universe.) You can surely a machine work with numbers so huge that see that Knuth’s notation is a compact way of they would require Donald Knuth’s arrow representing large numbers. notation to express them? One of the largest finite numbers ever con- My colleague Dennis Gordon posed this templated by a mathematician is Graham’s big-number question to my discussion group. number, named after the mathematician Most group members focused on the storage Ronald L. Graham. As just the first step to needed to hold such a number (with all its

understanding Graham’s number, let x1 = digits), which might depend on the amount of 3 ↑↑↑↑3, which is unimaginably large! matter in the universe. If we limit ourselves to

Next, let x2 = 3 (x1 arrows) 3. In other words, the visible universe, which contains about 80 x2 has x1 arrows. We continue the process, 10 protons and the same number of elec- making the number of arrows equal to the trons, then perhaps this provides an upper number at the previous step, until you are 63 limit to the size of the binary number that we

steps from x1. The final value, beyond which could conceivably store. If a quantum com- any God could contemplate, is Graham’s puter is to be considered, then all the matter in number, which is used in an area of mathe- the multiverse should be considered. In addi- matics called combinatorics and, more specifi- tion to storage for the number, we would also cally, Ramsey theory. need the computer itself, which would include a storage writer to write the number, even if 6.6 The magnificent 7. The chance is 100 per- we never wanted to read it. We would also cent. If I list all of the integers in numerical need the engineer to design it. order, there is essentially a 100 percent My colleague Bill Gavin echoes this view chance of hitting a number with a 7, using a when he notes that in order to determine the dart tossed randomly at the list. You learned largest number that could be handled by a

Answers 377 bansw01.qxd 5/17/05 9:54 AM Page 378

computer, we need to first imagine the ulti- sity, submitted “Universal Limits on Compu- mate computing machine, which would be the tation” to Physical Review Letters. They show entire universe transformed into a single God- that the nature of the universe itself places like computer. The largest number it could limits on computation because it is not possi- handle would then be the largest number that ble to transmit or receive information beyond could be encoded in the universe itself. Mak- the so-called global event-horizon in an accel- ing a simplified assumption that each particle erating, expanding universe. In particular, may be encoded with one bit of information, they determined how far an observer could we can determine the largest possible number travel in such a universe and still be able to that could be encoded in the universe by divid- transmit energy back to Earth. Their calcula- ing the total mass of the universe (which is a tions show that the total number of computer constant) by the mass of the smallest particles bits that could be processed in the future that the universe could be broken up into. would be less than 1.35 × 10120. Their calcula- But what is the smallest possible particle? tions also considered that the acceleration We can get much smaller than a proton or an causes space to emit a form of energy known electron. The mass of any particle can be as de Sitter radiation, which would drain expressed as a function of its size and its energy from regions of the universe and thus energy. For the smallest possible particle, we also diminish the computer resources that assume the smallest possible size, a well- could be used for computation. defined unit in physics known as the Planck My solution concentrates on the largest length (very roughly 10–35 meters). The small- number that can be stored, not worked with or est possible particle would also have the low- yielded. To actually “work with a number,” we est possible energy, which corresponds to the need at least one other number. We also need longest possible wavelength. The longest pos- space to hold intermediate work or at least the sible wavelength would be the “radius” of the answer. Thus, if we want to multiply two 10- universe itself, which is believed to be about digit numbers (in any base), we need 20 digits 13 billion light years. With our smallest possi- for the two numbers and another 20 for the ble particle’s “radius” and wavelength thus result. We also need some space for coding defined, its mass can be easily calculated. If the multiplication algorithm! we assume that the total mass of the universe is on the order of 1053 kg (the value favored 6.8 Counting every rational number. Georg by most physicists), the largest number of bits Cantor (1845–1918) boldly tamed the infinite that could be encoded in the universe at its and showed that there are different degrees of current size turns out to be approximately infinity. This subject had previously been left 10120, which corresponds to a largest possible to pure speculation and mysticism. The integer of 210120. How does this value change rational numbers, for example, are countably as the universe expands? infinite, which means it is possible to enumer- In 2004, Lawrence M. Krauss and Glenn D. ate all of the rational numbers by means of an Starkman, of Case Western Reserve Univer- infinite list. In contrast, the real numbers are

378 Answers bansw01.qxd 5/17/05 9:54 AM Page 379

uncountable because we cannot enumerate a “greater” infinity than the infinity of rational them by means of an infinite list. A few exam- numbers. Here’s how he showed this. ples will make this clear. Let’s try to make a list of all the positive Cantor showed that it is possible, in theory, real numbers, just as we did for the positive to count all rational (fractional) numbers if rational numbers. Such a list would include you arranged them in a pattern like this: numbers like pi, which can’t be expressed as a ABCDEF fraction. For simplicity, let’s imagine a list of all the real numbers between 0 and 1. The list 1/1 2/1 3/1 4/1 5/1 6/1 . . . might, in no special order, look something 1/2 2/2 3/2 4/2 5/2 ...... like this, each number with an infinite number of digits: 1/3 2/3 3/3 4/3 ......

1/4 2/4 3/4 ...... N1 = 0.398471 . . . N = 0.281910 . . . 1/5 2/5 ...... 2 N = 0.538567 . . . 1/6 ...... 3 N = 0.790193 . . . Here is Cantor’s method for listing all the 4 . . . rational numbers. Start your list with 1/1 at the top of column A. Next, go to 2/1 at the top Is it possible to find a real number that is not of B and list all fractions down and to the left: on this infinite list? The answer is yes. To con- 2/1, 1/2. Next, go to the top of C and list struct this number, add one to each underlined rational numbers along the diagonal: 3/1, 2/2, digit: 1/3. As you continue this process, you can check whether a number has been counted N1 = 0.388471 . . .

already, such as when you get to 2/4, which is N2 = 0.281510 . . . the same as 1/2. You can eliminate repeats. N3 = 0.538567 . . . You can also reduce fractions to the lowest N = 0.740183 . . . terms; for example, 2/1 = 2. We can continue 4 this process to create a list of rational num- We continue with every digit and every num- bers (which includes the integers): ber N to produce a new number: M = 0.4982 . . . Notice that this mystery real number, M, 1, 2, 1/2, 3, 1/3, 4, 3/2, 2/3, 1/4, 5, . . . is different from N1 in the first digit, different Any positive rational number will be reached from N2 in the second digit, and so forth. sooner or later. On the other hand, Cantor Where does M itself reside on the list of real showed that for every given infinite sequence numbers? Nowhere! It differs from every of real numbers it is possible to construct a number on the list. Thus, it is not possible to real number that is not on that list. Conse- “enumerate” every real number, as it is for the quently, it is impossible to enumerate the real rational numbers. (Or, perhaps more accu- numbers; they are uncountable and represent rately, I should say that we have shown that

Answers 379 bansw01.qxd 5/17/05 9:54 AM Page 380

the list of real numbers must have more ele- ments than the set of integers does.) The exact

values for numbers in our N1, N2, N3 , . . . list do not affect the basis of our argument. I have simplified our discussion of Cantor’s diagonal proof somewhat, and additional complexities are discussed in “Cantor’s diago- nal proof,” www.mathpages.com/home/ kmath371.htm.

6.9 1597 problem. Yes. The reason it would take even your computer so long to find the Figure A6.1 Funnel of Zeus, Gabriel’s horn, infinite number of solutions is the fact that the or Torricelli’s trumpet. smallest integer value for y is y = 51971152775546309622426638537563 finite number of paint molecules. This seem- 8449943026746249 ing paradox can be partly resolved by remem- bering that the Funnel of Zeus is actually a for an x value of mathematical construct, and our finite number x = 13004986088790772250309504643908 of paint molecules that “fills” the horn is an 671520836229100 approximation to the actual finite volume of the horn. 6.10 Infinite surface. There are many answers For what values of a does f(x) = 1/xa pro- to this question, but my favorite involves the duce a horn with finite volume and infinite Funnel of Zeus, a hornlike object created by area? This is something for you to ponder as revolving f(x) = 1/x for x ∈ of [1, ∞) about the you drift off to sleep tonight. x axis. Figure A6.1 shows a cross-section of The Funnel of Zeus is sometimes called the funnel, which can be created by revolving Gabriel’s horn or Torricelli’s trumpet, after the curves about the x axis. Standard calculus Evangelista Torricelli (1608–1647), a mathe- methods can be used to demonstrate that the matics teacher who studied this object. He Funnel of Zeus has finite volume but infinite was astounded by this object that seemed to surface area! be an infinitely long solid with an infinite-area In 777 Mathematical Conversation surface and a finite volume. He thought it was Starters, John de Pillis explains that mathe- a paradox and, unfortunately, did not have the matically speaking, pouring red paint into tools of calculus to fully appreciate and the Funnel of Zeus could fill the funnel and, understand the object. Today, Torricelli is in so doing, you could paint the entire inside, remembered for the telescopic astronomy he an infinite surface—even though you have a did with Galileo.

380 Answers bansw01.qxd 5/17/05 9:54 AM Page 381

6.11 Infinity keyboard. The concept of infinity of which we cannot speak! It is this sum that has challenged humans for centuries. For corresponds to the final key struck. The sum example, Zeno (an Eleatic philosopher living is not well-defined; it is neither 1 nor 0 (nor is in the fifth century B.C.) posed a famous para- it 1/2); therefore it is not possible to say that dox that involved infinity. The paradox the final key struck is either J or H.” seemed to imply that you can never leave the My friend Chuck says, “When using a real room you are in. As Zeno reasoned, in order keyboard, the final state of the keyboard is to reach the door, you must first travel half the obviously . . . broken.” distance there. Once you get to the halfway For an analogous situation, consider a point, you must still traverse the remaining husky dog taking a walk in the snow. The dog distance. You need to continue to half the walks one mile north, instantly turns around remaining distance. If you were to jump 1/2 and walks half a mile south, instantly turns the distance, then 1/4 the distance, then 1/8 of around and walks a quarter of a mile north. the distance, and so on, would you reach the . . . When the dog stops, we know it is 2/3 door? Not in a finite number of jumps! In mile north of where it started, but we can’t say fact, if you kept jumping forever at a rate of 1 which direction it is facing! According to jump per second until you were out the door, Nick Hobson, the dog’s final position is you would jump forever. Mathematically, one 1 – 1/2 + 1/4 – 1/8 + . . . miles north of its can represent this limit of an infinite sequence starting point—considering the direction of actions as the sum of the series (1/2 +1/4 + north as positive and south as negative. The 1/8 + . . . ). The modern tendency is to resolve sum to infinity of a geometric series with ini- Zeno’s paradox by insisting that the sum of tial term a and common ratio r is a/(1 – r) if this infinite series 1/2 + 1/4 + 1/8 is equal to |r| < 1. (If |r| ≥ 1, the sum to infinity is not 1. Since each step is done in half as much defined.) Our dog series has a = 1 and time, the actual time to complete the infinite r = –1/2. So its sum is 1/(1 + 1/2) = 2/3. series is no different than the real time required to leave the room. 6.12 Infinite gift. The volumes of the cubes As for typing the two H and J keys, the that form the gift are part of this series: answer is that the key value is indeterminate 1 1 1 1 or undefined. My friend Nick Hobson notes 1++++++...... that this is perhaps not too surprising when 22 33 44 nn you reflect on the fact that the keys have been pressed an infinite number of times! Infinity is For example, if our units of measurement are neither even nor odd. feet, the first box would have a volume of one Nick agrees that the typing experiment cubic foot, and the next box would have a vol- does end, since the sum to infinity of 1 + 1/2 ume of about 0.35 cubic feet. This series con- + 1/4 + . . . is well-defined and finite. “On the verges. The total volume of the gift is finite, other hand, the sum to infinity of 1 – 1 + 1 – but the surface area is infinite! Of course, an 1 + . . . is neither of these. It is a monstrosity infinite object such as this cannot truly be

Answers 381 bansw01.qxd 5/17/05 9:54 AM Page 382

constructed because the boxes would eventu- power, where n has about 6,990 digits. Recall ally become smaller than an atom, but this that a number raised to a negative power is is a wonderful example of a wide class of simply 1 over the number raised to the posi- mathematical objects the members of which tive value of the power. To determine the have finite volumes but infinite surface areas. number of digits in a number, you simply take By summing the series on a computer, we the log of the number and add 1. find that the series converges to a value of The number of cubic inches in the whole around 2.61. volume of space comprising the observable universe is almost negligible compared to 6.13 Large number contest. Here is the answer this quantity. for the first part of the contest: I am not certain about the answer to the

− −4 second part of the contest. Here are some ...333333−×(.25510(.1 ) )= (10000 ) or 6989 attempts by friends who answered the ques- This number is roughly 3 raised to the nth tion that I posed in my discussion group:

1010 10 101010 which has 101010 + 1 digits (Jon Anderson)

−100 100 100 10.1 1010 10 1010 = 1010 , which has 1010 + 1 digits (Bill Olsen)

− −.1 100000 100000 − −.1 1010 .1 .1 , which has an amazing 1010 + 1 digits (Bill Olsen)

382 Answers brefs.qxd 5/13/05 12:27 PM Page 383

RRefereferencesences

About the Author

I’ve compiled the following list, which identifies much of the material I used to research and write this book. It includes information culled from books, journals, and Web sites. As many readers are aware, Internet Web sites come andIndex go. Sometimes they change addresses or completely dis- appear. The Web site addresses listed here provided valuable background information when this book was written. You can, of course, find numer- ous other Web sites that relate to the mathematical curiosities by using Web search tools, such as the ones provided at www.google.com. If I have overlooked an interesting mathematical puzzle, person, refer- ence, or factoid that you feel has never been fully appreciated, please let me know about it. Visit my Web site, www.pickover.com, and send me an e-mail explaining the idea and how you feel it influenced the mathemati- cal world.

Beeler, Michael, William Gosper, and Rich Schroeppel. HAKMEM. MIT AI Memo 239, February 29, 1972. See also www.inwap.com/pdp10/ hbaker/hakmem/hackmem.html. Work reported in this document was conducted at the Artificial Intelligence Laboratory, a Massachusetts Institute of Technology research program supported in part by the Advanced Research Projects Agency of the Department of Defense and monitored by the Office of Naval Research.

Berndt, Bruce. Ramanujan’s Notebooks. 2 vols. New York: Springer, 1985. Borwein, J., and P. Borwein. “Strange Series and High Precision Fraud.” The American Mathematical Monthly 99, no. 7 (August–September 1992): 622–40.

383 brefs.qxd 5/13/05 12:27 PM Page 384

Borwein, J., P. Borwein, and D. Bailey. “Ramanujan, Modular Equations, and Approximations to Pi, or How to Compute One Billion Digits of Pi.” The American Mathematical Monthly 96, no. 3 (March 1989): 201–19. Also available at www.cecm.sfu.ca/personal/pborwein/. Clawson, Calvin. Mathematical Mysteries. New York: Plenum, 1996. de Pillis, John. 777 Mathematical Conversation Starters. Washington, D.C.: The Mathematical Association of America, 2002. Gardner, Martin (editor). Mathematical Puzzles of Sam Loyd. New York: Dover, 1959. ——— (editor). More Mathematical Puzzles of Sam Loyd. New York: Dover, 1960. Gulberg, Jan. Mathematics from the Birth of Numbers. New York: Nor- ton, 1997. Kanigel, Robert. The Man Who Knew Infinity. New York: Scribner, 1991. Klarreich, Erica. “Math Lab: Computer Experiments Are Transforming Mathematics.” Science News 165, no. 17 (April 24, 2004): 266–68. Pappas, Theoni. Mathematical Scandals. San Carlos, Calif.: Wide World Publishing/Tetra, 1997. Ribenboim, Paulo. The Little Book of Big Primes. New York: Springer, 1991. ———. The Book of Prime Number Records, 2nd ed. New York: Springer, 1989. Poundstone, William. How Would You Move Mount Fuji? New York: Little Brown, 2003. Pickover, Clifford. The Loom of God. New York: Plenum, 1997. ———. Computers and the Imagination. New York: St. Martin’s Press, 1991. ———. Wonders of Numbers. New York: Oxford University Press, 2000. Room, Adrian. The Guinness Book of Numbers. Middlesex, England: Guinness Publishing, 1989. Sardar, Ziauddin, Jerry Ravetz, and Borin Van Loon. Introducing Mathe- matics. New York: Totem Books, 1999. A great cartoon guide to math- ematics.

384 References brefs.qxd 5/13/05 12:27 PM Page 385

Schimmel, Annemarie. The Mystery of Numbers. New York: Oxford Uni- versity Press, 1993. Vaderlind, Paul, Richard Guy, and Loren Larson. The Inquisitive Problem Solver. Washington, D.C.: The Mathematical Association of America, 2002. vos Savant, Marilyn. More Marilyn. New York: St. Martin’s Press, 1994. Wells, David. The Penguin Dictionary of Curious and Interesting Num- bers. Middlesex, England: Penguin Books, 1986. ———. The Penguin Dictionary of Curious and Interesting Geometry. Middlesex, England: Penguin Books, 1991. ———. The Penguin Dictionary of Curious and Interesting Puzzles. Middlesex, England: Penguin Books, 1992.

Web Pages

Dr. Math. “Ask Doctor Math,” mathforum.org/dr.math/. Elmosaly, Mohamed. “Newton’s Approximation of Pi,” members.tripod.com/egyptonline/newton.htm. Finch, Steve. “Mathematical Constants,” pauillac.inria.fr/algo/bsolve/constant/constant.html. Hobson, Nick. “Nick’s Mathematical Puzzles,” www.qbyte.org/puzzles/. Imaeda, Mari. “Octonions and Sedenions,” www.geocities.com/zerodivisor/. Kosinov, Nikolay. “Connection of Three Major Constants: Fine Structure Constant, Number Pi, and Golden Ratio,” www.laboratory.ru/articl/hypo/ax140e.htm. Mayer, Steve. “Mathematical Constants,” dspace.dial.pipex.com/town/way/po28/maths/constant.htm. Munafo, Robert. “The Published Data of Robert Munafo,” www.mrob.com/pub/index.html. In particular, see Robert’s pages on “Numbers and Large Numbers.” Also, see his sites, such as home.earthlink.net/~mrob/pub/math/numbers-10.html and home.earthlink.net/~mrob/pub/math/numbers.html.

References 385 brefs.qxd 5/13/05 12:27 PM Page 386

O’Connor, John J. and Edmund F. Robertson. “The MacTutor History of Mathematics Archive,” University of St. Andrews, Scotland, www-gap.dcs.st-and.ac.uk/~history/ or www-history.mcs.st-and.ac.uk/~history/index.html. Pe, Joseph. “JLPE’s Number Recreations Page,” www.geocities.com/windmill96/numrecreations.html. Peterson, Ivars. “MathTrek Cattle Problem,” www.maa.org/mathland/mathtrek_4_20_98.html. Schneider, Walter. “Recreational Mathematics,” www.wschnei.de/index.html Syvum Technologies, Inc. “Brain Teasers,” www.syvum.com/teasers/. Weisstein, Eric W. CRC Concise Encyclopedia of Mathematics, 2nd ed. New York: CRC Press, 2002. Also see Eric W. Weisstein, “MathWorld,” mathworld.wolfram.com/. Weisstein, Eric W. “Pi Formulas from MathWorld,” mathworld.wolfram.com/PiFormulas.html. Wikipedia Encyclopedia. www.wikipedia.org/. Wikipedia Encyclopedia. “Pi,” www.wikipedia.org/wiki/Pi.

386 References References

bindex.qxd 5/18/05 12:49 PM Page 387 About the Author

IndexIndex

Note: Many special kinds of numbers, such as rational, prime, or perfect, can be found under the index entry “numbers.” Special constants, such as the golden ratio (φ), Euler’s number (e), or pi (π), can be found under the index entry “constants.”

Adams, Douglas, 84, 244, 246 Bourbaki, N., 39, 287 Aeon, 244 Brahmagupta, 114 Agnesi, Maria, 27 Briffault, Robert, 63 AIDS, 219, 365 Brothers, Harlan, 76 Al-Battani, 131 Buddhist, 244 algebra, 113, 131 butterfly curves, 188 Alhazen, 281 Al-Khwarizmi, 131, 298 calculus, 30, 34–35, 283, 324 alphamagic squares, 180 Cantor, Georg, 24, 216, 237, 238, 276, 343, 378 Al-Samawal, 30 card arrangements, 217, 229, 364 amateur math, 182 cardinality, 47, 49 annihilation magic square, 180 casualty equations, 283 ant puzzle, 149, 160, 336 catenary, 142 antimagic square, 180 cattle problem, 245 Antoine, Louis, 291 Chalmers, David, 47 apocalyptic magic square, 181 chaos, 190, 333 Archimedes, 199, 245 chess, 143, 144, 145, 185, 195, 196, 197, 198, arebelos, 170 199, 217, 247, 356, 363 arithmetic progressions, 108 circles, 16, 146, 154, 159, 164, 165, 170, 172, arrangements, 213, 214 193, 203, 206, 270, 333, 340, 345, 346, 349, Asimov, Isaac, 83, 90 350, 366 attractors, 171,173, 189, 348, 349 circular permutations, 213 coin tosses, 211, 227, 228, 358, 371, 374 Babbage, Charles, 24 coincidence, 36, 90, 92, 98, 101 Bakhshali problem, 128, 325 combinatorics, 213, 215 Barber paradox, 240 Constantine window puzzle, 203, 358 Barrow, John, 268 constants base, 50 0.065988 . . ., 90 Battles, Zachary, 291 0.692200 . . ., 90 Beal reward, 32 1.506592 . . ., 90 Benford’s law, 211 1.92878 . . . (β), 97 Billion, 47, 293 Apery’s, 90, 375 Bloch, André, 270 Brun’s, 93 Boll, David, 87 Chaitin (Ω), 77 Boltzman, Ludwig, 287 Champernowne, 59, 296 book towers, 169, 348 coincidental, 90 Boole, George, 18 Copeland-Erdös, 60, 296 Borromean rings, 171 Euler-Mascheroni (γ), 77, 104

387 bindex.qxd 5/13/05 12:32 PM Page 388

constants (continued) Euler, Leonhard, 18, 30, 33, 52, 77, 80, 83, 85, 96, Euler’s gamma (γ), 77, 104, 130 98, 103, 105, 120, 137, 185, 281, 290, 375 Euler’s number (e), 52, 53, 55, 58, 76, 82, 83, even number, 47, 77 86, 87, 90, 92, 101, 102, 104, 106, 117, 123, exponential growth, 126, 324 127, 142, 143, 178, 281, 292, 295, 296, 303, 324, 330, 352 factors, 100, 229 fine structure (α), 86, 87 Fermat, Pierre de, 32, 187, 270 golden ratio (φ), 80–82, 86, 95, 104, 105, 143, Fermat numbers, 59 198, 331 Fermat spiral, 169 infinite power tower, 90 Fermat’s Last Theorem, 120 Landau-Ramanujan (K), 101 Feynman, Richard, 87 Liouville, 58, 294, 296 Fibonacci, 49, 50, 66, 71, 73, 95, 98, 107, 212, Mandelbrot, 90 303, 307 Mill’s (a), 98 fifteen puzzle, 147, 333 pi (π), 16, 29, 31, 35, 47, 52, 53, 55, 58–60, fine structure constant (α), 86, 87 62, 72, 75, 76–78, 80–92, 101, 102, Ford froth, 163 104–106, 109, 143, 147, 182, 272, 281, 286, Fourier, Jean, 279 292, 293, 295, 296, 299, 300, 301, 308, fractals, 85, 87, 90, 155, 163, 175, 188, 190, 191, 310, 330 194, 267, 341, 347 Thue, 60, 296 caves, 175 continuity, 166, 346, 347 drums, 194 continuum, 48 Fractal Murders, The (novel), 42 continuum hypothesis, 237 geese, 190 continuum puzzle, 151, 338 swords, 194 Conway, John, 57, 77, 93, 94, 185, 229 Funnel of Zeus, 380 counting, 13, 16, 19, 235, 270, 273 counting and animals, 273 Gabriel’s horn, 380 crescent puzzle, 145, 146, 332, 333 Galois, Évariste, 382 gambling, 211 Dase, Johann, 31 game shows, 37, 287 decimation, 375 Gamm, Rüdiger, 21 derivatives, 324 Ganson, Mark, 89, 107, 365 Descartes, René, 24, 132 Gardner, John, 275 dice, 222, 368 Gardner, Martin, 94, 162, 183, 219, 267, 290, 291 Diderot, Denis, 30 Gauss, Carl Friedrich, 17, 237, 300 Diopantus, 274 gears, 164, 345 doomsday equation, 127 Gell-Mann, Murray, 8 Dudeney, Henry, 176, 177, 178, 186, 352 geometry, 135–209 Dürer, Albrecht, 179 Germain, Sophie, 27 dynamical systems, 348 Go, 244 Dyson, Freeman, 40, 41, 114, 248 Göbel’s sequence, 241 Gödel, Kurt, 22, 41, 248, 274, 275, 285 Earls, Jason, 107 Gödel’s theorem, 275 education, 43 Golay-Rudin-Shapiro Sequence, 79 Edwards, Anthony, 140 Goldbach conjecture, 59 Ehrenfest, Paul, 5 Golygon, 144, 330, 331 Einstein, Albert, 24, 26, 27, 40, 42, 287 googol, 69 Elkies, Noam, 120 googolplex, 236 ellipses game, 174, 351 Gosper, William, 85 entropy, 106 graph theory, 137 epitaphs, 39 grasshopper sequences, 68, 305 Erdös, Paul, 18, 26, 33, 51, 65, 69, 72, 246, 272, greatest common divisor, 335 306 Greek notation, 31 Eschergram, 351 Grim, Patrick, 155, 341 Euclid, 187 group theory, 282 388 Index bindex.qxd 5/13/05 12:32 PM Page 389

Grünbaum, Branko, 139 Königsberg bridges, 137 Guberlet, Constantin, 49 Kronecker, Leopold, 51 Guy, Richard, 94, 229 L’Hôpital, Gillaume de, 35 Hales, Thomas, 4 Lagrange, Joseph, 35, 98 Hamburger, Peter, 139 Lanchester, F., 283 Hankel, Hermann, 33 large law, 235 Harborth configuration, 192 Latin squares, 336 Hardy, G. H., 2, 23, 142, 143, 241, 247, 267, 273, lattice numbers, 196, 355 291, 306 Lego sequence, 65, 303 harmonic series, 103, 119, 130, 132, 326, 327 Leibniz, Gottfried, 22, 34, 36, 283, 293 Heisenberg Uncertainty Principle, 82 license plates, 16, 36, 271 Heisenberg, Werner, 4 limit, 167, 348 helical curves, 188 Liouville, Joseph, 58 Heron’s problem, 173, 350 lituus, 187 heterosquares, 150, 338 Lobachevsky, Nikolai, 36, 144 hexagonal cutting, 165 Lorenz attractor, 189 hex-congruent primes, 100 lost in hyperspace, 150, 337 Hilbert, David, 33, 101 Lotka-Volterra equations, 283 hoax, 90, 310 love formulas, 129 Hoëné-Wronski, Josef, 32 Lovelace, Ada, 280 Honaker, G. L., 99, 108, 109 lowest common multiple, 318 Hypatia, 275 loxodrome, 170 hypercubes, 192, 194 Loyd, Sam, 7, 113, 114, 115, 145, 146, 147, 311, hyperpower towers, 123 312, 313, 333 hyperpyramids, 195 lute of Pythagoras, 204, 331 hyperspheres, 193, 375 lyrics, song, 286 Ikeda attractor, 348 MacArthur awards, 41, 48 infinite product, 103 magic circles, 165, 345 infinite series, 102 magic spheres, 166, 346 infinity, 26, 233, 237, 239, 240, 241, 244, 379, magic squares, 56, 57, 150, 153, 154, 179–184, 381 195, 294, 337, 340 infinity keyboard, 381 Mahavira problem, 127, 324 infinity symbol, 25 Mandelbrot set, 85, 87, 90, 188, 191, 267, 268 James, William, 291 map coloring, 207 Jeans, James, 17 map projections, 361 Jefferson, Thomas, 204 mathematicians Jerusalem crystal puzzle, 205 blind, 42, 290 Jesus, 61, 298 epitaphs, 39, 287 jeweler’s puzzle, 116 first, 37 Jews, 35, 286 homosexual, 26, 273 Jacobs, Bobby, 34 madness and creativity, 14, 23, 26, 39, 276, 279 Johnson functions, 198 mirror phobic, 273 Johnson’s theorem, 317 murdered, 275 Jordan curves, 160, 344 murderers, 25, 270, 277 Number Pope, 23 Kaczynski, Ted, 277 prolific, 28, 33 Kalman, Rudolf, 106 religious, 14,15, 17, 18, 20–24, 37, 38, 281 Kama Sutra puzzle, 125, 323 savants, 21, 31, 34 Kant, Immanuel, 14 starving, 274 knight placement, 197, 198, 356 women, 22, 26, 27, 28, 275, 279, 280 knights tours, 185, 186, 195, 196, 197 mathematics Knuth, Donald, 20, 94, 236, 377 beauty, 13, 255 Koch curve, 166, 347 computers, 4 Index 389 bindex.qxd 5/13/05 12:32 PM Page 390

mathematics (continued) numbers dreams, 15 153, 68–69, 305 education, 43, 279, 291 216, 286 game shows, 37 666, 74, 75, 90, 91, 92, 109 God and religion, 3, 14, 15, 17, 18, 23–25, 27, abundant, 296 28, 30, 31, 33, 34, 50, 74, 80, 83, 143, 235, algebraic, 48, 54 238, 270, 276, 277, 285, 288 almost integers, 85, 87, 90, 310 Jews, 35, 73, 286 amenable, 88 mind, 4 amicable, 93 movies, 22, 26, 35, 36, 93, 276, 286, 287 apocalypic Fibonacci, 73 nature and cosmos, 8, 13, 30, 42, 50, 52, 84, Armstrong, 305 162, 183, 198, 223, 247–249, 284, 289, asankhyeya, 243 356 augmented primes, 61, 297 novels, 42 automorphic, 280, 303 plays, 40 Baxter-Hickerson prime, 109 predictive power, 8 billion, 47, 293 proofs, 4 biquaternions, 48, 57 reality, 13, 30, 40, 41, 43, 220, 226, 229, 249, cardinal, 47, 49, 276 267, 284, 289, 291 catalan, 71 real world, 8 complex, 48, 53, 54, 95 simultaneity, 36 composite, 51, 96 Matrix, The, 2, 36, 287 congruent primes, 99, 100 maze, 161, 214, 215, 344, 361 continued fractions, 75, 330 Mersenne, Marin, 18 coprime, 75, 91 Mersenne numbers, 19 cube, 91–93, 119, 310, 311, 318 mirror magic squares, 182 cyclic, 89 mirror phobia, 19, 273 decillion, 236 Mittag-Leffler, Gösta, 288 diagram, 48, 54 Möbius strip, 199 emirp, 73 Modulor, The, 2 Erdös-Moser, 246 molecule puzzle, 202, 357 even, 47, 293 Mondrian puzzle, 142 exclusionary squares, 60, 297 monkeys typing Hamlet, 211, 359 factorial, 92, 104, 247 moon puzzle, 145, 146, 332, 333 factorions, 68, 305 Morin, Bernard, 290 father prime, 89 Morse code, 301 Fibonacci, 49, 50, 66, 71, 73, 95, 98, 107, 212, Morse-Thue sequence, 302 303, 312 Moskowitz, Paul, 371 Fibonacci prime, 98 multiplication principle, 213 fractions, 48, 115, 313, 330 murder, 270 fragile fractions, 115, 313 Göbel’s, 241 Newton, Isaac, 14, 17, 29, 30, 34, 35, 36, 281, googol, 69 283, 287 googolplex, 236 Nobel Prize, 40, 286 Graham’s, 377 Nobl, George, 119, 317 Hamiltonian integers, 48, 55 Noether, Emmy, 27 hex-congruent primes, 100 nontransitive dice, 222, 368 hypercomplex, 48, 54, 55 notation hyperfactorial, 92 good notation, 169 hyperimaginary, 201 Greek, 31 hyperpalindion, 107 bases, 50 hyperpower towers, 123 Knuth, 236, 377 hyperreal, 48, 95 Pochhammer, 106 integers, 47, 48, 49, 51, 58 See also symbols irrational, 48, 54, 70, 72, 307, 309, 343 Number Pope, 23 isoprimes, 60, 97, 297 390 Index bindex.qxd 5/13/05 12:32 PM Page 391

kinky, 242 vigintillion, 236 large, 234 Wilson prime, 97 legion’s, 109 zebra, 102 leviathan, 243 zero-free, 109 Mersenne, 19 number theory, 49 narcissistic, 305 natural, 48, 54 osculatory packing, 350 nimbers, 48, 57 novemdecillion, 236 Pagels, Heinz, 113 obstinate, 62, 300 Pappus’s Arbelos, 170 octonions, 48, 55, 57 parabolic spiral, 169 ordinal, 276 paradoxes, 58, 240, 248, 295 p-adic, 95 parallel universes, 31, 284 palindions, 107 paraskevidekatriaphobia, 309 palindromes, 70, 71, 92, 107, 307 Pascal, Blaise, 14, 15, 36, 71, 270 palindromic primes, 97, 108, 109 Pascal’s triangle, 71 palinpoints, 66, 304 Pe, Joseph, 66, 86, 271, 326 perfect, 73, 74, 240 pendulums, 190 prime, 19, 49, 50, 51, 60, 61, 74, 75, 77, 78, Penrose, Roger, 267 79, 80, 83, 86, 88, 89, 92, 93, 96, 97, 98, 99, pentagonal numbers, 302 100, 103, 104, 108, 109, 110, 183, 184, 297, pentagram, 198 303, 304, 311 permutations, 213, 215 primorial prime, 92 Perrin sequence, 306 pyramidal, 67 persistence, 304 quaternions, 48, 54, 55 pi (π) quattuordecillion, 236 pi, living in digits, 62, 299 radicals, 48, 96, 103, 106, 143, 282 pi-magic squares, 182 rational, 19, 47, 53, 104, 120, 129, 237, 284, pi-palindromic prime, 109 318, 343, 378 See also constants, pi real, 47, 48, 379 Pincus, Steve, 106 relatively prime, 75, 91 Pisa puzzle, 113, 311 repunit primes, 297 Platonic patent, 200 Roman, 40 Platonic solids, 154, 341 round, 99 plays, 40 scalar, 54 Pochhammer notation, 106, 107 sedenions, 48, 55, 56 polyhedreal universe, 356 sextillion, 236 Pontryagin, Lev, 290 skewes, 241 Pope Sylvester II, 23 Sophie Germain prime, 98 Poussin proof, 78 square, 68, 70, 92, 98, 297, 307, 310 prime numbers. See numbers, prime star-congruent primes, 99 prime magic square, 183, 184 superfactorial, 247 probability, 209–232 surreal, 48, 93, 94 proofs, 4 taxicab, 58, 295 Pythagoras, 24, 37–39, 277 transcendental, 48, 53–55, 58, 295, 296 Pythagoras, lute, 204, 331 transfinite, 47, 276 Pythagorean triangle, 187, 303 transionic, 248 triangular, 78, 91, 92, 304 quadratix of Hippias, 192 twin primes, 93 ultrahex, 235, 376 radicals, 48, 96, 103, 106, 143, 282 undulating, 50, 62, 80, 300, 305 Ramanujan, Srinivasa undulating primes, 80 formulas, 76, 82, 85, 100–106, 295, 310 untouchable, 65, 303 life and philosophy, 2–3, 15, 16, 42, 99–101, vampire, 303 108 vibonacci, 107 plays, 40 Index 391 bindex.qxd 5/13/05 12:32 PM Page 392

random chords, 366 ÷, 20 random selection, 293–294 > and <, 22 reality, 13, 30, 40, 41, 43, 220, 226, 229, 249, ≥, 22 267, 284, 289, 291 ! (factorial), 40 Ribenboim sequence, 68 ∞, 25, 278 Rice, Marjorie, 182 √ , 25 Riemann hypothesis, 130 e, 281 Riemann zeta function, 103, 375 T, 47, 276 Riemann, Georg, 21, 130 π, 265, 292 Rivera, Carlos, 74, 84, 109 calculus, 35 Roman numerals, 40, 289 numbers, 32, 34 rope puzzle, 153 power notation, 24 Rubik’s cube, 216, 246 variables, 132 Rupert puzzle, 178, 353 synchronicity. See also coincidence Russell, Bertrand, 18, 141, 169, 248 talisman square, 154, 340 Safford, Truman, 34 tea puzzle, 115, 313 St. Denis, Paul, 155, 341 teacher puzzle, 114, 312 Sallows, Lee, 180 Tegmark, Mark, 247, 284 sangaku geometry, 201 Thébault construction, 173 Saunderson, Nicholas, 290 tic-tac-toe, 25, 141–143, 145, 155, 211, 223, 278, savants, 21, 31, 34 341, 368 Scherk’s surface, 174 Tinkertoy computer, 24 Schmidhuber circles, 206 toilet paper, 144, 162 Schoenberg curves, 173, 175 Tolstoy, Leo, 92 Schrödinger’s wave equation, 40 tori, 145, 146, 332 series Torricelli’s trumpet, 380 indefinitely divergent, 131 transfinite numbers, 47 geometric, 312 triangle of Gods, 61, 298 slow-growing, 120 Tritar, 201 See also harmonic series set theory, 51 Unabomber, 261 seven, 74 Urantia, 34 Shandy paradox, 248 Sierpinski, Waclaw, 57 Vampire numbers, 303 sign language, 62, 300 Venn diagrams, 138–140, 328 simultaneity, 36. See also coincidence Viswanath, Divakar, 107 Soler, Cyril, 90 Vos Savant, Marilyn, 289 space-filling curves, 175 spirals, 81, 169, 171, 187, 188 Wafa, Abu’l, 130 star, 198 Wallis, John, 278 star-congruent primes, 99 war, 185 Stirling’s formula, 104 Wigner, Eugene, 42 stomachion, 199 Wilson’s theorem, 96 Streisand, Barbra, 93 Wither’s attractor, 173 string theory, 70 students, 134 Yates, Samuel, 100 stylometry, 229, 375 Yuki Pomo, 50 Sumerians, 50, 270 symbols (history of) zenogram, 177 +, 13, 29 zero, 47 –, 13 zeta function, 103, 375

392 Index babout.qxd 5/13/05 12:38 PM Page 393 References

AboutAbout thethe AuthorAuthor

Index

Clifford A. Pickover has a passion for mathematics. He received his Ph.D. from Yale University’s Department of Molecular Biophysics and Biochemistry. He graduated first in his class from Franklin and Marshall College, after completing the four-year undergraduate program in three years. His many books have been translated into Italian, French, Greek, Spanish, German, Japanese, Chinese, Korean, Portuguese, Polish, and more. One of the most prolific and eclectic authors of our time, Pickover is the author of these popular books: Sex, Drugs, Einstein, and Elves, Calculus and Pizza, The Mathematics of Oz, Zen of Magic Squares, Cir- cles, and Stars, The Paradox of God and the Science of Omniscience, The Stars of Heaven, Dreaming the Future, Wonders of Numbers, The Girl Who Gave Birth to Rabbits, Surfing through Hyperspace, The Science of Aliens, Time: A Traveler’s Guide, Strange Brains and Genius: The Secret Lives of Eccentric Scientists and Madmen, The Alien IQ Test, The Loom of God, Black Holes—A Traveler’s Guide, and Keys to Infinity. He is also the author of numerous other highly acclaimed books, including Chaos in Wonderland: Visual Adventures in a Fractal World, Mazes for the Mind: Computers and the Unexpected, Computers and the Imagination, and Computers, Pattern, Chaos, and Beauty, all published by St. Martin’s Press—as well as the author of more than 200 articles concerning topics in science, art, and mathematics. He is the coauthor, with Piers Anthony, of Spider Legs, a science-fiction novel, as well as the author of the popu- lar “Neoreality” science-fiction series (Liquid Earth, Sushi Never Sleeps, The Lobotomy Club, and Egg Drop Soup) in which characters explore strange realities. Pickover is currently an associate editor for the scientific journal Computers and Graphics and is an editorial board member for Odyssey, Leonardo, and YLEM.

393 babout.qxd 5/13/05 12:38 PM Page 394

Dr. Pickover’s primary interest is finding new ways to continually expand creativity by melding art, science, mathematics, and other seem- ingly-disparate areas of human endeavor. The Los Angeles Times recently proclaimed, “Pickover has published nearly a book a year in which he stretches the limits of computers, art and thought.” OMNI magazine described him as “Van Leeuwenhoek’s twentieth century equivalent.” Scientific American several times featured his graphic work, calling it “strange and beautiful, stunningly realistic.” Wired magazine wrote, “Bucky Fuller thought big, Arthur C. Clarke thinks big, but Cliff Pick- over outdoes them both.” Among his many patents, Pickover has received U.S. Patent 5,095,302 for a 3-D computer mouse; 5,564,004 for strange computer icons; and 5,682,486 for black-hole transporter interfaces to computers. Dr. Pickover is currently a research staff member at the IBM T. J. Watson Research Center, where he has received forty invention achieve- ment awards and three research division awards. For many years, Dr. Pickover was the lead columnist for Discover magazine’s “Brain-Bog- gler” column, and he currently writes the “Brain-Strain” column for Odyssey. Dr. Pickover’s hobbies include the practice of Ch’ang-Shih Tai-Chi Ch’uan and Shaolin Kung Fu, raising golden and green severums (large Amazonian fish), and piano playing (mostly jazz). He is also a member of the SETI League, a group of signal-processing enthusiasts who sys- tematically search the sky for intelligent extraterrestrial life. Visit his Web site, which has received over a million visits: www.pickover.com. He can be reached at P.O. Box 549, Millwood, NY 10546-0549, USA.

394 About the Author