National Mathematics Day activities for IB Maths
22 December is National Mathematics Day in India, on the birthday of Srinivasa Ramanujan. This lesson pack has a 5-minute starter, a 35-minute main activity, an HL extension and full worked answers.
- Level
- MYP / KS3 (ages 11 to 14)
- Time
- 35 minutes, plus a 10-minute extension
- Topics
- Squares and cubes; Number patterns; Magic squares; Partitions
- Equipment
- No calculator needed. Every answer works out exactly.
Suggested timings
| Part | Time | What |
|---|---|---|
| Starter | 5 min | Quick questions on the board |
| Main: task A | 15 min | Cubes and squares |
| Main: task B | 15 min | A magic square |
| Extension | 10 min | Fast finishers or homework |
Starter (5 minutes)
Quick-fire, no calculator. Show one at a time or all four on the board.
- Work out 123.
- Work out 93.
- Work out 103 + 93.
- Work out 13 + 123. What do you notice?
Main activity (30 minutes)
Task A: Cubes and squares (15 min)
Ramanujan loved number patterns.
- Work out 13 + 23 + 33 + 43.
- Work out (1 + 2 + 3 + 4)2. What do you notice?
- What is the largest square number less than 1729?
Task B: A magic square (15 min)
In a 3 by 3 magic square using each of 1 to 9 once, every row, column and diagonal has the same total.
- Find the total of 1 to 9.
- Find the magic total of each row.
- Which number must go in the middle square?
Extension (10 minutes)
For fast finishers, or as homework.
- In how many ways can 5 be written as a sum of positive whole numbers, ignoring order? (5 on its own counts, and so does 3 + 2.)
For teachers
Teacher notes and full worked answers
- Pitched at MYP and KS3 (ages 11 to 14). Every question works without a calculator; ask for a short method with each answer.
Starter
- 1728
- 12 × 12 = 144 and 144 × 12 = 1728
- 729
- 9 × 9 = 81 and 81 × 9 = 729
- 1729
- 1000 + 729 = 1729
- 1729: the same as 103 + 93
- 1 + 1728 = 1729
Task A: Cubes and squares
- 100
- 1 + 8 + 27 + 64 = 100
- 100: the same
- 102 = 100
- 1681 (= 412)
- 412 = 1681 and 422 = 1764.
Task B: A magic square
- 45
- 1 + 2 + … + 9 = 45
- 15
- The 3 rows use every number once: 45 ÷ 3 = 15
- 5
- The middle row, middle column and both diagonals all pass through the middle: they add to 4 × 15 = 60.
- They count every number once and the middle three extra times: 45 + 3 × middle = 60, so the middle is 5.
Extension
- 7
- 5, 4+1, 3+2, 3+1+1, 2+2+1, 2+1+1+1, 1+1+1+1+1
The same answers are in the answers PDF. Every answer was checked before publishing.
- Level
- CBSE Class 9 and Class 10
- Time
- 40 minutes, plus a 10-minute extension
- Topics
- Real numbers: prime factorisation, HCF and LCM; Algebraic identities: sum of cubes; Patterns, sequences and quadratic equations; Counting: partitions; Magic squares and number sense
- Equipment
- No calculator. Every answer is a whole number or an exact fraction.
Suggested timings
| Part | Time | What |
|---|---|---|
| Starter | 5 min | Quick questions on the board |
| Main: task A | 10 min | The number 1729 |
| Main: task B | 9 min | Partitions |
| Main: task C | 8 min | A birthday magic square |
| Main: task D | 8 min | Sums of cubes |
| Extension | 10 min | Fast finishers or homework |
Starter (5 minutes)
Quick-fire mental maths.
- Work out 123.
- Work out 103 + 93.
- Write 1729 as a product of prime factors. (Hint: try 7.)
- In how many ways can 4 be written as a sum of positive whole numbers, if the order does not matter? (4 itself counts.)
Main activity (35 minutes)
Task A: The number 1729 (10 min)
1729 is the smallest positive whole number that can be written as the sum of two positive cubes in two different ways.
- Show that 1729 = 13 + 123 = 93 + 103.
- Use the identity a3 + b3 = (a + b)(a2 − ab + b2) to write 93 + 103 as a product of two whole numbers.
- 4104 = 23 × 33 × 19. Find the HCF and LCM of 1729 and 4104.
Task B: Partitions (9 min)
A partition of a number is a way of writing it as a sum of positive whole numbers, where the order does not matter. For example, 3 has three partitions: 3, 2 + 1 and 1 + 1 + 1.
- List all the partitions of 5. How many are there?
- How many partitions does 6 have?
- How many partitions of 6 use only different numbers? How many use only odd numbers? What do you notice?
Task C: A birthday magic square (8 min)
In a magic square every row, every column and both diagonals add up to the same total. Ramanujan was born on 22-12-1887. This 4 × 4 magic square has the date 22 | 12 | 18 | 87 as its top row. Four numbers are missing.
| 22 | 12 | 18 | 87 |
| ? | 17 | 9 | 25 |
| 10 | 24 | ? | 16 |
| 19 | ? | 23 | ? |
- Find the magic total.
- Find the four missing numbers.
- Check that the four corners, and the four numbers in the middle, also add up to the magic total.
Task D: Sums of cubes (8 min)
13 = 1, 13 + 23 = 9, 13 + 23 + 33 = 36, …
- Find 13 + 23 + 33 + 43. What kind of numbers are 1, 9, 36 and your answer?
- The pattern is 13 + 23 + … + n3 = (n(n + 1)/2)2. Use it to find 13 + 23 + … + 123.
- For which n is the sum 44 100?
Extension (10 minutes)
For fast finishers, or as homework.
- 1729 = 7 × 13 × 19, and 7, 13, 19 is an AP with common difference 6. Find the smallest number that is the product of three primes in an AP with common difference 6.
- Show that 4104 is also a sum of two cubes in two different ways: 4104 = 23 + 163 = 93 + 153.
- Make your own magic square from your birthday, as in task C. Start with your date as the top row and find a way to complete it. (There is no single answer.)
For teachers
Teacher notes and full worked answers
- Facts in this pack: 22 December is National Mathematics Day in India, and Ramanujan was born on 22 December 1887. Both are on our National Mathematics Day puzzles page with official sources.
- For the partitions task, ask students to list systematically (largest part first) so that none are missed.
- The magic square is a good place to talk about checking: one missing number found two ways is a strong check.
Starter
- 1728
- 12 × 12 = 144, and 144 × 12 = 1728.
- 1729
- 1000 + 729 = 1729
- 7 × 13 × 19
- 1729 ÷ 7 = 247, and 247 = 13 × 19.
- 5
- 4, 3 + 1, 2 + 2, 2 + 1 + 1, 1 + 1 + 1 + 1
Task A: The number 1729
- 1 + 1728 = 729 + 1000 = 1729
- 1 + 1728 = 1729 and 729 + 1000 = 1729.
- 19 × 91
- a + b = 19 and a2 − ab + b2 = 81 − 90 + 100 = 91.
- So 1729 = 19 × 91.
- HCF 19; LCM 373 464
- 1729 = 7 × 13 × 19 and 4104 = 23 × 33 × 19, so HCF = 19.
- LCM = 23 × 33 × 7 × 13 × 19 = 216 × 1729 = 373 464.
Task B: Partitions
- 7
- 5, 4 + 1, 3 + 2, 3 + 1 + 1, 2 + 2 + 1, 2 + 1 + 1 + 1, 1 + 1 + 1 + 1 + 1
- 11
- 6; 5+1; 4+2; 4+1+1; 3+3; 3+2+1; 3+1+1+1; 2+2+2; 2+2+1+1; 2+1+1+1+1; 1+1+1+1+1+1
- 4 and 4: the same
- Different numbers: 6, 5 + 1, 4 + 2, 3 + 2 + 1.
- Only odd numbers: 5 + 1, 3 + 3, 3 + 1 + 1 + 1, 1 + 1 + 1 + 1 + 1 + 1.
- Both counts are 4. (This is true for every number, not just 6.)
Task C: A birthday magic square
- 139
- Add the top row: 22 + 12 + 18 + 87 = 139.
- 88, 89, 86 and 11
- Row 2: 139 − (17 + 9 + 25) = 88.
- Row 3: 139 − (10 + 24 + 16) = 89.
- Column 2: 139 − (12 + 17 + 24) = 86.
- Row 4: 139 − (19 + 86 + 23) = 11.
- Both give 139
- Corners: 22 + 87 + 19 + 11 = 139.
- Middle: 17 + 9 + 24 + 89 = 139.
Task D: Sums of cubes
- 100; they are all square numbers
- 1 + 8 + 27 + 64 = 100.
- 1 = 12, 9 = 32, 36 = 62, 100 = 102, and 1, 3, 6, 10 are the triangular numbers.
- 6084
- n(n + 1)/2 = 12 × 13/2 = 78, and 782 = 6084.
- n = 20
- 44 100 = 2102, so n(n + 1)/2 = 210.
- n2 + n − 420 = 0, so (n + 21)(n − 20) = 0 and n = 20.
Extension
- 935 = 5 × 11 × 17
- Try the smallest first terms: 2, 8, 14 and 3, 9, 15 are not all prime.
- 5, 11, 17 are all prime, so the answer is 5 × 11 × 17 = 935.
- 8 + 4096 = 729 + 3375 = 4104
- 23 + 163 = 8 + 4096 = 4104.
- 93 + 153 = 729 + 3375 = 4104.
- Answers vary
- Share and check each other’s squares: every row, column and diagonal must give the same total.
The same answers are in the answers PDF. Every answer was checked before publishing.
- Level
- IB Maths SL and HL (AA and AI)
- Time
- 40 minutes, plus a 10-minute extension
- Topics
- Sequences, series and sigma notation; Proof by induction (HL); Counting: partitions and compositions; Systems of linear equations; Number: factors and divisors
- Equipment
- The starter is non-calculator. A GDC is optional.
Download student sheet (SL) (PDF)Answers (PDF)

Suggested timings
| Part | Time | What |
|---|---|---|
| Starter | 5 min | Quick questions on the board |
| Main: task A | 9 min | Two ways to make 1729 |
| Main: task B | 9 min | Sums of cubes |
| Main: task C | 9 min | Partitions and compositions |
| Main: task D | 8 min | The birthday magic square as a linear system |
| Extension | 10 min | Fast finishers or homework |
Starter (5 minutes)
No GDC.
- Work out 13 + 123.
- Find Σr=14 r3.
- In how many ways can 4 be written as a sum of positive integers if order does not matter?
- Solve x + y = 19, x − y = 1. Then find x3 + y3.
Main activity (35 minutes)
Task A: Two ways to make 1729 (9 min)
1729 is the smallest positive integer that is a sum of two positive cubes in two different ways.
- Suppose a3 + b3 = 1729 and a + b = 13. Use a3 + b3 = (a + b)((a + b)2 − 3ab) to find ab, and hence a and b.
- Repeat with a + b = 19.
- Explain why a + b must be a factor of 1729, and list the factors of 1729 = 7 × 13 × 19.
Task B: Sums of cubes (9 min)
Σr=1n r3 = (n(n + 1)/2)2.
- Find Σr=120 r3.
- Find Σr=1120 r3.
- (HL) Prove the formula by induction.
Task C: Partitions and compositions (9 min)
A partition writes a number as a sum of positive integers where order does not matter. A composition is the same but order matters (so 2 + 1 and 1 + 2 are different).
- How many partitions does 5 have?
- How many partitions of 7 have all parts different? How many have all parts odd?
- Explain why 7 has 26 = 64 compositions.
Task D: The birthday magic square as a linear system (8 min)
Ramanujan was born on 22-12-1887. In this 4 × 4 magic square the top row is 22 | 12 | 18 | 87, and every row, column and diagonal has the same total.
| 22 | 12 | 18 | 87 |
| a | b | 9 | 25 |
| 10 | 24 | c | 16 |
| 19 | d | 23 | 11 |
- Write down four linear equations in a, b, c and d (use row 2, row 3, column 2 and the leading diagonal), and solve them.
Extension (10 minutes)
Number puzzles.
- How many positive divisors does 1728 = 26 × 33 have?
- Show that 4104 = 23 + 163 = 93 + 153. Use the method of task A to find the pair for a + b = 24.
For teachers
Teacher notes and full worked answers
- Facts in this pack: 22 December is National Mathematics Day in India, and Ramanujan was born on 22 December 1887 (source: Press Information Bureau, Government of India (PDF)).
- Task A is a neat use of the symmetric functions a + b and ab: the same idea as the sum and product of the roots of a quadratic.
- For task C, Euler’s result (distinct parts = odd parts) is a lovely thing to state; HL students can look up the bijection as an exploration idea.
Starter
- 1729
- 1 + 1728 = 1729
- 100
- 1 + 8 + 27 + 64 = 100
- 5
- 4, 3 + 1, 2 + 2, 2 + 1 + 1, 1 + 1 + 1 + 1
- x = 10, y = 9; 1729
- Add: 2x = 20, so x = 10 and y = 9.
- 1000 + 729 = 1729
Task A: Two ways to make 1729
- ab = 12; 1 and 12
- 1729 = 13(169 − 3ab), so 169 − 3ab = 133 and ab = 12.
- a and b are the roots of t2 − 13t + 12 = 0: 1 and 12.
- ab = 90; 9 and 10
- 1729 = 19(361 − 3ab), so 361 − 3ab = 91 and ab = 90.
- t2 − 19t + 90 = 0 gives 9 and 10.
- 1, 7, 13, 19, 91, 133, 247, 1729
- 1729 = (a + b)(a2 − ab + b2) and both brackets are positive integers.
- The 8 factors are 1, 7, 13, 19, 91, 133, 247 and 1729.
Task B: Sums of cubes
- 44 100
- (20 × 21/2)2 = 2102 = 44 100
- 41 075
- 44 100 − (10 × 11/2)2 = 44 100 − 3025 = 41 075
- See the steps
- n = 1: 1 = (1 × 2/2)2. True.
- Assume true for n = k. Then Σ1k+1 r3 = k2(k + 1)2/4 + (k + 1)3 = (k + 1)2(k2 + 4k + 4)/4 = ((k + 1)(k + 2)/2)2.
- So true for n = k + 1; true for n = 1; so true for all positive integers n.
Task C: Partitions and compositions
- 7
- 5, 4+1, 3+2, 3+1+1, 2+2+1, 2+1+1+1, 1+1+1+1+1
- 5 and 5
- Different parts: 7, 6+1, 5+2, 4+3, 4+2+1.
- Odd parts: 7, 5+1+1, 3+3+1, 3+1+1+1+1, 1+1+1+1+1+1+1.
- Both counts are 5. The two counts are always equal (Euler).
- 64
- Write 7 as 1 + 1 + 1 + 1 + 1 + 1 + 1. There are 6 plus signs.
- Each plus sign is either kept or merged, independently: 26 = 64 compositions.
Task D: The birthday magic square as a linear system
- a = 88, b = 17, c = 89, d = 86
- The total is 22 + 12 + 18 + 87 = 139.
- Row 2: a + b = 105. Row 3: c = 89. Column 2: b + d = 103. Diagonal: b + c = 106.
- So b = 17, a = 88, d = 86.
Extension
- 28
- A divisor is 2i3j with 0 ≤ i ≤ 6 and 0 ≤ j ≤ 3: 7 × 4 = 28.
- ab = 135; 9 and 15
- 8 + 4096 = 729 + 3375 = 4104.
- 4104 = 24(576 − 3ab), so 576 − 3ab = 171 and ab = 135.
- t2 − 24t + 135 = 0 gives 9 and 15.
The same answers are in the answers PDF. Every answer was checked before publishing.
- Level
- IB HL and A Level Further Maths (no calculator)
- Time
- 35 minutes, plus a 10-minute extension
- Topics
- Series and proof by induction; Factorising sums of cubes; Maclaurin series
- Equipment
- No calculator needed: every answer is exact.
Suggested timings
| Part | Time | What |
|---|---|---|
| Starter | 5 min | Quick questions on the board |
| Main: task A | 15 min | Ramanujan’s number |
| Main: task B | 15 min | Series |
| Extension | 10 min | Fast finishers or homework |
Starter (5 minutes)
Quick-fire, no calculator. Show one at a time or all four on the board.
- Find 13 + 23 + … + 103.
- How many positive divisors does 1729 = 7 × 13 × 19 have?
- What is the remainder when 1729 is divided by 4?
- Find 10C2.
Main activity (30 minutes)
Task A: Ramanujan’s number (15 min)
1729 = 13 + 123 = 93 + 103.
- Prove by induction that Σ r3 = (n(n + 1)/2)2. Hence find 113 + 123 + … + 203.
- What is the largest n for which 13 + 23 + … + n3 is less than 1729?
- Use a3 + b3 = (a + b)(a2 − ab + b2) with a = 1, b = 12. Find a2 − ab + b2, and check that 13 × it is 1729.
Task B: Series (15 min)
Ramanujan was famous for his infinite series.
- Find the sum to infinity of 1/(r(r + 1)(r + 2)), starting at r = 1.
- Given that Σ 1/r2 = π2/6, the sum of 1/r2 over the odd r only is kπ2. Find k.
- Find the coefficient of x4 in the Maclaurin series of 1/(1 − x − x2).
Extension (10 minutes)
For fast finishers, or as homework.
- In how many ways can 7 be written as a sum of different positive whole numbers, ignoring order?
For teachers
Teacher notes and full worked answers
- For IB HL and A Level Further Maths classes. Every answer is exact and the whole set works without a calculator.
Starter
- 3025
- (10 × 11 ÷ 2)2 = 552 = 3025
- 8
- 2 × 2 × 2 = 8
- 1
- 1728 = 4 × 432
- 45
- 10 × 9 ÷ 2 = 45
Task A: Ramanujan’s number
- 41075
- Σ to 20: 2102 = 44100. Σ to 10: 3025.
- 44100 − 3025 = 41075
- 8
- n = 8: 362 = 1296. n = 9: 452 = 2025.
- 133
- 1 − 12 + 144 = 133
- 13 × 133 = 1729
Task B: Series
- 1/4
- 1/(r(r + 1)(r + 2)) = ½[1/(r(r + 1)) − 1/((r + 1)(r + 2))]
- The sum telescopes to ½ × 1/2 = 1/4
- 1/8
- The even terms add to ¼ × π2/6 = π2/24.
- π2/6 − π2/24 = π2/8
- 5
- The coefficients cn satisfy cn = cn−1 + cn−2 with c0 = c1 = 1.
- 1, 1, 2, 3, 5
Extension
- 5
- 7, 6+1, 5+2, 4+3, 4+2+1
The same answers are in the answers PDF. Every answer was checked before publishing.
- Level
- Beyond school: for adults and maths fans
- Time
- 35 minutes, plus a 10-minute extension
- Topics
- Taxicab numbers; Partitions; Modular arithmetic
- Equipment
- No calculator needed. Every answer works out exactly.
Suggested timings
| Part | Time | What |
|---|---|---|
| Starter | 5 min | Quick questions on the board |
| Main: task A | 15 min | Taxicab numbers |
| Main: task B | 15 min | Partitions |
| Extension | 10 min | Fast finishers or homework |
Starter (5 minutes)
Quick-fire, no calculator. Show one at a time or all four on the board.
- What is the smallest number that is a sum of two positive cubes in two different ways?
- 1729 = 7 × 13 × 19. Find the sum of its prime factors.
- How many partitions does 6 have (ways to write it as a sum of positive whole numbers, ignoring order)?
- What are the last two digits of 17292?
Main activity (30 minutes)
Task A: Taxicab numbers (15 min)
Ramanujan noticed that 1729 is the smallest sum of two cubes in two ways.
- 4104 = 23 + 163. Find another pair (a, b) with a < b and a3 + b3 = 4104.
- How many ordered pairs of positive whole numbers (a, b) have a3 + b3 = 1729?
- Find the remainder when 21728 is divided by 1729. (1729 is a Carmichael number.)
Task B: Partitions (15 min)
Ramanujan and Hardy found a formula for the number of partitions p(n).
- Find p(10).
- How many partitions of 10 use only odd parts?
- How many partitions of 10 use only different parts?
Extension (10 minutes)
For fast finishers, or as homework.
- p(24) = 1575. Find its remainder when divided by 5, and compare with Ramanujan’s rule that p(5k + 4) is always a multiple of 5.
For teachers
Teacher notes and full worked answers
- A stretch set for anyone past school maths: adults, maths clubs and keen sixth-formers. Competition style, no calculator, every answer exact.
Starter
- 1729
- 1729 = 13 + 123 = 93 + 103
- 39
- 7 + 13 + 19 = 39
- 11
- 6, 5+1, 4+2, 4+1+1, 3+3, 3+2+1, 3+1+1+1, 2+2+2, 2+2+1+1, 2+1+1+1+1, 1+1+1+1+1+1
- 41
- Only 292 = 841 matters for the last two digits.
Task A: Taxicab numbers
- (9, 15)
- 729 + 3375 = 4104
- 4
- (1, 12), (12, 1), (9, 10), (10, 9)
- 1
- 1729 = 7 × 13 × 19, and 6, 12 and 18 all divide 1728.
- So 21728 leaves remainder 1 modulo 7, 13 and 19, and hence modulo 1729.
Task B: Partitions
- 42
- Count by the largest part: 1 + 5 + 8 + 9 + 7 + 5 + 3 + 2 + 1 + 1 = 42
- 10
- List them by the number of 9s, 7s, 5s and 3s; the rest are 1s.
- 10
- Euler: the number with distinct parts always equals the number with odd parts.
Extension
- 0
- 1575 = 5 × 315
- 24 = 5 × 4 + 4, as the rule says.
The same answers are in the answers PDF. Every answer was checked before publishing.
Practise the topics
- Sequences and series (AA SL)
- Proof by induction (AA HL)
- Systems of equations (AA HL)
- Counting and the binomial theorem (AA HL)
e Day maths · Valentine’s Day maths · Women in maths maths · All themed maths
More for lessons: Weekly starters · Skill Builders · Free standard lessons · Worksheet builder · Competition maths