Tuesday, 14 August 2018

On Descartes Numbers



A number is said to be Perfect if it is equal to the sum of its proper positive factors, i.e. the sum of its factors excluding the number itself.  Summing all of the factors of a number \(n\) — i.e. including the number \(n\) itself — is known as the sum-of-divisors function:

\[\sigma \left( n \right) = \sum\limits_{d\left| n \right.} d \]
A number \(n\) is thus said to be Perfect when \(\sigma \left( n \right)\) = 2n.  For example, the factors of 28 — 1, 2, 4, 7, 14 and 28 — sum to 28 + 28 = 56, thus \(\sigma \left( {28} \right)\) = 2 \(\times \) 28 and so 28 is a Perfect number.  In contrast, and by way of illustration, the factors of 42 — 1, 2, 3, 6, 7, 14, 21 and 42 — sum to 96, or 2.2857... \(\times \) 42, thus \(\sigma \left( {42} \right) \ne\) 2 \(\times \) 42 and so 42 is not a Perfect number.  In fact, 42 is said to be an Abundant number because the sum of its proper positive divisors is greater than the number itself, i.e. \(\sigma \left( n \right) > 2n\).  When the sum of a number's proper positive divisors is less than the number itself, i.e. \(\sigma \left( n \right) < 2n\), the number is said to be Deficient.  For example, the factors of 50 — 1, 2, 5, 10, 25 and 50 — sum to 93, or 1.86 \(\times \) 50, and thus \(\sigma \left( {50} \right)\) < 2 \(\times \) 42.  As such:

\[\begin{array}{l}\sigma \left( n \right) < 2n \Rightarrow n\;{\rm{is}}\;{\rm{deficient}}\\\sigma \left( n \right) = 2n \Rightarrow n\;{\rm{is}}\;{\rm{perfect}}\\\sigma \left( n \right) > 2n \Rightarrow n\;{\rm{is}}\;{\rm{abundant}}\end{array}\]
Perfect numbers have intrigued us since Euclid, who observed via Proposition 36 in Book IX of his Elements that a number of the form (2\(^{p - 1}\))(2\(^p\) − 1) is a perfect number whenever 2\(^p\) − 1 is prime (i.e. what subsequently became known as a Mersenne prime) [1].  The fact that every even perfect number is of this type, i.e. that every even perfect number can be written in the form (2\(^{p - 1}\))(2\(^p\) − 1) whenever 2\(^p\) − 1 is prime, was proposed by René Descartes in his famed correspondence with Marin Mersenne (specifically in his letter to Mersenne of 15 November 1638) [2], and later proven in 1849 by Leonhard Euler [3].  Descartes was, indeed, 'among the first to consider the existence of odd perfect numbers' (Greathouse and Weisstein, 2012).

As of writing, of the fifty perfect numbers that have been found, all are even, and it is not known if there are infinitely many or, indeed, whether any odd perfect numbers exist — although Pascal Ochem and Michaël Rao showed (2012) that no number up to 10\(^{1500}\) is an odd perfect number.

One number has been found, however, that would have been an odd perfect number if only one of its factors was prime rather than a 'spoof prime' (i.e. a composite number wrongly assumed to be prime).  This number — 198,585,576,189 — was found in 1638 by Descartes, documented in his 15 November letter to Mersenne, and is known as a Descartes Number, or, as an 'odd spoof perfect number' (note that the spoof prime in question is 22021, i.e. 19\(^2\) \(\times \) 61).

\[198,585,576,189 = {3^2} \times {7^2} \times {11^2} \times {13^2} \times 22021\]
Descartes showed that if 22021 was prime, the proper factors of 198,585,576,189 [4] would sum to 198,585,576,189 — making it the only odd perfect number ever found.  As it is, because 22021 is not prime, or because 22021 is a spoof prime, the proper factors of 198,585,576,189 do not sum to 198,585,576,189 (they actually sum to 227,441,894,589).  This makes 198,585,576,189 an odd spoof perfect number, which in itself is the only such number ever found!

To elaborate: Descartes showed that an equivalence to the sum-of-divisors function using the prime factorisation of a number is the following [5]:

\[\sigma \left( n \right) = \prod\limits_{{p^a}\left\|{\;n} \right.} {\frac{{{p^{a + 1}} - 1}}{{p - 1}}} {\rm{ }}\]
where \(p\) is a distinct prime factor.  This means that a number's factors can be summed using only the number's prime factors.  Taking 28 again as an example, we have seen that it is a perfect number because

\[\sigma \left( 28 \right) = \sum\limits_{d\left| 28 \right.} d  = 1 + 2 + 4 + 7 + 14 + 28 = 56 = 2n\]
We can also observe this result using the prime factors of 28, i.e. 2\(^2 \times \) 7:

\[\prod\limits_{{p^a}\left\|{\;n} \right.} {\frac{{{p^{a + 1}} - 1}}{{p - 1}}}  = \frac{{{2^{2 + 1}} - 1}}{{2 - 1}} \times \frac{{{7^{1 + 1}} - 1}}{{7 - 1}} = \frac{7}{1} \times \frac{{48}}{6} = 56 = 2n\]
And so, similarly, the sum of the divisors of Descartes' number:

\[\begin{array}{c}\begin{align}\sigma \left( 198,585,576,189 \right) &= \prod\limits_{{p^a}\left\| {\;n} \right.} {\frac{{{p^{a + 1}} - 1}}{{p - 1}}} \\ \\&= \frac{{{3^{2 + 1}} - 1}}{{3 - 1}} \times \frac{{{7^{2 + 1}} - 1}}{{7 - 1}} \times \frac{{{{11}^{2 + 1}} - 1}}{{11 - 1}} \times \frac{{{{13}^{2 + 1}} - 1}}{{13 - 1}} \times \frac{{{{22021}^{1 + 1}} - 1}}{{22021 - 1}}\\  \\&= 13 \times 57 \times 133 \times 183 \times 22022\\ &= 13 \times \left( {3 \times 19} \right) \times \left( {7 \times 19} \right) \times \left( {3 \times 61} \right) \times \left( {2 \times 7 \times 11 \times 11 \times 13} \right)\\ &=2 \times {3^2} \times {7^2} \times {11^2} \times {13^2} \times \left( {{{19}^2} \times 61} \right)\\ &= 2 \times {3^2} \times {7^2} \times {11^2} \times {13^2} \times 22021\\ &= 2 \times 198,585,576,189\end{align}\end{array}\]
Hence, if 22021 were prime rather than 19\(^2\) \(\times \) 61, Descartes' number 198,585,576,189 would  be an odd perfect number because \(\sigma \left( n \right)\) = 2n.



Notes, References & Links:

Wednesday, 11 July 2018

Calendar of Mathsy Moments 2018-2019

The calendar of mathsy 'moments' (downloads provided below) is a calendar marking at least one mathsy 'moment' (or event) of interest for each day from 1 August 2018 to 31 December 2019.  It is primarily intended for schools and teachers to use in gentle cultivation of a respectful yet intellectually playful approach to mathematics in their students, in support moreover of the development of students' deeper and perhaps wider appreciation and framing of mathematics in the historical, cultural and intellectual sense.

The calendar is shared to help teachers establish and cultivate an ethos of mathematics as progress in the classroom, to help teachers in other words help their students develop and sustain happy and fulfilling relationships with their mathematics, encouraging the desire to explore further, deeper, and more independently — fuelling students' curiosity and their capacity for such.  It is hoped that in sharing these brief moments of mathematics with students, in unabashedly celebrating the joy that is to be found in mathematics, teachers will fulfil their roles as enthusiasts, advocates and celebrators of mathematics, both as an intellectual discipline and cultural artefact, and students will in turn stand a greater chance that the subject will inspire — rather than beguile — them.

The calendar is provided below for access from this page.  Downloads in a range of formats are also provided for easy import.  Each 'moment' is outlined in more detail within the description / notes section of each calendar entry, which may serve as a prompt for the teacher with respect to how s/he may use / share it, if at all.  Where applicable, links to sources, and other sources of information — including online articles, historical artefacts, videos, podcasts, etc. — are provided within each description as a start for further exploration, as desired.

The moments are categorised within the calendar as follows:
  • Moments / Events occurring at various times throughout the year (note that a 'Day' relates to the day of the year, e.g. 14 March 2019 is the 73rd day of the year, and so a curio about 73 may be given.  A 'Date' relates to the date as a concatenated number, in dd/mm/yyyy format unless otherise indicated, e.g. 14 March 2019, the 14th day of the 3rd month in the 2019th year, 14/3/2019, which concatenates to 1432019).  These moments include:
    • Prime Number Dates, Mathematicians' Birthdays, Historical Dates to note in Mathematics, Circular Prime Number Dates, Emirp Dates, Frustrating Prime Number Dates, Days for Curious Calculations, Days for Number Facts, Palindromic Number Dates, Palindromic Prime Number Days, Pi Dates, et al.
    • The 'Day for a Number Fact' days aims to feed our natural love of numbers (or perhaps revitalise it), exposing students to — or maybe tantalising them with — a wide range of more exotic sounding mathematics from number theory that they may not ordinarily come across in their day to day curriculum.  For example, in sharing such moments students will know of: good primes, home primes, long primes, Sophie Germain primes, Ramanujan primes, Fibonacci primes, near-repdigit primes, quadruprimes, prime triplets, prime sums, primes that remain prime when added to their reverse, circular primes, emirps, permutable primes, near primorial primes, palindromic primes, dihedral primes, twin primes, sexy primes, numbers commonly assumed incorrectly to be prime, semiprimes, sphenic numbers, other prime products, unprimeable numbers, happy numbers, sad numbers, distinctly happy numbers, perfect numbers, superperfect numbers, pseudoperfect numbers, weird numbers, abundant numbers, deficient numbers, almost integers, duck-duck-goose numbers, Mersenne numbers, lucky numbers, amicable numbers, polite numbers, sociable numbers, automorphic numbers, narcissistic numbers, odious numbers, pernicious numbers, evil numbers, practical numbers, arithmetic numbers, polygonal numbers, undulating numbers, telephone numbers, antisigma numbers, highly composite numbers (or anti-primes), refactorable numbers, taxicab numbers, tetranacci numbers, vampire numbers, untouchable numbers, Bell numbers, Euclid numbers, Franel numbers, Frobenius numbers, mountain numbers, star numbers, Smith / Joke numbers, Friedman numbers, the divisor (factor) function, the partition function, Jacobi's formula, Aronson's sequence, Fibonacci factorials, Euler's 6n+1 theorem, repdigits, primorials, subfactorials, double factorials, superfactorials, hyperfactorials, trees, Golomb's sequence, numbers in different bases, etc.
  • Moments / Events occurring once in the year (including some national or globally recognised awareness days with particular reference to mathematics).  These moments include:
    • A Perfect Day, An Anti-Perfectt Day, Ada Lovelace Day, e day (Europe and US), Fibonacci Day (US), Half Year Day, Halloween (Vampire Numbers), Mathematics and Statistics Awareness month, McNugget Numbers Day, National Numeracy Day, Phi Day, Phi Day (US), Pi Approximation Day, Pi Day, Root-2 Date, Spreadsheet Day, The Golden Ratio Moment, The Oddest Prime Day, et al.
    • Other Moments / Events not directly related to mathematics (that schools / teachers may nonetheless wish to mark, either because of the mathematics latent within them, or for other more school-centred reasons around values, community and relationships).  These moments include: 
      • Ask A Stupid Question Day, Autumnal Equinox, Black History Month, Book Lovers' Day, European Day of Languages, International Joke Day, International Women's Day, Make Up Your Own Holiday Day, National Coding week, National Poetry Day, National Read a Book Day, National School Nurse Day, National Teaching Assistant's Day, Origami Day, Random Act of Kindness Day, Roald Dahl Day, Space Day, Summer Solstice, Vernal Equinox, Winter Solstice, World Book Day, World Kindness Day, World Music Day, World Teachers' Day.


    Mathsy Moments calendar
    (Click here to go back to the top)
    There are and will be, of course, many other 'moments' that could and maybe should be included in such a calendar.  I make no claim that the calendar offers anything comprehensive.  If there are other 'moments' that you think other teachers may enjoy sharing with students, please let me know in the comments and I will update in subsequent versions.  Equally, whilst every effort has been taken to eliminate errors, if users notice any error in the content of the calendar, I would be very grateful if you could again let me know in the comments.




    GCSE Maths 2019 Countdown calendar
    (Click here to go back to the top)
    This calendar gives a daily countdown to GCSE mathematics exams, both in terms of days left and school days left.  It is intended as a support for teachers to help students (and their families) manage their own study time.






    Further sources
    Sources of information (or explanation), where applicable, have been provided in link form in the description of each moment / event.  If you wish to play further, explore the following sites:


      Tuesday, 1 May 2018

      On Mountain Numbers



      Cairn Toul, a beautifully wild and remote mountain in the Cairngorms massif of the eastern Scottish highlands, is notable not only for being the fourth highest mountain in the UK, but also for being the only mountain in the UK whose elevation in metres — 1291m above sea level — is also a 'mountain'.  Großglockner, by way of a further example, the highest mountain in Austria, is a mountain whose elevation in feet — 12461ft above sea level — is also a 'mountain'.

      To elaborate: A number is a 'mountain' if its decimal digits start with 1, i.e. 'base camp', ascend continuously to a unique summit, i.e. to one largest digit, then descend continuously back to 1, i.e. back to base camp.  Such mountain numbers are recorded as sequence A134941 (itself a mountain) in the On-line Encyclopedia of Integer Sequences (OEIS), from which you can also find this table of all possible 21,846 mountains (including 1 itself).

      Mountain primes, as the name suggests, are prime mountain numbers, prime numbers in other words whose decimal digits start with 1, ascend continuously to the summit of a single largest digit, then descend continuously back to 1.  (The area chart image above shows a mountain range of the first 17 such numbers.)  Mountain primes are recorded in the OEIS as sequence A134951 (yes, also a mountain prime), from which you can find this table of all 2620 such primes.

      When climbing a mountain, it is typical to descend back to base camp, i.e. back to where you started your ascent, but it is not always the case.  Mountain numbers that ascend from one location (as an elevation) but descend to another — e.g. 3,598,432 — are considered to be generalised mountain numbers, recorded as sequence A134853 in the OEIS (there are 173,247 such mountains).



      Suggested explorations, diversions & links:
      • Explain why there must be a finite number of mountain numbers.
      • Construct a mountain range diagram for mountains of your choice.
      • What is the Everest of mountain numbers?
        • How will you define 'Everest'; how will you define 'elevation'?  (In the image above, the 'height' of mountain 1291, for example, is greater than the 'height' of mountain 1571.)  
      • Explore the distribution of mountain number digits, i.e. how many mountains have 1 digit, 2 digits, 3 digits, etc. (OEIS sequence A135417).
      • If we regard the number of digits in a mountain number as the horizontal distance travelled when climbing such a mountain:
        • What mountain(s) has (have) the shallowest ascent?
        • What mountain has the steepest ascent and descent?
        • What about generalised mountains?
      • Many people find the most beautiful mountains to be those most pyramidal in shape, such as for example the Matterhorn in the Alps and Machapuchare in the Himalaya.
        • Define and find your most beautiful mountain numbers: 
          • Palindromic mountain numbers perhaps (OEIS sequence A173070),
          • Or palindromic mountain prime numbers (the largest is 123467898764321).
        • Find all possible — i.e. 45 — Giza numbers.
          • Giza numbers are so-called because they represent the pyramids of Giza in the sense that their first digits increase in consecutive order to a largest central digit, and their last digits decrease in the same consecutive order as they increased.  
          • The largest Giza number is 12,345,678,987,654,321 (OEIS sequence A134810).
      • Of two mountain numbers chosen at random, what is the probability that their numerical heights — i.e. the magnitude of the number — will be in alignment with the elevation of actual mountains?  
        • For example, mountain number 1291 is 'higher' than mountain number 1571, but as actual elevations, 1291m < 1591m, so these two mountains are not in 'alignment'. 
      • Find as many actual mountains whose heights are mountain numbers, or mountain primes.
        • What is the highest mountain in the world whose height is also a mountain (use metres and/or feet for the height)?


      Friday, 27 April 2018

      On Overheard Conversations About Maths #1





      S
      SCENE:     
      The floor.  Just before bedtime.
      Three siblings are islands in a sea of Lego.
      The eldest is trying to make a Lego Penrose triangle.


      3 YEAR OLD:

      (Silently counting the studs on a red 2 × 4 Lego brick,
      mouthing each number until, to no-one in particular...)

      Eight!

      (He opens up his thumb and fingers successively
      from the fist of one hand as he counts, this time out loud.) 
                             
      One, two, three, four, five...

      (Now to the other hand.)

      ...six, seven, eight.

      (Some time passes as he collects all the 2 × 4 bricks
      he can find, piles them together, and pretends to count them all.)

      A hundred!  A hundred is bigger than four.  Or five.  Or eight.


      6 YEAR OLD:

      It’s not as big as a million though.


      YEAR OLD:

      (With a nod to his Numberphile education...)

      Or Graham.


      YEAR OLD:

      Or ten.  Ten's bigger.


      YEAR OLD:

      No, a million's bigger than ten.  A hundred is bigger than ten.  A million is really big.


      YEAR OLD:

      Who's Graham?


      YEAR OLD:

      Infinity is bigger than Graham.  


      YEAR OLD:

      Nifity?


      YEAR OLD:

      No, infinity.  In-fin-ity.


      YEAR OLD:

      (Straining to speak; arms outstretched as wide as he can make them go.)  

      Is Nifity big like this?


      YEAR OLD:

      That’s not even a number.


      YEAR OLD:

      Nifity?


      YEAR OLD:

      Infinity.  In-fi-nity.  In-finity.  No, it’s not a number it just means the biggest thing.  People say it's a number but it's not because you could just say infinity plus one but that's still just infinity because...


      YEAR OLD:

      Infinity plus a hundred then.


      YEAR OLD:

      (Sarcastically.)

      Infinity plus infinity.


      YEAR OLD:

      Two times infinity.


      YEAR OLD:

      Duh, that's the same.  And it's still just infinity.


      YEAR OLD:

      (Quietly, in the ear of his 6 year old sibling.)

      Is Graham friendly?


      YEAR OLD:

      Infinity times infinity then.


      YEAR OLD:

      Do you even know what that means?  OK then, infinity times infinity infinity times.  It's still just infinity!  It's still...

      (Establishing the correct perspective
      from which to see the Lego Penrose triangle
      doesn't seem to matter quite as much right now.)

      Isn't it...?  Erm...


      YEAR OLD:

      Nifity?


      CURTAIN.



      Suggested explorations, diversions and links:

      What is infinity?
      • Share this typically accessible introduction to the idea of infinity from MathsIsFun.com.  (Play, for example, with the provocation 'An infinite series of A's followed by a B will NEVER have a B'.)  The page gently introduces infinity as 'the idea that something has no end', that doesn't grow, and subsequently moves into arithmetic properties and the exciting idea that there are different sizes of infinity.  

        Why does \(\infty  + 1 = \infty  + 100 = \infty  + \infty  = \infty  \times \infty  = \infty \)?

        We can (sometimes) add an infinity of numbers.

        Play around with infinite sums, starting perhaps with this article by Luciano Rila from Plus Magazine.   And consider, for example:
        \[\underbrace {1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ...}_\infty \]Or, to put it another way:
        \[\begin{array}{c}\begin{align}\sum\limits_{k = 0}^\infty  {\left( {\frac{1}{{{2^k}}}} \right)}  &= \frac{1}{{{2^0}}} + \frac{1}{{{2^1}}} + \frac{1}{{{2^2}}} + \frac{1}{{{2^3}}} + ...\\ &= \frac{1}{1} + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ...\end{align}\end{array}\]
        If we add up the first few terms (i.e. find the first few partial sums):
        \[\begin{array}{c}\begin{align}\frac{1}{1} + \frac{1}{2} &= 1\frac{1}{2}\\\frac{1}{1} + \frac{1}{2} + \frac{1}{4} &= 1\frac{3}{4}\\\frac{1}{1} + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} &= 1\frac{7}{8}\\\frac{1}{1} + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + \frac{1}{{16}} &= 1\frac{{15}}{{16}}\\etc.\end{align}\end{array}\]
        We can see that each iteration produces a number that gets closer and closer to 2.  We produce another infinite sequence in others words with a limit of 2, thus:
        \[\left\{ {1,\;1\frac{1}{2},\;1\frac{3}{4},\;1\frac{7}{8},\;1\frac{5}{{16}},\;...} \right\}\]
        And we can therefore show that the sum of infinite series is 2.  Say:
        \[\sum\limits_{k = 0}^\infty  {\left( {\frac{1}{{{2^k}}}} \right)}  = s = 1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ...\]
        Then:
        \[\begin{array}{c}\begin{align}\ 2s &= 2\left( 1 \right) + 2\left( {\frac{1}{2}} \right) + 2\left( {\frac{1}{4}} \right) + 2\left( {\frac{1}{8}} \right) + ...\\2s &= 2 + 1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ...\end{align}\end{array}\]
        And so:
        \[\begin{array}{c}\begin{align}\ 2s - s &= \left( {2 + 1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ...} \right) - \left( {1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ...} \right)\\s &= 2\end{align}\end{array}\]
        Thus:
        \[\sum\limits_{k = 0}^\infty  {\left( {\frac{1}{{{2^k}}}} \right)}  = 1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + ... = 2\]

        Friday, 9 March 2018

        On π




        Founded by San Fransisco's Exploratorium (a public learning laboratory), π-day[1] is celebrated on March 14th every year, because it is the 3rd month of the year, and 14th day of that month, and in the mm/dd format this is written as 3/14, or 3.14, which is π correct to two decimal places (or three significant figures) — meaning, of course, that the day should be more accurately referred to as Pi-To-Two-Decimal-Places day, or Pi-To-Three-Significant-Figures day! UNESCO also proclamated the day in 2020 as the International Day of Mathematics. It is a day for schools to unashamedly revel in a pure celebration of π and, by association, mathematics.

        I offer in this post therefore a few little somethings that teachers may wish to share with their students, a few little somethings moreover that teachers may want to delve deeper into and thus take further with their students, marking π-day in the spirit of celebration that it promotes. In addition, and in complement, schools and teachers may wish to carry out some Random Acts of Maths (download them here) over the course of the day, and perhaps hold a Favourite Number Election (find suggestions for use and download a ballot paper here). 



        Click here to jump to…




        Archimedes' Constant
        (Click here to return to the menu)

        Archimedes (c.287-212 BC) was the first to theoretically calculate π — i.e. the ratio of a circle's circumference to its diameter (he never used the symbol) — rather than estimate it. In proposition three of his ‘Measurement of the Circle’, Archimedes used a geometrical approach in which he repeatedly enclosed a circle by circumscribing it (i.e. constructing a regular polygon outside the circle) and by inscribing it (i.e. constructing a regular polygon inside the circle). Starting with a regular hexagon, Archimedes progressively doubled the number of sides of the polygon in order to approximate a circle with increasing accuracy (from 6 to 96 sides). He was thus able to prove that:

        \[\frac{{223}}{{71}} < \pi  < \frac{{22}}{7}\]
        Or, in mixed numbers:
        \[3\frac{{10}}{{71}} < \pi  < 3\frac{1}{7}\]
        Or, to six decimal places:
        \[3.140845 < \pi  < 3.\dot 14285\dot 7\]

        This 'method of exhaustion' continued to be used for many years, until the invention of calculus and the use of arctangents allowed us to find π to ever increasing numbers of decimal places. π was found to 100 decimal places in such a way by John Machin, as published in William Jones' 1706 book Synopsis palmariorum matheseos). The Archimedean 'method of exhaustion' was used most notably by German mathematician Ludoph van Ceulen in the 16th Century, who reached a regular polygon with 4,611,686,018,427,387,904 sides to arrive at a value of π correct to 35 digits, calculated, of course, by hand.

        Following Archimedes' approach with younger secondary students will enhance their appreciation of mathematics history, which in turn can positively influence their perception of mathematics, of what mathematics is, profoundly. For more on how the Archimedes' upper and lower bounds for π were found, see this video (17min) from Math Without Borders. With this interactive demonstration from the Wolfram Demonstrations Project, students can also explore how the upper and lower bounds for π change as the number of sides to the polygons change.




        The origin of the symbol for π as \(C/d\)
        (Click here to return to the menu)

        π was first used to denote the ratio of a circle's circumference to its diameter by Welsh mathematician William Jones in his 1706 book Synopsis palmariorum matheseosIn the same book, as mentioned above, π was shown to 100 decimal places, as 'computed', in Jones' words, 'by the Accurate and Ready Pen of the Truly Ingenious Mr. John Machin', using what has since become known as 'Machin's formula'. (See this this post for a little more on Jones' notation.) You can peruse the book electronically here, finding π (as C/d) for the first recorded time in history on p243, as extracted in the first image below, then more explicitly on p263, as extracted in the second image below.
























        π formulae
        (Click here to return to the menu)

        Many awe-inspiring formulae have been found for π, in exact or approximate, iterative forms.  Below is a small selection of some classics that may be interesting to explore with students, possibly comparing the relative accuracy of respective formulae and their relative rates of convergence.

        Viète's formula. François Viète published in 1593 what is commonly accepted to be the first instance of an infinite product known in mathematics.  It is derived by comparing the areas of regular polygons with 2n and 2n + 1 sides inscribed in a circle, and converges to π fairly rapidly. (Play with Viète's formula with this interactive Wolfram demonstration.)

        \[\pi  = 2 \times \frac{2}{{\sqrt 2 }} \times \frac{2}{{\sqrt {2 + \sqrt 2 } }} \times \frac{2}{{\sqrt {2 + \sqrt {2 + \sqrt 2 } } }} \times \frac{2}{{\sqrt {2 + \sqrt {2 + \sqrt {2 + \sqrt 2 } } } }} \times ...\]

        Wallis' product. John Wallis published this formula in his 1656 Arithmetica Infinitorum. Recently, Wallis' product was 'discovered,' quite incredibly, 'hidden in [the] hydrogen atom', as shared with the world through this paper — 'Quantum mechanical derivation of the Wallis formula for pi' — from the Journal of mathematical Physics, revealing a hitherto unknown and beautiful connection between mathematics and Physics. (Visualise Wallis' sieve approximation for π with this interactive Wolfram demonstration and watch this typically wonderful video from Grant Sanderson providing a 'new proof of the Wallis formula'.)

        \[\frac{\pi }{2} = \prod\limits_{n = 1}^\infty  {\left( {\frac{{2n}}{{2n - 1}} \times \frac{{2n}}{{2n + 1}}} \right)} \]Giving
        \[\frac{\pi }{2} = \frac{2}{1} \times \frac{2}{3} \times \frac{4}{3} \times \frac{4}{5} \times \frac{6}{5} \times \frac{6}{7} \times ...\]

        Newton's approximation. Sir Isaac Newton derived this formula in 1666, using it to calculate π to 16 places 'using 22 terms of the series' (in Pickover, 2008). In recognition of his obsessive calculations in the face of the irrationality of π, Newton wrote, 'I am ashamed to tell you to how many figures I carried these computations, having no other business at the time'. (Play with Newton's approximation using this interactive Wolfram Demonstration.)
        \[\pi  \approx \frac{3}{4}\sqrt 3  + 24\int\limits_0^{\frac{1}{4}} {\sqrt {x - {x^2}} } dx\]giving
        \[\pi  \approx \frac{3}{4}\sqrt 3  + 24\left( {\frac{1}{{12}} - \frac{1}{{5 \times {2^5}}} - \frac{1}{{28 \times {2^7}}} - \frac{1}{{72 \times {2^9}}} - ...} \right)\]

        Machin's formula. Published in William Jones' 1706 book Synopsis palmariorum matheseos, the same book where π was first used to denote the ratio of a circle's circumference to its diameter, Machin's rapidly converging series allowed π to be computed to 100 decimal places. (To see how Machin's formula converges to π, play with this interactive Wolfram Demonstration.)

        \[\frac{\pi }{4} = 4{\tan ^{ - 1}}\left( {\frac{1}{5}} \right) - {\tan ^{ - 1}}\left( {\frac{1}{{239}}} \right)\]Or,
        \[\frac{\pi }{4} = 4{\cot ^{ - 1}}\left( 5 \right) - {\cot ^{ - 1}}\left( {239} \right)\]

        The Basel Problem. A famous problem (as outlined here by Marianne Freiberger in Plus magazine) named after the home town of the renowned Bernoullis who worked on it, and famously solved by the great Leonarhd Euler in 1735, giving the surprising π-related result (see this accessible outline by Chris Sangwin). Watch this superb video, from Grant Sanderson with Ben Hambrecht, giving a new take and beautiful proof of the problem, using light!
        \[\frac{{{\pi ^2}}}{6} = \frac{1}{{{1^2}}} + \frac{1}{{{2^2}}} + \frac{1}{{{3^2}}} + \frac{1}{{{4^2}}} + ...\]


        Ramanuja's formula. Ramanujan's remarkable infinite series for π (from his first published paper of 1914) converges incredibly fast:
        \[\frac{1}{\pi } = \frac{{2\sqrt 2 }}{{9801}}\sum\limits_{k = 0}^\infty {\frac{{\left( {4k} \right)!\left( {1103 + 26390k} \right)}}{{{{\left( {k!} \right)}^4}{{396}^{4k}}}}} \]
        When k = 0, for example, the formula becomes:
        \[\pi  \approx \frac{{9801}}{{2206\sqrt 2 }} = 3.14159273001...\]
        which is π correct to 6 decimal places (error = 0.0000000764235...). Each successive term of the formula adds around another 8 decimal places to the correct value of π. The second iteration produces a value for correct to 15 decimal places:
        \[\pi  \approx \frac{{2510613731736\sqrt 2 }}{{27493}} + \frac{{9801}}{{2206\sqrt 2 }} +  = 3.1415926535897938779...\]


        42 Billion digits. This formula, from Lennart Berggren and Jonathan and Peter Borwein in 1997 (see the 2004 3rd edition of their book in the references) yields π correct to an astonishing 42 billion digits. Professor Thomas Osler considered the formula in more detail in this paper.
        \[{\left( {\frac{1}{{{{10}^5}}}\sum\limits_{n = - \infty }^{n = \infty } {{e^{\frac{{ - {n^2}}}{{{{10}^{10}}}}}}} } \right)^2} \approx \pi \]



        π-day and other π birthdays




        On π-day 2024 (or rather, at some point on π-day 2024):
        • A 3 year old born on 22 January 2021 will be π.  
        • A 6 year old born on 1 December 2017 will be 2π.  
        • A 9 year old born on 10 October 2014 will be 3π.  
        • A 9 year old born on 1 May 2014 will be \({\pi ^2}\) (or ππ).  
        • A 12 year old born on 20 August 2011 will be 4π.  
        • A 15 year old born on 29 June 2008 will be 5π.  
        • A 36 year old born on 28 September 1987 will be \({\pi ^\pi }\).

        If you teach in a primary, make sure to find students in your school born on 1 May 2014 (Y5), 10 October 2014 (Y4), and 1 December 2017 (Y2), and make a fuss of their ππ, 3π and 2π birthdays respectively! They may not know what π is yet, but this is a lovely way to sew a seed of interest and give them something to take home and surprise their parents with. If you teach in a secondary, make sure to find students in your school born on 20 August 2011 (Y8) and 29 June 2008 (Y11) and make a fuss of their 4π and 5π birthdays respectively. And of course, if you have any 36 year old colleagues, friends or family born on 28 September 1987, make sure you make a fuss of their \({\pi ^\pi }\) birthdays! 

        You may of course be celebrating a π-related birthday on a day different to π-day. A complete list of π, 2π, 3π, ππ, 4π, 5π and \({\pi ^\pi }\) birthdays for each day of 2024, not just for π-day, can be viewed here. If you know anyone lucky enough to be marking such a birthday this year, make sure you put it in your diary and surprise them on the day with a HapPi Birthday wish.




        Famous π-day birthdays
        (Click here to return to the menu)

        The fact that Albert Einstein was born on π-day 1879 in Ulm, Germany, is well-known, and rightly celebrated. Less known, however, and less celebrated, is the fact that the renowned Polish mathematician, Wacław Sierpiński, was born on π-day just \(\left\lceil \pi  \right\rceil \pi \) years later in 1882 in Warszawa, Poland.

        Sierpiński made groundbreaking contributions to set theory, number theory, functions and topology, and has a number of well-known fractal objects named after him that are interesting to explore with students when exploring iterative procedures and nth term generalisations, as well as, of course, when playing around with the idea of infinity. Three of these Sierpiński fractal objects are the Sierpiński carpet, the Sierpiński triangle (also referred to as the Sierpiński sieve or gasket), and the Sierpiński curve (including the Sierpiński arrowhead curve). The first seven iterations of the Sierpiński carpet and Sierpiński triangle are shown in the images below.  An interesting problem to consider with students is to find the area of the carpet and triangle after 1, 2, 3, ...n iterations.


        Taking the carpet above as an example, assuming the original square has a side length of 1 and thus an area of 1, after the 1st iteration the shaded area is \({\raise0.5ex\hbox{$\scriptstyle 8$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 9$}}\) of 1.  Visualising this 1st iteration as being made up of 8 smaller shaded squares, i.e. each with a side length of \({\raise0.5ex\hbox{$\scriptstyle 1$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 3$}}\), we can see that the area of each of these smaller squares after the subsequent 2nd iteration is \({\raise0.5ex\hbox{$\scriptstyle 8$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 9$}}\) of \({\raise0.5ex\hbox{$\scriptstyle 1$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 9$}}\), but there are 8 of these squares, thus meaning that after the second iteration the area of the original starting square that is shaded is \({\raise0.5ex\hbox{$\scriptstyle 8$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 9$}} \times {\raise0.5ex\hbox{$\scriptstyle 8$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 9$}} = {\left( {{\raise0.5ex\hbox{$\scriptstyle 8$}
        \kern-0.1em/\kern-0.15em
        \lower0.25ex\hbox{$\scriptstyle 9$}}} \right)^2}\).  And so on, such that after iterations, the area of the original square \({A_n}\) is

        \[{A_n} = {\left( {\frac{8}{9}} \right)^n}\]
        Students could ponder what the area of the carpet is exactly, when \(n = \infty \), i.e. after an infinite number of iterations (this problem was solved in 2012 by Yaroslav Sergeyev, as revealed in this paper).



















        The greatest π-day birthday in history
        (Click here to return to the menu)

        In 1592, it is possible (probable perhaps) that someone was π years old, at π o'clock precisely, on what we now know as π-day. Or to put it another way, it is likely that at least one person was 3.141592653... years old on 3/14/1592 (mm/dd form) at 3:14am and 15.92653... seconds (or at 3.141592653... am).  So, when was this person born? (Click here for the problem download, a solution think through, and the name of someone who would have been π years old at some point on π-day in 1592!)



















        π o'clock
        (Click here to return to the menu)

        You might like to try out this problem from my blog with students. The clock face implies for students what is meant by π o’clock in the problem, but perhaps it could mean something else, e.g. 3.141592... may suggest 3 hours and 0.141519... of an hour, rather than the 3:14 and 15.92 seconds the clock implies. How accurate could students calculate the angle, i.e. will they use π to 4, 6, 8, 10... decimal places?














        π is the 73rd day of the year
        (Click here to return to the menu)

        73 is a permutable (or anagrammatic) prime, a prime that can have its digits' rearranged (in base 10) in any permutation and still be a prime number. 73 is also an emirp, a number whose reverse, 37, is also prime — a property also evident in terms of the respective ordinal positions of 73 and its emirp partner, 73 being the 21st prime while 37 is the 12th prime. 73 is a Sophie Germain prime and is palindromic in binary 1001001 (interestingly, all Fermat primes and Mersenne primes are subsets of the binary palindromic primes). 73 is also an octal palindrome 111 and the only octal prime repunit. 73 is, moreover, and for some of the reasons given here, Sheldon Cooper's favourite integer in The Big Bang Theory — as was first referenced in the show’s 73rd episode. (Jim Parsons, incidentally, the actor who plays Sheldon Cooper, was born in 1973.) 73 is also the number that marks when English-speaking children have learned the rules of counting sufficiently to overcome the cognitive need for memorisation, thus implying that once you can count to 73 in English, you can count forever (see this post for more detail about 73).



        π primes
        (Click here to return to the menu)

        A pi-prime (sequence A005042 in the OEIS) is a prime number made up of the initial digits of the decimal expansion of π. To date we have found the first four pi-primes (sequence A060421), with another four found to be probable (the largest having 613,373 digits). The first four pi-primes are:

        \[\begin{array}{l}3,\\31,\\314159,\\31415926535897932384626433832795028841\end{array}\]
        The fifth, a probable prime, 16,208 digits long, took four and a half months to compute:

        31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632788659361533818279682303019520353018529689957736225994138912497217752834791315155748572424541506959508295331168617278558890750983817546374649393192550604009277016711390098488240128583616035637076601047101819429555961989467678374494482553797747268471040475346462080466842590694912933136770289891521047521620569660240580381501935112533824300355876402474964732639141992726042699227967823547816360093417216412199245863150302861829745557067498385054945885869269956909272107975093029553211653449872027559602364806654991198818347977535663698074265425278625518184175746728909777727938000816470600161452491921732172147723501414419735685481613611573525521334757418494684385233239073941433345477624168625189835694855620992192221842725502542568876717904946016534668049886272327917860857843838279679766814541009538837863609506800642251252051173929848960841284886269456042419652850222106611863067442786220391949450471237137869609563643719172874677646575739624138908658326459958133904780275900994657640789512694683983525957098258226205224894077267194782684826014769909026401363944374553050682034962524517493996514314298091906592509372216964615157098583874105978859597729754989301617539284681382686838689427741559918559252459539594310499725246808459872736446958486538367362226260991246080512438843904512441365497627807977156914359977001296160894416948685558484063534220722258284886481584560285060168427394522674676788952521385225499546667278239864565961163548862305774564980355936345681743241125150760694794510965960940252288797108931456691368672287489405601015033086179286809208747609178249385890097149096759852613655497818931297848216829989487226588048575640142704775551323796414515237462343645428584447952658678210511413547357395231134271661021359695362314429524849371871101457654035902799344037420073105785390621983874478084784896833214457138687519435064302184531910484810053706146806749192781911979399520614196634287544406437451237181921799983910159195618146751426912397489409071864942319615679452080951465502252316038819301420937621378559566389377870830390697920773467221825625996615014215030680384477345492026054146659252014974428507325186660021324340881907104863317346496514539057962685610055081066587969981635747363840525714591028970641401109712062804390397595156771577004203378699360072305587631763594218731251471205329281918261861258673215791984148488291644706095752706957220917567116722910981690915280173506712748583222871835209353965725121083579151369882091444210067510334671103141267111369908658516398315019701651511685171437657618351556508849099898599823873455283316355076479185358932261854896321329330898570642046752590709154814165498594616371802709819943099244889575712828905923233260972997120844335732654893823911932597463667305836041428138830320382490375898524374417029132765618093773444030707469211201913020330380197621101100449293215160842444859637669838952286847831235526582131449576857262433441893039686426243410773226978028073189154411010446823252716201052652272111660396665573092547110557853763466820653109896526918620564769312570586356620185581007293606598764861179104533488503461136576867532494416680396265797877185560845529654126654085306143444318586769751456614068007002378776591344017127494704205622305389945613140711270004078547332699390814546646458807972708266830634328587856983052358089330657574067954571637752542021149557615814002501262285941302164715509792592309907965473761255176567513575178296664547791745011299614890304639947132962107340437518957359614589019389713111790429782856475032031986915140287080859904801094121472213179476477726224142548545403321571853061422881375850430633217518297986622371721591607716692547487389866549494501146540628433663937900397692656721463853067360965712091807638327166416274888800786925602902284721040317211860820419000422966171196377921337575114959501566049631862947265473642523081770367515906735023507283540567040386743513622224771589150495309844489333096340878076932599397805419341447377441842631298608099888687413260472156951623965864573021631598193195167353812974167729478672422924654366800980676928238280689964004824354037014163149658979409243237896907069779422362508221688957383798623001593776471651228935786015881617557829735233446042815126272037343146531977774160319906655418763979293344195215413418994854447345673831624993419131814809277771038638773431772075456545322077709212019051660962804909263601975988281613323166636528619326686336062735676303544776280350450777235547105859548702790814356240145171806246436267945612753181340783303362542327839449753824372058353114771199260638133467768796959703098339130771098704085913374641442822772634659470474587847787201927715280731767907707157213444730605700733492436931138350493163128404251219256517980694113528013147013047816437885185290928545201165839341965621349143415956258658655705526904965209858033850722426482939728584783163057777560688876446248246857926039535277348030480290058760758251047470916439613626760449256274204208320856611906254543372131535958450687724602901618766795240616342522577195429162991930645537799140373404328752628889639958794757291746426357455254079091451357111369410911939325191076020825202618798531887705842972591677813149699009019211697173727847684726860849003377024242916513005005168323364350389517029893922334517220138128069650117844087451960121228599371623130171144484640903890644954440061986907548516026327505298349187407866808818338510228334508504860825039302133219715518430635455007668282949304137765527939751754613953984683393638304746119966538581538420568533862186725233402830871123282789212507712629463229563989898935821167456270102183564622013496715188190973038119800497340723961036854066431939509790190699639552453005450580685501956730229219139339185680344903982059551002263535361920419947455385938102343955449597783779023742161727111723643435439478221818528624085140066604433258885698670543154706965747458550332323342107301545940516553790686627333799585115625784322988273723198987571415957811196358330059408730681216028764962867446047746491599505497374256269010490377819868359381465741268049256487985561453723478673303904688383436346553794986419270563872931748723320837601123029911367938627089438799362016295154133714248928307220126901475466847653576164773794675200490757155527819653621323926406160136358155907422020203187277605277219005561484255518792530343513984425322341576233610642506390497500865627109535919465897514131034822769306247435363256916078154781811528436679570611086153315044521274739245449454236828860613408414863776700961207151249140430272538607648236341433462351897576645216413767969031495019108575984423919862916421939949072362346468441173940326591840443780513338945257423995082965912285085558215725031071257012668302402929525220118726767562204154205161841634847565169998116141010029960783869092916030288400269104140792886215078424516709087000699282120660418371806535567252532567532861291042487761825829765157959847035622262934860034158722980534989650226291748788202734209222245339856264766914905562842503912757710284027998066365825488926488025456610172967026640765590429099456815065265305371829412703369313785178609040708667114965583434347693385781711386455873678123014587687126603489139095620099393610310291616152881384379099042317473363948045759314931405297634757481193567091101377517210080315590248530906692037671922033229094334676851422144773793937517034436619910403375111735471918550464490263655128162288244625759163330391072253837421821408835086573917715096828874782656995995744906617583441375223970968340800535598491754173818839994469748676265516582765848358845314277568790029095170283529716344562129640435231176006651012412006597558512761785838292041974844236080071930457618932349229279650198751872127267507981255470958904556357921221033346697499235630254947802490114195212382815309114079073860251522742995818072471625916685451333123948049470791191532673430282441860414263639548000448002670496248201792896476697583183271314251702969234889627668440323260927524960357996469256504936818360900323809293459588970695365349406034021665443755890045632882250545255640564482465151875471196218443965825337543885690941130315095261793780029741207665147939425902989695946995565761218656196733786236256125216320862869222103274889218654364802296780705765615144632046927906821207388377814233562823608963208068222468012248261177185896381409183903673672220888321513755600372798394004152970028783076670944474560134556417254370906979396122571429894671543578468788614445812314593571984922528471605049221242470141214780573455105008019086996033027634787081081754501193071412233908663938339529425786905076431006383519834389341596131854347546495569781038293097164651438407007073604112373599843452251610507027056235266012764848308407611830130527932054274628654036036745328651057065874882256981579367897669742205750596834408697350201410206723585020072452256326513410559240190274216248439140359989535394590944070469120914093870012645600162374288021092764579310657922955249887275846101264836999892256959688159205600101655256375678566722796619885782794848855834397518744545512965634434803966420557982936804352202770984294232533022576341807039476994159791594530069752148293366555661567873640053666564165473217043903521329543529169414599041608753201868379370234888689479151071637852902345292440773659495630510074210871426134974595615138498713757047101787957310422969066670214498637464595280824369445789772330048764765241339075920434019634039114732023380715095222010682563427471646024335440051521266932493419673977041595683753555166730273900749729736354964533288869844061196496162773449518273695588220757355176651589855190986665393549481068873206859907540792342402300925900701731960362254756478940647548346647760411463233905651343306844953979070903023460461470961696886885014083470405460742958699138296682468185710318879065287036650832431974404771855678934823089431068287027228097362480939962706074726455399253994428081137369433887294063079261595995462624629707062594845569034711972996409089418059534393251236235508134949004364278527138315912568989295196427287573946914272534366941532361004537304881985517065941217352462589548730167600298865925786628561249665523533829428785425340483083307016537228563559152534784459818313411290019992059813522051173365856407826484942764411376393866924803118364453698589175442647399882284621844900877769776312795722672655562596282542765318300134070922334365779160128093179401718598599933849235495640057099558561134980252499066984233017350358044081168552653117099570899427328709258487894436460050410892266917835258707859512983441729535195378855345737426085902908176515578039059464087350612322611200937310804854852635722825768203416050484662775045003126200800799804925485346941469775164932709504934639382432227188515974054702148289711177792376122578873477188196825462981268685817050740272550263329044976277894423621674119186269439650671515779586756482399391760426017633870454990176143641204692182370764887834196896861181558158736062938603810171215855272668300823834046564758804051380801633638874216371406435495561868964112282140753302655100424104896783528588290243670904887118190909494533144218287661810310073547705498159680772009474696134360928614849417850171807793068108546900094458995279424398139213505586422196483491512639012803832001097738680662877923971801461343244572640097374257007359210031541508936793008169980536520276007277496745840028362405346037263416554259027601834840306811381855105979705664007509426087885735796037324514146786703688098806097164258497595138069309449401515422221943291302173912538355915031003330325111749156969174502714943315155885403922164097229101129035521815762823283182342548326111912800928252561902052630163911477247331485739107775874425387611746578671169414776421441111263583553871361011023267987756410246824032264834641766369806637857681349204530224081972785647198396308781543221166912246415911776732253264335686146186545222681268872684459684424161078540167681420808850280054143613146230821025941737562389942075713627516745731891894562835257044133543758575342698699472547031656613991999682628247270641336222178923903176085428943733935618891651250424404008952719837873864805847268954624388234375178852014395600571048119498842390606136957342315590796703461491434478863604103182350736502778590897578272731305048893989009923913503373250855982655867089242612429473670193907727130706869170926462548423240748550366080136046689511840093668609546325002145852930950000907151058236267293264537382104938724996699339424685516483261134146110680267446637334375340764294026682973865220935701626384648528514903629320199199688285171839536691345222444708045923966028171565515656661113598231122506289058549145097157553900243931535190902107119457300243880176615035270862602537881797519478061013715004489917210022201335013106016391541589578037117792775225978742891917915522417189585361680594741234193398420218745649256443462392531953135103311476394911995072858430658361935369329699289837914941939406085724863968836903265564364216644257607914710869984315733749648835292769328220762947282381537409961545598798259891093717126218283025848112389011968221429457667580718653806506487026133892822994972574530332838963818439447707794022843598834100358385423897354243956475556840952248445541392394100016207693636846776413017819659379971557468541946334893748439129742391433659360410035234377706588867781139498616478747140793263858738624732889645643598774667638479466504074111825658378878454858148962961273998413442726086061872455452360643153710112746809778704464094758280348769758948328241239292960582948619196670918958089833201210318430340128495116203534280144127617285830243559830032042024512072872535581195840149180969253395075778400067465526031446167050827682772223534191102634163157147406123850425845988419907611287258059113935689601431668283176323567325417073420817332230462987992804908514094790368878687894930546955703072619009502076433493359106024545086453628935456862958531315337183868265617862273637169757741830239860065914816164049449650117321313895747062088474802365371031150898427992754426853277974311395143574172219759799359685252285745263796289612691572357986620573408375766873884266405990993505000813375432454635967504844235284874701443545419576258473564216198134073468541117668831186544893776979566517279662326714810338643913751865946730024434500544995399742372328712494834706044063471606325830649829795510109541836235030309453097335834462839476304775645015008507578949548931393944899216125525597701436858943585877526379625597081677643800125436502371412783467926101995585224717220177723700417808419423948725406801556035998390548985723546745642390585850216719031395262944554391316631345308939062046784387785054239390524731362012947691874975191011472315289326772533918146607300089027768963114810902209724520759167297007850580717186381054967973100167870850694207092232908070383263453452038027860990556900134137182368370991949516489600755049341267876436746384902063964019766685592335654639138363185745698147196210841080961884605456039038455343729141446513474940784884423772175154334260306698831768331001133108690421939031080143784334151370924353013677631084913516156422698475074303297167469640666531527035325467112667522460551199581831963763707617991919203579582007595605302346267757943936307



        Playing the π-day Lottery
        (Click here to return to the menu)

        This is (part of) the UK Lotto lottery ticket I bought for the 2018 π-day draw:


        As you can see, the first set of numbers are the first twelve digits of π {31, 41, 59, 26, 53, 58}, and, moreover, the maximum number of digits from the start of π that can be used in the UK Lotto (six numbers from 1 to 59 are drawn). The second set of numbers are the numbers 1 to 6 {1, 2, 3, 4, 5, 6}.  The third set of numbers are a randomly generated set {18, 58, 41, 11, 10, 31}. I didn't win.

        Suggested explorations/diversions with/for students:
        • Find the probability of each separate set of numbers winning.
        • Assuming one of the sets of numbers drawn in full, and thus wins the jackpot, which set would you expect to win the most money from?  
          • Whilst betting on the numbers 1, 2, 3, 4, 5 and 6 does not reduce your probability of winning, it does reduce the amount of money you are likely to win.  This is because, perhaps surprisingly, the numbers 1, 2, 3, 4, 5 and 6 are selected by around 10,000 people each week, thus meaning that the winning jackpot would be shared by 10,000.
          • Similarly, maybe a few mathsy people will buy a ticket with the first set of numbers on π-day, therefore reducing the amount of money you would win if drawn because of the shared jackpot.
        • Find the combinations of all 'wins' you could possibly make with all three sets of numbers.
          • You 'win' —  relatively of course —  in the Lotto if you match 6 numbers (Jackpot), or if you match 5 and the 'Bonus Ball', or if you match 5, 4, 3, or 2. (Visit the Lotto website for more detail.
        • What is the least amount of initial digits from π that can be used in the UK Lotto?
        • Find all the combinations of initial π digits that could buy a lottery ticket in the UK Lotto.
          • Find the probability that a string of the initial digits of π will win the Lottery.



        π as the Prime Counting Function
        (Click here to return to the menu)

        In 1909 Edmund Landau used the symbol π to describe Prime Counting Function \(\pi \left( x \right)\), which gives the number of primes not exceeding a given number \(x\). π used in this sense has nothing to do with π used in Jones' sense, i.e. π as Archimedes' constant, π as the ratio of a circle's circumference to its diameter. By way of illustration, \(\pi \left( 7 \right) = 4\) because the number of primes less than or equal to the number 7 is 4 (i.e. 2, 3, 5 and 7).

        Suggested explorations/diversions with/for students:
        • What is the largest n you can find the value of \(\pi \left( n \right)\) for
          • You may want to use the 'Sieve of Eratosthenes'
          • The largest n for which a value of \(\pi \left( n \right)\) has been computed (by Staple 2015, as part of his Masters' degree) is \(\pi \left( {{{10}^{25}}} \right)\) = 1,699,246,750,872,437,141,327,603, which took 40,000 computing hours to find.
        • Find the first five Ramanujan primes.
          • A Ramanujan prime is the smallest number \({R_n}\) such that \(\pi \left( x \right) - \pi \left( {x/2} \right) \ge n\) for all \(x \ge {R_n}\).  



        Fake proofs for π 
        (Click here to return to the menu)

        These two now well-known fake 'proofs' are always interesting to share with students, in a 'surely this can't be right' sense.  Firstly, this 'proof' that π = 4 always engages students visually, and is a nice conceit when thinking about gradients and derivatives (play with this Wolfram Demonstration for π = 4). Secondly, this following proof — which, on the face of it, seems fine to many — is a nice conceit when working with students on algebraic manipulation.

        \[\begin{array}{c}\begin{align}x &= \frac{{\pi  + 3}}{2}\\2x &= \pi  + 3\\2x\left( {\pi  - 3} \right) &= \left( {\pi  + 3} \right)\left( {\pi  - 3} \right)\\2\pi x - 6x &= {\pi ^2} - 3\pi  + 3\pi  - 9\\2\pi x - 6x &= {\pi ^2} - 9\\9 - 6x &= {\pi ^2} - 2\pi x\\9 - 6x + {x^2} &= {\pi ^2} - 2\pi x + {x^2}\\{\left( {3 - x} \right)^2} &= {\left( {\pi  - x} \right)^2}\\3 - x &= \pi  - x\\3 &= \pi \end{align}\end{array}\]
        Suggested explorations/diversions with/for students:
        • What is wrong with the 'proof' above?
        • What happens when you 'fix' it?
          • In this case, the problem comes from moving from \({\left( {3 - x} \right)^2} = {\left( {\pi  - x} \right)^2}\) to \(3 - x = \pi  - x\).  The 'proof' only provides the positive square root, which produces  the erroneous result.  
        • Make up you own fake π proof.



        Memorising π
        (Click here to return to the menu)

        Daniel Tammet, essayist and novelist, is described as an autistic savant. Born with high-functioning autism, Daniel famously memorised and recited π to 22,514 places on π-day in 2004, taking him just over five hours to do so. This clip, lasting just under five minutes, is an excerpt from a longer documentary on Daniel, 'The Boy With The Incredible Brain'.



        For more of Daniel:

        Suresh Kumar Sharma of India recited 70,030 digits of π on 21 October 2015, taking 17 hours and 14 minutes to do so. See this article about the 'secret' to memorizing π to such huge amounts of digits. And see this article by @alexbellos in The Guardian about Akira Haraguch, who holds the unofficial World Record having recited π to 100,000 digits in October 2006, over 16 hours. It is fun to hold a class or school competition, linked to the 'self-referential stories' below perhaps, to see which student can recite π to the greatest amount of decimal places.



        Continued Fractions for π 












        Milü — 密率 — the 4th convergent of the continued fraction for π, found by Tsu Ch'ung-Chihin in the 5th century AD, is the best rational approximation of π with a denominator of 4 digits or fewer, accurate to 6 decimal places, i.e., to within 0.000009%. For more on the beauty of continued fractions and π, the 'most romantic way to represent numbers', see this from Evelyn Lamb.



        Pilish (Self-referential stories for π)
        (Click here to return to the menu)

        Arguably the best known π mnemonic, constructed by British astronomer Sir James Jeans, is: "How I want a drink, alcoholic of course, after the heavy chapters involving quantum mechanics", the number of letters in each word corresponding to the respective digit in the decimal expansion of  π. Michael Keith proposed the name ‘Pilish’ for writing a sentence (or longer piece of poetry or prose) in which the lengths of successive words represent the digits of the number π, and his wonderful website is a treasure trove of Pilish literature, from plays, poems (called piems in Pilish), accidental Pilish and more. Keith's book, Not a Wake, is written entirely in Pilish from the first 10,000 digits π (the only book to have ever been written in Pilish: see this article from Alex Bellos for more). This, for example, from Keith in 1986, gives π to 356 places:

        For a time I stood pondering on circle sizes. The large computer mainframe quietly processed all of its assembly code. Inside my entire hope lay for figuring out an elusive expansion. Value: pi. Decimals expected soon. I nervously entered a format procedure. The mainframe processed the request. Error. I, again entering it, carefully retyped. This iteration gave zero error printouts in all — success. Intently I waited. Soon, roused by thoughts within me, appeared narrative mnemonics relating digits to verbiage! The idea appeared to exist but only in abbreviated fashion — little phrases typically. Pressing on I then resolved, deciding firmly about a sum of decimals to use — likely around four hundred, presuming the computer code soon halted! Pondering these ideas, words appealed to me. But a problem of zeros did exist. Pondering more, solution subsequently appeared. Zero suggests a punctuation element. Very novel! My thoughts were culminated. No periods, I concluded. All residual marks of punctuation = zeros. First digit expansion answer then came before me. On examining some problems unhappily arose. That imbecilic bug! The printout I possessed showed four nine as foremost decimals. Manifestly troubling. Totally every number looked wrong. Repairing the bug took much effort. A pi mnemonic with letters truly seemed good. Counting of all the letters probably should suffice. Reaching for a record would be helpful. Consequently, I continued, expecting a good final answer from computer. First number slowly displayed on the the flat screen — 3. Good. Trailing digits apparently were right also. Now my memory scheme must probably be implementable. The technique was chosen, elegant in scheme: by self reference a tale mnemonically helpful was ensured. An able title suddenly existed — “Circle Digits”. Taking pen I began. Words emanated uneasily. I desired more synonyms. Speedily I found my (alongside me) Thesaurus. Rogets is probably an essential in doing this, instantly I decided. I wrote and erased more. The Rogets clearly assisted immensely. My story proceeded (how lovely!) faultlessly. The end, above all, would soon joyfully overtake. So, this memory helper story is incontestably complete. Soon I will locate publisher. There a narrative will I trust immediately appear, producing fame. THE END.

        Writing in Pilish, i.e., writing a sentence (or longer piece of poetry or prose) in which the lengths of successive words represent the digits of the number π, has been popular since the early 1900s. There are of course rules needed, not least for example with respect to how you deal with the digit zero, or how we deal with long runs of successive digits, like 111, or 11112211? This page from Michael Keith explains how to write in basic or standard Pilish.

        Michael Keith also created the piku, a piem based on the Japanese Haiku (see see here). In a piku in addition to successive words representing the digits of the number π, the number of syllables in each line is 3, 14, and 15, reflecting the digits of π. Here's a wonderful example from Keith:

        It’s a moon,
        A wheel revolving on golden earth, and lotus blossoms.
        Mountains embrace windmills, and it all reflects this number, pi.

        Accidental Pilish is where a text is found to have be written in Pilish. The longest example from Shakespeare, found by Mike Keith is from Act II, Scene IV of King Henry the Fourth Part One:

        FALSTAFF: By the mass, lad, thou sayest true; it is like we shall have good trading that way. But tell me, Hal, art not thou horrible afeard? Thou being heir apparent, could the world pick thee out three such enemies again as that fiend Douglas, that spirit Percy, and that devil Glendower? Art thou not horribly afraid? Doth not thy blood thrill at it?
        PRINCE: Not a whit, i’ faith. I lack some of thy instinct.

        It's also fun to reimagine texts in Pilish, for example the title of literary classics, songs, films, etc.



        'Pi', by Kate Bush

        This song, 'Pi', by Kate Bush from her 2005 album 'Aerial', is an ode to a 'sweet and gentle and sensitive man, with an obsessive nature and deep fascination for numbers, and a complete infatuation for the calculation of pi'. (You can view the lyrics to the song here.) Throughout the song Kate sings this number:

        3.14159265358979323846264338327950288419716939937510582319749445923078164062862088214808651328230664709384460955058223

        You will note, however, that whilst the 55th digit of π is 0, Kate sings 3 and then 1, before getting back on track and singing the next 24 digits correctly.  She then, however, completely misses out the next 22 digits of π before singing the next 37 digits correctly.

        3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223

        I wonder if she sings the song live?


        'Repeated Sequence,' by Martin Krzywinski

        This piece, by Martin Krzywinski (see the π inspired Art section for more from Martin), with Norweigian band Flunk, Gregory Coles, and others is an entrancing musical performance of π digits. It was Krzywinski's project to celebrate PiDay 2023, (see his page here for more fascinating information about how the piece was made). It is a hour Repeated Sequence, where the digits of π up to the Feynman Point (769 digits) are read out in English, Norewigian and Turkish. (Norwegian: 0 nul, 1 én, 2 to, 3 tre, 4 fire, 5 fem, 6 seks, 7 sju, 8 åtte, 9 ni. Turkish: 0 sıfır, 1 bir, 2 iki, 3 üç, 4 dört, 5 beş, 6 altı, 7 yedi, 8 sekiz, 9 dokuz.) And if you'd like to 'chill out to 10 hours of π' here is the team's 10 hour version, where the first 10,000 digits are read out.


        'What pi sounds like,' by Michale Blake

        On PiDay 2011, Michael Blake released this song, 'What pi sounds like', which translated π first few dozen digits into musical notes. However, jazz musician Lars Erickson, in the words of a NewScientist article, 'thought Blake’s work sounded suspiciously similar to his own 1992 piece “Pi Symphony,” also based on the digits of pi, which [was] registered with the US copyright office.'


        'Pi Symphony,' by Lars Erickson

        Erickson brought a lawsuit for copyright infringement, but on PiDay 2012, US district court judge Michael H. Simon dismissed the claim. In dissmissing the claim, the judge said, 'Pi is a non-copyrightable fact, and the transcription of pi to music is a non-copyrightable idea... The resulting pattern of notes is an expression that merges with the non-copyrightable idea of putting pi to music.'


        'Pi Rap' by MC Hammersmith

        Here is a fun Pilish PiDay rap to remember the first 100 digits of π, from MC Hammersmith, the multi-award winning hip hop comedian, where the number of letters in each word of the rap correspond to the digits of π. 



        π Puns and Jokes

        A selection of π related puns and jokes. I have indicated the writer of the joke where known, or source. If you know a good and accessible π joke or pun to add to the collection, please do tweet me (@mathsedideas).

        My pin is the last four digits of π.

        Q: How are mathematicians like the air force?
        A: They both use pi lots.

        Q: Why is 6 afraid of π?
        A: I don't know; it’s an irrational fear.

        Approximately 3.14% of sailors are pi-rates.
        ― Adapted from @ThePunnyWorld

        Without pi our opinions would just be onions.

        Pie is on sale at 3.1 four two.

        Q: How many stars did the movie critic give to Life of Pi? 
        A: 3.14159

        Never argue with π, he's irrational.

        Q: What is a mathematician's favourite snake?
        A: A Pi-thon.

        Q: What so you get if you divide 22 sheep into 7 pens?
        A: A Shepherd's Pi (approximately).

        Q: What do you get when you divide the Sun's circumference by its diameter?
        A: Pi in the sky.

        Q: What do you get if you divide the circumference of a pumpkin by its diameter?
        A: A pumpkin pi.

        Doctor: How bad is your pain on a scale of 1-10?
        Me: π
        Doctor: ?
        Me: It's not too bad but it goes on forever.

        Eating too much cake is the sin of gluttony. 
        However, eating too much pie is OK because the Sin of Pi is 0.

        Q: Why shouldn’t you eat too much pi?
        A: You’ll end up with a big circumference.

        Never start talking to π. He'll go on forever.

        Q: What is the volume of a pizza with radius z and thickness a? 
        A: Pizza (or Pi-zza).

        What do you mean π\({r^2}\)? Pie are round.

        Q: What did the students say about their advance geometry test?
        A: It was easy as pi.

        Q: What musical instruments do mathematicians play?
        A: The pi-ano.

        i was arguing with π. i said, "Get real," said π. "You're being irrational."

        I hate all these π jokes. They go on forever.



        π inspired Art

        Our fascination with and desire to better understand the transcendence of π (and indeed other such constants) has inspired much incredible and innovative art. Mathematician and logician John Venn, for example, in his efforts to understand and explain randomness, was the 'first person to visualize the random nature of pi’s decimal digits,' as shared by Alex Bellos in this article. Venn, in the words of Lukas Verburgt in this article, thus 'presented the first graph of a random walk and anticipated the notion of a fractal.' Venn produced the image below, from The Logic of Chance (1888, p118), to graphically illustrate, in the words of Verburgt, 'the randomness of the digits of pi by using them to generate a path described by a point. His starting point is to work with a compass with eight points (numbered 0–7) to direct the movement at each step on a square lattice: 0 is north, 1 is northeast, and so on.' In Venn's own words, 'the result seems to me to furnish a very fair graphical indication of randomness.' (Jeffrey Thompson updated Venn's random walk slightly to incorporate the digits 0-9; you can view the result here.)

        Amongst his amazing body of work, Martin Krzywinski produces stunning data visualizations related to π. His π-day page dedicated to π inspired visualizations is a wonderful treasure trove of beautiful images to get lost in, with accompanying explanations about how they were generated. The example below is a poster Krzywinski produced for π-day 2014. The image, he explains, is the 'Frequency distribution of digits in Pi for the first 4,988 digits of Pi in groupings of 4. This subset contains the triplets for each digit, the last being 888 at digit 4,985. The layout is on an Archimedean spiral. For each grouping the number of times a digit was seen is proportional to the width of the annulus.' You can buy this artwork here, 
























        Think Maths have collated ideas for school π art projects that can be viewed here. And Pink Stripey Socks sugges a range of PiDay activities, including for preschoolers, such as making a PiDay BraceletCreating a Pi Skyline is also a popular activity. This page from What Do We Do All Day? goes into detail about how, and gives examples. The image below is an example of a Pi Skyline for the first 70 digits of π.
















        Other links to explore 

        Audio

        Video

        Websites

        Articles



        Notes, references and links



        Casselman, B.  (2012, February).  'Archimedes on the Circumference and Area of a Circle', American Mathematical Society.  Retrieved from http://www.ams.org/publicoutreach/feature-column/fc-2012-02

        Cho, A.  (2015, November 15).  'Famed number π found hidden in the hydrogen atom', Science.  Retrieved from http://www.sciencemag.org/news/2015/11/famed-number-found-hidden-hydrogen-atom

        Cipra, B.  (206).  'Digits of Pi', What's Happening in the Mathematical Sciences. Vol. 6.  American Mathematical Society.  Retrieved from http://www.ams.org/publicoutreach/math-history/hap-6-pi.pdf

        Flood, R. & Wilson, R.  (n.d.).  'Jon Wallis'.  University of Oxford, Mathematical Institute.  Retrieved from https://www.maths.ox.ac.uk/system/files/media/John%20Wallis.pdf

        Freiberger, M.  (2016, August 6).  'The Basel Problem', Plus Magazine.  Retrieved from https://plus.maths.org/content/basel-problem




        Keith M. (1986).  'Circle Digits A Self-Referential Story'. In: Pi: A Source Book. Springer, New York, NY.

        Lewis, T.  (2015, March 13).  'Pi, Anyone? The Secret to Memorizing Tens of Thousands of Digits', Live Science.  Retrieved from https://www.livescience.com/50134-pi-day-memory-experts.html

        MathWithoutBorders (2012, April 9).  Finding Pi by Archimedes' Method [Video File].  Retrieved from https://youtu.be/_rJdkhlWZVQ

        Neale, V.  (n.d.).  Sieve of Eratosthenes.  NRICH. University of Cambridge.  Retrieved from https://nrich.maths.org/7520

        O'Connor, J.J. and Robertson, E.F.  (2000, January).  'François Viète', School of Mathematics and Statistics, University of St Andrews.  Retrieved from http://www-groups.dcs.st-and.ac.uk/history/Biographies/Viete.html

        O'Connor, J.J. and Robertson, E.F.  (2003, April).  'John Machin', School of Mathematics and Statistics, University of St Andrews.  Retrieved from http://www-groups.dcs.st-and.ac.uk/history/Biographies/Machin.html




        Ramanujan, S.  (1914). 'Modular Equations and Approximations to π,' The Quarterly Journal of Mathematics, 45, pp.350–372.


        The RSA.  (2013, January 23).  How Maths Illuminates Our Lives - Daniel Tammet [Video File].  Retrieved from https://youtu.be/1gfFiReLA70

        Sangwin, C.J.  (2001, December 1).  'An infinite series of surprises', Plus Magazine.  Retrieved from https://plus.maths.org/content/infinite-series-surprises

        Schreiber, M.  (n.d.).  "Wallis Sieve Pi Approximation",  Wolfram Demonstrations Project.  Retrieved from http://demonstrations.wolfram.com/WallisSievePiApproximation/

        Sergeyev, Y.D.  (2012).  'Evaluating the exact infinitesimal values of area of Sierpinski's carpet and volume of Menger's sponge', Chaos, Solitons & Fractals, Vol. 42, pp 3042-3046.  Retrieved from https://arxiv.org/abs/1203.3150

        Staple, D.  (2015).  'The combinatorial algorithm for computing pi(x)', Dalhouse University Faculty of Graduate Studies Online Theses.  Retrieved from http://dalspace.library.dal.ca/handle/10222/60524

        Summer House.  (2012, June 9).  Savant learns how to speak Icelandic in a week.  Retrieved from https://youtu.be/_GXjPEkDfek

        TeachPi.org (n.d.).  Ludolph van Ceulen (1540 – 1610): Tireless hand-calculator who took pi to 35 digits & had them engraved on his tombstone.  Retrieved from http://www.teachpi.org/stories/devoted-beyond-death/



        Wallis, J.  (1656).  Arithmetica Infinitorum.  Retrieved from https://archive.org/details/ArithmeticaInfinitorum

        Weisstein, E.W. "Prime Counting Function." From MathWorld--A Wolfram Web Resource.  Retrieved from http://mathworld.wolfram.com/PrimeCountingFunction.html

        Weisstein, E.W.  "Sierpiński Arrowhead Curve." From MathWorld--A Wolfram Web Resource.  Retrieved from http://mathworld.wolfram.com/SierpinskiArrowheadCurve.html

        Weisstein, E.W.  "Sierpiński Carpet." From MathWorld--A Wolfram Web Resource.  Retrieved from http://mathworld.wolfram.com/SierpinskiCarpet.html

        Weisstein, E.W.  "Sierpiński Curve." From MathWorld--A Wolfram Web Resource.  Retrieved from http://mathworld.wolfram.com/SierpinskiCurve.html

        Weisstein, E.W. "Sierpiński Sieve." From MathWorld--A Wolfram Web Resource.  Retrieved from http://mathworld.wolfram.com/SierpinskiSieve.html