Class 7 . Mathematics . Ganita Prakash Part I . Number Play

Chapter 6: Number Play

Ch 6

Mathematics

Class 7

Lecture 1

Numbers Tell us Things

Reference video · Lecture 1Numbers Tell us Things

Reading Call-Out Numbers

Call-Out Number
$$a_i=\#\{j:j<i,\ h_j>h_i\}$$

Here, \(h_i\) is the height of the child in position \(i\).

Possible call-out numbers

For the child in position \(i\), the call-out number satisfies \(0\leq a_i\leq i-1\), because only \(i-1\) people are in front.

Finding the Call-Out Sequence

  1. Start with the child at the front of the line.
  2. For each child, compare their height with every person already in front.
  3. Count the taller people and write that number in the child’s position.
Worked example

Write the call-out sequence for the seven-child arrangement shown in the lecture.

  1. For the seven-child arrangement, count the taller children in front of each child from left to right.
  2. The call-out numbers for children 1 and 2 are both zero.
    $$0,0$$
  3. Children 3 and 4 call out one and zero.
    $$1,0$$
  4. Children 5, 6, and 7 call out three, zero, and three.
    $$3,0,3$$
Answer: The sequence is \(0,0,1,0,3,0,3\).

Building Height Arrangements

One Valid Height Order for Each Sequence
Call-out sequenceHeight ranks from left to right
\(0,1,1,2,4,1,5\)\(7,3,5,4,1,6,2\)
\(0,0,0,0,0,0,0\)\(1,2,3,4,5,6,7\)
\(0,1,2,3,4,5,6\)\(7,6,5,4,3,2,1\)
\(0,1,0,1,0,1,0\)\(2,1,4,3,6,5,7\)
\(0,1,1,1,1,1,1\)\(7,1,2,3,4,5,6\)
\(0,0,0,3,3,3,3\)\(5,6,7,1,2,3,4\)

Reasoning About the Numbers

Always True, Sometimes True, or Never True?
StatementClassificationReason
A person who says \(0\) is the tallest.Only sometimes trueThey may have no taller person in front even though someone taller is behind.
The tallest person says \(0\).Always trueNobody in the group is taller than them.
The first person says \(0\).Always trueNobody is standing in front of the first person.
A person between the first and last cannot say \(0\).Only sometimes trueThey say \(0\) if everyone in front is shorter.
The person with the largest number is the shortest.Only sometimes trueWith ranks \(4,1,3,2\), the numbers are \(0,1,1,2\): the shortest is not the person with the largest number. With descending heights, the shortest can have the largest number.
Largest possible number in a group of \(8\).\(7\)The last person has seven people in front, and can say \(7\) if all seven are taller.
Practice

Height ranks are \(5,2,4,1,3\) from left to right, where \(1\) is shortest. Find the call-out sequence.

Hint: For each position, count the earlier ranks that are larger.
Key step: The counts of earlier taller people are \(0,1,1,3,2\).
Solution: The call-out sequence is \(0,1,1,3,2\).
Practice

What is the greatest possible call-out number in a group of \(10\) people?

Hint: The last person has the greatest number of people in front.
Key step: There are \(9\) people in front of the last person.
Solution: The greatest possible number is \(9\), when all nine people in front are taller.

Quick recap

  • A child counts only the taller people standing in front.
  • The first child always calls out \(0\).
  • At position \(i\), the call-out number is between \(0\) and \(i-1\).
  • The tallest person always calls out \(0\); a person saying \(0\) is not always tallest.
  • The given seven-child arrangement has sequence \(0,0,1,0,3,0,3\).
  • In a group of \(n\) people, the largest possible call-out number is \(n-1\).
Lecture 2

Picking Parity

Reference video · Lecture 2Picking Parity

Parity and Number Operations

Definition

Parity — Parity is the property of a number being even or odd.

  • Even number: Can be arranged in pairs with none left over.
  • Odd number: Is one more than a collection of pairs.
  • Addition: The sum of any number of even numbers is even.
  • Odd-number sums: An even count of odd numbers adds to even; an odd count adds to odd.
  • Subtraction: Subtracting numbers of the same parity gives an even result; different parities give an odd result.
Parity rules

Adding or subtracting two numbers of the same parity gives an even number; combining numbers of different parities gives an odd number.

Parity representation
$$2k,\quad 2k+1\qquad (k\in\mathbb{Z})$$

An even integer and an odd integer can be represented in these forms.

Finding the parity of a sum

  1. Count how many odd numbers are being added.
  2. An even number of odd terms gives an even sum; an odd number gives an odd sum.
Worked example

What is the parity of the sum of eight odd numbers?

  1. Eight odd numbers make an even number of odd terms.
    $$8=2\times 4$$
  2. Pair the odd numbers; each pair has an even sum.
    $$(2a+1)+(2b+1)=2(a+b+1)$$
  3. The full sum is a sum of four even pair-sums, so it is even.
    $$\sum_{i=1}^{8}(2a_i+1)=2\left(\sum_{i=1}^{8}a_i+4\right)$$
Answer: Even.

The Five-Card Puzzle

Parity argument

  • Given: Five boxes must each contain one card, and every card shows an odd number.
  • Odd count: Five odd numbers have an odd sum.
  • Conclusion: They cannot add to \(30\), which is even.

Testing whether a target sum is possible

  1. Find the parity of the numbers being selected and count how many are selected.
  2. Use the odd-term count rule to determine the sum's parity.
  3. Compare it with the target; opposite parities mean the target is impossible.
Worked example

Can five odd-number cards add to \(30\)?

  1. Five odd cards make an odd number of odd terms.
    $$5=2\times 2+1$$
  2. Their sum must therefore be odd.
    $$\sum_{i=1}^{5}(2a_i+1)=2\left(\sum_{i=1}^{5}a_i+2\right)+1$$
  3. The target is even, so it cannot be reached.
    $$30=2\times 15$$
Answer: No. Five odd numbers have an odd sum, but \(30\) is even.

Parity of Consecutive Numbers

Consecutive numbers

  • Alternation: Counting numbers alternate between even and odd.
  • Consecutive pair: One number is even and the other is odd.
  • Sum: An even number plus an odd number is odd.
Sum of consecutive numbers

The sum of any two consecutive counting numbers is odd, because one is even and the other is odd.

Consecutive pair and its sum
$$n,\ n+1;\qquad n+(n+1)=2n+1$$

A pair of consecutive numbers has this form; its sum is always odd.

Checking a claimed sum of consecutive ages

  1. Represent the ages as two consecutive numbers.
    $$n,\ n+1$$
  2. Use the fact that their sum is odd.
    $$n+(n+1)=2n+1$$
  3. Compare the claimed total's parity with odd.
Worked example

Martin and Maria are one year apart in age. Can their ages add to \(112\)?

  1. Ages one year apart are consecutive.
    $$n,\ n+1$$
  2. Their sum is always odd.
    $$n+(n+1)=2n+1$$
  3. Since \(112\) is even, it cannot be their sum.
    $$112=2\times 56$$
Answer: No. Consecutive ages always have an odd sum, while \(112\) is even.
Practice

Find the parity of the sum of two odd numbers and three even numbers.

Hint: Count the odd terms; adding an even number does not change parity.
Key step: There are two odd terms, an even count.
Solution: Even: the two odd numbers sum to even, and adding even numbers keeps the sum even.
Practice

Lakpa has an odd number of Rs. 1 coins, an odd number of Rs. 5 coins, and an even number of Rs. 10 coins. Can their total be Rs. 205?

Hint: Find the parity of the value contributed by each type of coin.
Key step: Odd counts of Rs. 1 and Rs. 5 coins give odd values; an even count of Rs. 10 coins gives an even value.
Solution: No. The total has parity odd + odd + even = even, but Rs. 205 is odd, so the calculation must be mistaken.
Practice

Find the parity of even minus odd and odd minus even.

Hint: Subtracting numbers of different parity gives an odd result.
Key step: Each subtraction combines one even and one odd number.
Solution: Both results are odd.

Quick recap

  • Parity tells whether a number is even or odd.
  • An even number of odd terms sums to even; an odd number of odd terms sums to odd.
  • Adding or subtracting numbers of the same parity gives an even result; different parities give an odd result.
  • Five odd cards cannot sum to \(30\) because their sum is odd and \(30\) is even.
  • Consecutive numbers have opposite parity, so their sum is always odd.
  • The total value of Lakpa's coins must be even, so it cannot be Rs. 205.
Lecture 3

Small Squares in Grids

Reference video · Lecture 3Small Squares in Grids

Parity of the Number of Small Squares

Definition

Parity — Parity tells whether a whole number is even or odd.

Parity of a grid count

A grid with \(m\) rows and \(n\) columns has an even number of small squares if either dimension is even; the count is odd only when both dimensions are odd.

Number of small squares
$$mn$$

Use this to find the total number of squares in a grid with \(m\) rows and \(n\) columns.

Grid parity rules

  • Even product: If at least one of \(m\) or \(n\) is even, then \(mn\) is even.
  • Odd product: If both \(m\) and \(n\) are odd, then \(mn\) is odd.
  • Examples: A \(3\times3\) grid has \(9\) squares (odd); a \(3\times4\) grid has \(12\) squares (even).
  • Quick checks: A \(27\times13\) grid has an odd count; \(42\times78\) and \(135\times654\) grids have even counts.

Find grid parity without multiplying

  1. Check whether either grid dimension is even.
    $$m\text{ even or }n\text{ even}\Rightarrow mn\text{ even}$$
  2. If neither is even, both are odd, so the square count is odd.
    $$m\text{ odd and }n\text{ odd}\Rightarrow mn\text{ odd}$$
Worked example

Without multiplying, find the parity of the number of squares in a \(135\times654\) grid.

  1. Identify the parity of each dimension in a \(135\times654\) grid.
    $$135\text{ is odd},\quad 654\text{ is even}$$
  2. Since one dimension is even, the product is even.
    $$135\times654\text{ is even}$$
Answer: The number of small squares is even.

Parity of Expressions

Definition

Parity of an expression — The parity of an expression is whether its value is even or odd for a chosen value of its variable.

Parity rules for expressions

For integer values, adding an even number preserves parity, while adding an odd number changes it. An even multiple of an integer is always even.

Expressions with fixed parity
ExpressionParityReason
\(2n\)Always evenIt is a multiple of \(2\).
\(2n+1\)Always oddAn even number plus \(1\) is odd.
\(100p\)Always evenIt is a multiple of \(2\).
\(48w-2\)Always evenBoth terms are even.
\(4n+3\)Always oddAn even number plus an odd number is odd.

Parity can depend on the variable

  • Expression: The parity of \(3n+4\) depends on whether \(n\) is even or odd.
  • If \(n\) is odd: \(3n+4\) is odd; for example, \(n=3\) gives \(13\).
  • If \(n\) is even: \(3n+4\) is even; for example, \(n=8\) gives \(28\), and \(n=10\) gives \(34\).
  • When \(n\) is odd: \(5n+2\) and \(9n+4\) are odd, while \(2n+4\) and \(4n+6\) are even.
  • When \(n\) is even: \(5n-2\) and \(n+4\) are even.
Examples of expressions with fixed parity
$$2n,\quad 2n+1$$

For every integer \(n\), these forms are always even and always odd, respectively.

Determine an expression's parity

  1. Decide whether the variable is even or odd.
    $$n\text{ even or }n\text{ odd}$$
  2. Use multiplication and addition rules: an even plus an even is even; an odd plus an even is odd.
    $$0+0\equiv0\pmod2,\quad 1+0\equiv1\pmod2$$
Worked example

Find the parity of \(3n+4\) when \(n=3\).

  1. Evaluate \(3n+4\) when \(n=3\).
    $$3(3)+4=13$$
  2. Write \(13\) as an even number plus \(1\) to identify its parity.
    $$13=2\times6+1$$
Answer: The value is \(13\), which is odd.

The Nth Even and Odd Numbers

Definition

Nth number — The \(n\)th number is the number at position \(n\) in an ordered sequence, with positions beginning at \(1\).

Even and odd number sequences

The \(n\)th positive even number is twice its position. The \(n\)th positive odd number is one less than the even number at the same position.

Nth even and odd numbers
$$2n,\quad 2n-1$$

For positions \(n=1,2,3,\ldots\), these formulas generate all positive even and odd numbers in order.

Why the formulas work

  • Even sequence: \(2,4,6,8,\ldots\); its \(n\)th term is \(2n\).
  • Odd sequence: \(1,3,5,7,\ldots\); each term is one less than the even term at the same position.
  • A sequence that skips numbers: For \(k=1,2,3,\ldots\), \(6k+2\) gives \(8,14,20,\ldots\) and misses many even numbers.
  • Listing all odd numbers: The expression \(2n-1\) gives \(1,3,5,7,\ldots\).

Find the nth odd number

  1. Find the even number at the same position.
    $$2n$$
  2. Subtract \(1\) to get the odd number at that position.
    $$2n-1$$
Worked example

What is the 100th odd number?

  1. Find the 100th even number.
    $$2\times100=200$$
  2. Subtract \(1\) to get the 100th odd number.
    $$200-1=199$$
Answer: The 100th odd number is \(199\).
Practice

Find the parity of the number of small squares in a \(42\times78\) grid without multiplying.

Hint: Check whether either dimension is even.
Key step: \(42\) and \(78\) are both even.
Solution: The number of squares is even because an even dimension makes the product even.
Practice

Is \(4n+3\) always even or always odd for integer \(n\)?

Hint: The term \(4n\) is even for every integer \(n\).
Key step: \(4n+3\) is an even number plus an odd number.
Solution: \(4n+3\) is always odd.
Practice

Write formulas for the 25th even number and the 25th odd number, then find their values.

Hint: Use \(2n\) and \(2n-1\) with \(n=25\).
Key step: \(2(25)=50\) and \(2(25)-1=49\).
Solution: The 25th even number is \(50\); the 25th odd number is \(49\).

Quick recap

  • A grid with \(m\) rows and \(n\) columns contains \(mn\) small squares.
  • The grid count is even if either dimension is even; it is odd if both are odd.
  • An even number plus an even number is even; an even number plus an odd number is odd.
  • \(2n\) is always even, and \(2n+1\) is always odd for integer \(n\).
  • The \(n\)th positive even number is \(2n\); the \(n\)th positive odd number is \(2n-1\).
  • The 100th odd number is \(199\).
Lecture 4

Some Explorations in Grids

Reference video · Lecture 4Some Explorations in Grids

Grid Sums and Feasibility

Definition

Grid-sum puzzle — A grid-sum puzzle fills a \(3\times3\) grid with the numbers \(1\)–\(9\), without repeats; clues give row and column totals.

Grid-sum properties

A row or column has three distinct numbers, so its sum is between \(1+2+3=6\) and \(9+8+7=24\). The three row sums total \(45\), as do the three column sums; all six clues together total \(90\).

Checks for a three-by-three grid
$$6\leq r_i,c_j\leq24,\qquad \sum_{i=1}^{3}r_i=45,\qquad \sum_{j=1}^{3}c_j=45$$

Use these necessary checks before trying to fill a grid.

Examples of valid grids and their clue sums
Grid 1Row sumGrid 2Row sum
\(9,1,3\)\(13\)\(7,8,9\)\(24\)
\(8,2,4\)\(14\)\(4,6,5\)\(15\)
\(7,6,5\)\(18\)\(1,2,3\)\(6\)
Column sums\(24,9,12\)Column sums\(12,16,17\)

Check whether clues are possible

  1. Check every row and column clue against the smallest and largest possible line sums.
    $$6\leq r_i,c_j\leq24$$
  2. Check that all row clues total \(45\) and all column clues total \(45\).
    $$\sum r_i=\sum c_j=45$$
Worked example

Can a grid using \(1\)–\(9\) have row or column clues of \(5\) and \(26\)?

  1. Test clues of \(5\) and \(26\) against the possible line-sum range.
    $$5<6,\qquad 26>24$$
  2. Both clues are outside the possible range.
    $$6\leq r_i,c_j\leq24$$
Answer: No. The smallest possible line sum is \(6\) and the largest is \(24\).

Magic Squares

Definition

Magic square — A square grid is a magic square if every row, column and diagonal has the same sum, called the magic sum.

Properties of the magic square using \(1\)–\(9\)

Its magic sum is \(15\), its centre is \(5\), and \(1\) and \(9\) must occupy middle edge cells, not corners. There are exactly \(362{,}880\) ways to arrange \(1\)–\(9\) in a \(3\times3\) grid; only one magic square is unique when rotations and reflections are treated as the same.

Why the centre and edge positions are restricted

  • Magic sum: The three equal row sums total \(1+2+\cdots+9=45\), so each is \(45\div3=15\).
  • Centre: If the centre is \(c\), each pair of opposite outer cells sums to \(15-c\). The four pairs together use all outer numbers, whose total is \(45-c\); hence \(4(15-c)=45-c\), giving \(c=5\).
  • Corners: If \(1\) is in a corner, each of its three lines needs a pair summing to \(14\). Only two distinct pairs work: \(5+9\) and \(6+8\). If \(9\) is in a corner, pairs summing to \(6\) also provide only two choices: \(1+5\) and \(2+4\).
  • Edges: Therefore, \(1\) and \(9\) cannot be corners and must be in middle edge cells.
Magic sum for the numbers \(1\)–\(9\)
$$M=\frac{1+2+\cdots+9}{3}=15$$

The total of the nine entries is divided equally among the three rows.

Build a magic square systematically

  1. Find the required magic sum from the total of all entries.
    $$M=45\div3=15$$
  2. Place \(5\) in the centre and \(1\) and \(9\) in middle edge cells.
    $$c=5$$
  3. Fill the remaining cells so every row, column and diagonal totals \(15\).
    $$a+b+c=15$$
A magic square using the numbers \(1\)–\(9\)
\(8\)\(1\)\(6\)
\(3\)\(5\)\(7\)
\(4\)\(9\)\(2\)
A 3×3 magic square using the numbers 1–9.
A \(3\times3\) magic square using the numbers \(1\)–\(9\).
Worked example

Verify that the displayed grid is a magic square.

  1. Check the first row, second row and first column.
    $$8+1+6=15,\qquad 3+5+7=15,\qquad 8+3+4=15$$
  2. Check one diagonal; the other lines also total \(15\).
    $$8+5+2=15$$
Answer: Every row, column and diagonal sums to \(15\), so the grid is a magic square.

Transforming Magic Squares

Definition

Same-operation transformation — Applying the same linear change to every entry of a magic square preserves equal line sums.

New magic sum

In a \(3\times3\) magic square, adding \(b\) to every entry adds \(3b\) to each line sum. Multiplying every entry by \(a\) multiplies the magic sum by \(a\). Thus, adding, subtracting, multiplying or dividing every entry by the same constant preserves the magic-square property; division requires a non-zero constant.

Magic sum after a linear transformation
$$S'=aS+3b$$

Use this when every entry changes from \(x\) to \(ax+b\).

Create a square for consecutive numbers

  1. Start with a magic square using \(1\)–\(9\), whose magic sum is \(15\).
    $$S=15$$
  2. For consecutive numbers from \(k\) to \(k+8\), add \(k-1\) to every entry.
    $$x\mapsto x+(k-1)$$
  3. Add three times the shift to the original magic sum.
    $$S'=15+3(k-1)$$
Worked example

What are the new magic sums after adding \(1\) to every entry and after doubling every entry?

  1. Adding \(1\) to every entry raises each line sum by \(3\).
    $$15+3(1)=18$$
  2. Doubling every entry doubles each line sum.
    $$2(15)=30$$
Answer: Both resulting grids are magic squares; their magic sums are \(18\) and \(30\), respectively.
Practice

Can a row or column clue of \(25\) occur in a grid filled with \(1\)–\(9\)?

Hint: Compare it with the greatest possible line sum.
Key step: \(9+8+7=24\).
Solution: No. Since \(25>24\), the clue is impossible.
Practice

What are the centre number and magic sum for a magic square using \(1\)–\(9\)?

Hint: Use the total of the nine numbers and the equal row sums.
Key step: The row sums total \(45\); the opposite-pair sums force the centre.
Solution: The centre is \(5\), and the magic sum is \(45\div3=15\).
Practice

Find the magic sum for consecutive numbers from \(3\) to \(11\).

Hint: Add \(2\) to every entry in a \(1\)–\(9\) magic square.
Key step: Each line has three entries, so adding \(2\) raises each line sum by \(3\times2\).
Solution: The magic sum is \(15+6=21\).

Quick recap

  • For a grid using \(1\)–\(9\), every row or column sum lies from \(6\) to \(24\).
  • The three row sums total \(45\), and the three column sums also total \(45\); all six clues total \(90\).
  • A magic square has equal sums in every row, column and diagonal.
  • For \(1\)–\(9\), the magic sum is \(15\), the centre is \(5\), and \(1\) and \(9\) occupy middle edge cells.
  • There are \(362{,}880\) possible fillings of a \(3\times3\) grid with \(1\)–\(9\); there is one magic square up to rotations and reflections.
  • Adding \(b\) to each entry changes the magic sum from \(S\) to \(S+3b\); multiplying by \(a\) changes it to \(aS\).
  • For consecutive numbers from \(k\) to \(k+8\), the magic sum is \(15+3(k-1)\).
Lecture 5

Generalising a 3 × 3 Magic Square

Reference video · Lecture 5Generalising a 3 × 3 Magic Square

The Algebraic Structure of a 3-by-3 Magic Square

Generalised square
$$\begin{bmatrix}m+3&m-4&m+1\\m-2&m&m+2\\m-1&m+4&m-3\end{bmatrix}$$

This form arranges the entries around centre number \(m\).

Magic sum and centre

In any 3-by-3 magic square, if every row, column and diagonal has the same sum, that magic sum is \(3m\), where \(m\) is the centre number.

$$S=3m$$

Changing every entry

  • Add \(1\): The centre becomes \(m+1\) and the magic sum increases by \(3\).
  • Double: The centre becomes \(2m\) and the magic sum becomes \(6m\).
  • Non-consecutive numbers: A magic square can use non-consecutive numbers, provided every required row, column and diagonal has the same sum.
Effect on the generalised square
OperationResulting square
Add \(1\) to every entry\(\begin{bmatrix}m+4&m-3&m+2\\m-1&m+1&m+3\\m&m+5&m-2\end{bmatrix}\)
Double every entry\(\begin{bmatrix}2m+6&2m-8&2m+2\\2m-4&2m&2m+4\\2m-2&2m+8&2m-6\end{bmatrix}\)

Build a square from its magic sum

  1. Divide the required magic sum by \(3\) to find the centre number.
    $$m=\frac{S}{3}$$
  2. Substitute the centre number into the generalised square.
    $$\begin{bmatrix}m+3&m-4&m+1\\m-2&m&m+2\\m-1&m+4&m-3\end{bmatrix}$$
  3. Check that every row, column and diagonal has the required sum.
    $$S=3m$$
Worked example

Create a magic square whose magic sum is \(60\).

  1. Find the generalised magic square with magic sum \(60\).
    $$S=60$$
  2. Find the centre number by dividing the magic sum by \(3\).
    $$m=\frac{60}{3}=20$$
  3. Substitute \(m=20\) into the generalised form.
    $$\begin{bmatrix}23&16&21\\18&20&22\\19&24&17\end{bmatrix}$$
  4. The common sum is confirmed by multiplying the centre by \(3\).
    $$3m=3\times20=60$$
Answer: The square is \(\begin{bmatrix}23&16&21\\18&20&22\\19&24&17\end{bmatrix}\).
Practice

Use the generalised form to find a magic square with centre number \(25\).

Hint: Substitute \(m=25\) into each entry.
Key step: Its magic sum is \(3m=75\).
Solution: \(\begin{bmatrix}28&21&26\\23&25&27\\24&29&22\end{bmatrix}\); each row, column and diagonal sums to \(75\).
Practice

What happens to the magic sum if every entry in the generalised square is doubled?

Hint: Double the total of a line, which originally sums to \(3m\).
Key step: Doubling each entry doubles each line sum.
Solution: The new magic sum is \(2(3m)=6m\). The new centre is \(2m\), so the sum is still three times the centre.
Practice

Must a 3-by-3 magic square use consecutive numbers?

Hint: Focus on the equal-sum condition for its rows, columns and diagonals.
Key step: Consecutiveness is not required for the equal-sum condition.
Solution: No. It may use non-consecutive numbers, as long as every row, column and diagonal has the same sum.
A 3-by-3 magic square using non-consecutive numbers, with each row, column and diagonal summing to 45.
A 3-by-3 magic square using non-consecutive numbers, with each row, column and diagonal summing to \(45\).

The First Recorded 4-by-4 Magic Square

  • Chautīsā Yantra: The first recorded 4-by-4 magic square is found in a 10th-century inscription at the Pārśhvanath Jain temple in Khajuraho, India.
  • Numbers and sum: It uses the numbers \(1\) through \(16\); every row, column and diagonal sums to \(34\).
  • Name: “Chautīs” means \(34\), which explains the Yantra’s name.
The Chautīsā Yantra inscription and its 4-by-4 magic square.
The Chautīsā Yantra inscription and its 4-by-4 magic square.

Magic Squares in History and Culture

  • Lo Shu Square: The earliest recorded magic square dates back over \(2{,}000\) years to ancient China. It is a 3-by-3 arrangement of the numbers \(1\) to \(9\).
  • Legend: A story associates the square with a turtle that appeared during a catastrophic flood on the Lo River.
  • Worldwide study: Magic squares have been studied in India, Japan, Central Asia and Europe.
  • Indian methods: Indian mathematicians developed methods for constructing squares of sizes 3-by-3, 4-by-4, 5-by-5 and larger.
A familiar 3-by-3 magic square in which every row, column and diagonal sums to 15.
A familiar 3-by-3 magic square in which every row, column and diagonal sums to \(15\).
  • Palani temple: A 3-by-3 magic square is carved on a pillar at a temple in Palani, Tamil Nadu; the temple dates to the 8th century CE.
  • Everyday use: 3-by-3 magic squares are also found in homes and shops in India, including the Navagraha Yantra.
A stone inscription of a 3-by-3 magic square at Palani.
A stone inscription of a 3-by-3 magic square at Palani.
Navagraha Yantra: centre numbers and magic sums
GrahaCentre numberMagic sum
Mercury\(8\)\(24\)
Venus\(10\)\(30\)
Moon\(6\)\(18\)
Jupiter\(9\)\(27\)
Sun\(5\)\(15\)
Mars\(7\)\(21\)
Ketu\(13\)\(39\)
Saturn\(11\)\(33\)
Rahu\(12\)\(36\)
A Kubera Yantra with its associated 3-by-3 number square.
A Kubera Yantra with its associated 3-by-3 number square.

Quick recap

  • For a 3-by-3 magic square, the magic sum is \(3m\), where \(m\) is the centre number.
  • Adding \(1\) to each entry raises the magic sum by \(3\); doubling each entry doubles the sum.
  • A magic square need not use consecutive numbers, but all required lines must have equal sums.
  • The Chautīsā Yantra is a 4-by-4 square from Khajuraho using \(1\) through \(16\) with magic sum \(34\).
  • The Lo Shu Square is an ancient Chinese 3-by-3 magic square using \(1\) to \(9\).
  • The Navagraha Yantra has squares with different centre numbers and magic sums.
Lecture 6

Nature’s Favourite Sequence: The Virahāṅka– Fibonacci Numbers!

Reference video · Lecture 6Nature’s Favourite Sequence: The Virahāṅka– Fibonacci Numbers!

Counting Rhythms with 1s and 2s

Rhythm-counting property

Every rhythm of \(n\) beats begins with either a \(1\)-beat step or a \(2\)-beat step. These cases leave \(n-1\) or \(n-2\) beats, so their counts add: \(a_n=a_{n-1}+a_{n-2}\).

$$O,\ E,\ O,\ O,\ E,\ O,\ldots$$
⚠ Common mistake

Do not treat rearrangements as the same rhythm: \(1+2\) and \(2+1\) are different because the syllables occur in a different order.

The Sequence in Nature

Practice

Find the number of rhythms for \(7\) beats.

Hint: Add the counts for \(6\) and \(5\) beats.
Key step: \(a_7=a_6+a_5\)
Solution: \(a_7=13+8=21\). There are \(21\) rhythms.
Practice

Write the next three terms after \(55, 89\).

Hint: Each new term is the sum of the previous two.
Key step: \(55+89=144\)
Solution: \(144, 233, 377\)
Practice

Without calculating the exact terms, state the repeating parity pattern and identify the parity of the term after two consecutive odd terms.

Hint: Use odd plus odd and the parity pattern from the starting terms.
Key step: \(O+O=E\)
Solution: The pattern is odd, even, odd, repeating. The term after two consecutive odd terms is even.

Quick recap

  • A short syllable represents \(1\) beat; a long syllable represents \(2\) beats.
  • Ordered sums of \(1\)s and \(2\)s count distinct rhythms.
  • The rhythm count starts \(1, 2\) and each new term is the sum of the previous two.
  • There are \(34\) rhythms for \(8\) beats; after \(55, 89\) come \(144, 233, 377\).
  • The parity pattern repeats odd, even, odd.
  • Virahāṅka described the rule around \(700\) CE; Fibonacci wrote about the numbers in \(1202\) CE.
Lecture 7

Digits in Disguise

Reference video · Lecture 7Digits in Disguise

Cryptarithms (Alphametics)

Definition

Cryptarithm — A number puzzle in which each letter represents a digit from \(0\) to \(9\).

Key rules and clues

  • Same letter: A letter stands for the same digit wherever it appears; different letters are usually assigned different digits.
  • Leading digit: The first digit of a multi-digit number cannot be \(0\).
  • Place value: \(K2\) means \(10K+2\); solve addition column by column, starting with the units and tracking carries.
  • Example clue: In \(K2+K2=HMM\), the units column gives \(M=4\); the full solution is \(72+72=144\).
  • Other puzzles: The lecture also gives \(YY+Z=ZOO\), \(B5+3D=ED5\), \(KP+KP=PRR\), and \(C1+C=1FF\).

Solving a cryptarithm

  1. Begin in the units column and find the result digit and any carry.
  2. Move left through the columns, including each carry in the next sum.
  3. Check that leading digits are non-zero and verify the complete addition.
Worked example

Find \(U\) and \(T\) if \(T+T+T=UT\).

  1. Translate the addition into place value.
    $$T+T+T=10U+T$$
  2. Subtract \(T\) from each side.
    $$2T=10U$$
  3. The two-digit sum has tens digit \(U=1\), so find \(T\).
    $$2T=10,\quad T=5,\quad U=1$$
  4. Check the result.
    $$5+5+5=15$$
Answer: \(T=5\) and \(U=1\), so \(UT=15\).

Parity: Odd and Even Numbers

Definition

Parity — The parity of an integer tells whether it is even or odd.

Parity of sums

Any number of even numbers has an even sum. An even number of odd numbers has an even sum; an odd number of odd numbers has an odd sum.

Quick parity rules
Terms being addedParity of the sum
An odd number of even numbersEven
An even number of odd numbersEven
An odd number of odd numbersOdd
An even number of even numbersEven

Parity in context

  • Toggling: Each switch toggle changes the bulb from on to off or off to on. After an odd number of toggles the starting state reverses; after an even number it returns.
  • 77 toggles: An initially ON bulb ends OFF because \(77\) is odd.
  • Loose pages: Each sheet has one even-numbered page and one odd-numbered page, so its page-number sum is odd. The sums from \(50\) sheets have even parity; \(6000\) is therefore possible and consistent with parity.

Odd-and-even grid

  • Rule: A row or column has an odd sum exactly when it contains an odd number of odd entries.
  • Task: Fill the six cells with three odd and three even numbers so the row and column parities match their labels.
A matching arrangement of odd and even entries for the labelled row and column parities.
A matching arrangement of odd and even entries for the labelled row and column parities.
Sum of consecutive integers
$$\sum_{k=1}^{n}k=\frac{n(n+1)}{2}$$

Pair the first and last numbers, then the second and next-to-last, to find the total.

Worked example

What is the parity of the sum of the numbers from \(1\) to \(100\)?

  1. Pair numbers from \(1\) to \(100\); there are \(50\) pairs, each totalling \(101\).
    $$1+100=2+99=\cdots=101$$
  2. Calculate the total and identify its parity.
    $$50\times101=5050$$
Answer: The sum is \(5050\), which is even.

A Zero-Sum Magic Square

Definition

Magic square — A square arrangement in which each row, column and main diagonal has the same sum.

Zero-sum square

  • Condition: Every row, column and main diagonal must sum to \(0\).
  • Entries: The numbers need not all be \(0\); negative numbers can be used.
Worked example

Give a non-zero \(3\times3\) magic square with magic sum \(0\).

  1. Here is a non-zero \(3\times3\) square.
    $$\begin{bmatrix}3&-4&1\\-2&0&2\\-1&4&-3\end{bmatrix}$$
  2. Check a row, a column and a diagonal; each totals zero.
    $$3-4+1=0,\quad 3-2-1=0,\quad 3+0-3=0$$
Answer: One example is \(\begin{bmatrix}3&-4&1\\-2&0&2\\-1&4&-3\end{bmatrix}\).

Virahāṅka Sequence and Staircase Paths

Definition

Virahāṅka sequence — A sequence in which each term after the first two is the sum of the two preceding terms.

Virahāṅka recurrence
$$V_n=V_{n-1}+V_{n-2}$$

Starting with \(1,2\), add the previous two terms to continue; subtract to work backwards.

Sequence values and parity

  • Beginning: \(1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,\ldots\).
  • Parity pattern: Odd, even, odd, then the pattern repeats every three terms.
  • Twentieth term: Since \(20=3\times6+2\), the \(20\)th term has the parity of the second term in the pattern: even.
Definition

Staircase path — A way to climb the staircase by taking the allowed step sizes, here either \(1\) or \(2\) steps at a time.

Counting staircase paths
$$W_n=W_{n-1}+W_{n-2},\quad W_0=1,\quad W_1=1$$

A path to stair \(n\) ends with either a \(1\)-step from \(n-1\) or a \(2\)-step from \(n-2\).

Ways to climb eight steps by number of two-step moves
Number of two-step movesNumber of paths
01
17
215
310
41
Total34
Worked example

How many ways can someone climb an \(8\)-step staircase using \(1\)- or \(2\)-step moves?

  1. Build the path counts using the recurrence.
    $$W_0=1,\quad W_1=1,\quad W_2=2,\quad W_3=3,\quad W_4=5,\quad W_5=8,\quad W_6=13,\quad W_7=21$$
  2. Add the counts for stairs \(7\) and \(6\) to get the count for stair \(8\).
    $$W_8=W_7+W_6=21+13=34$$
Answer: There are \(34\) ways.

Algebraic Forms of Odd and Even Numbers

Definition

General forms — For an integer \(n\), even numbers have the form \(2n\) and odd numbers have the form \(2n+1\) (equivalently, \(2n-1\)).

Testing number-form statements
StatementVerdictReason
\(4m-1\) is always odd.True\(4m-1=2(2m-1)+1\), an odd form.
All even numbers are \(6j-4\).FalseFor example, \(4\) cannot equal \(6j-4\) for any integer \(j\).
Both \(2p+1\) and \(2q-1\) describe all odd numbers.False for positive whole-number variables\(2p+1\) misses \(1\) when \(p\) is positive; if variables may be any integers, both forms describe all odd integers.
\(2f+3\) gives both even and odd numbers.FalseFor integer \(f\), \(2f+3\) is always odd.

Testing a claimed number form

  1. Assume the variable is an integer, using the domain stated in the question.
  2. Rewrite the expression in the standard even or odd form.
  3. To disprove an “all numbers” claim, test whether a particular number can be produced.
Worked example

Show that \(4m-1\) is odd for every integer \(m\).

  1. Rewrite the expression using the standard odd form.
    $$4m-1=2(2m-1)+1$$
  2. Since \(2m-1\) is an integer, the expression is odd for every integer \(m\).
    $$4m-1\equiv1\pmod 2$$
Answer: \(4m-1\) is always odd.
Practice

Solve the cryptarithm \(UT+TA=TAT\).

Hint: Start in the units column, then use the tens and hundreds columns.
Key step: The units column gives \(A=0\); the tens and hundreds columns determine the remaining digits.
Solution: \(U=9\), \(T=1\), and \(A=0\), since \(91+10=101\).
Practice

The consecutive Virahāṅka terms are \(987\) and \(1597\). Find the next two and previous two terms.

Hint: Add the pair to move forward; subtract the smaller from the larger to move backwards.
Key step: Forward: \(987+1597=2584\). Backward: \(1597-987=610\).
Solution: Next terms: \(2584,4181\). Previous terms: \(377,610\). Thus the sequence is \(\ldots,377,610,987,1597,2584,4181,\ldots\).
Practice

Is \(6j-4\) a form for every even number, when \(j\) is an integer?

Hint: Test an even number such as \(4\).
Key step: Setting \(6j-4=4\) would require \(j=\frac{4}{3}\), which is not an integer.
Solution: No. For example, \(4\) is even but cannot be written as \(6j-4\) for an integer \(j\).

Quick recap

  • A cryptarithm assigns digits to letters; solve it by place-value columns, starting with the units.
  • An odd number of odd terms sums to odd; an even number of odd terms or any number of even terms sums to even.
  • A \(3\times3\) zero-sum magic square has every row, column and main diagonal summing to \(0\).
  • Virahāṅka terms and staircase path counts each follow a recurrence that adds the previous two terms.
  • The Virahāṅka parity pattern repeats odd, even, odd; its \(20\)th term is even.
  • For integer variables, even numbers have form \(2n\) and odd numbers have form \(2n+1\) or \(2n-1\).
Lecture 8

Summary

Reference video · Lecture 8Summary

Representing order without exact numbers

Definition

Relative order — Relative order shows how values in a sequence are arranged or compared, even when their exact values are unknown.

Key idea

  • Compare positions: Record which value comes first, is smaller, or is larger without knowing its exact measurement.

Record a sequence order

  1. Assign a letter or label to each unknown value.
    $$A,B,C$$
  2. Use comparison signs to show their order.
    $$A<B<C$$
Worked example

How can the order of three unknown measurements be shown?

  1. Three unknown measurements are ordered from smallest to largest.
    $$A<B<C$$
  2. This records their order without specifying the measurements.
    $$A<B<C$$
Answer: Write their comparison as \(A<B<C\).

Parity: even and odd numbers

Definition

Parity — Parity tells whether a whole number is even or odd.

Even and odd numbers

  • Even: Can be arranged in pairs with none left over; divisible by \(2\).
  • Odd: Leaves one unpaired; not divisible by \(2\).
Question: Is 14,70,369 even?
Question: Is \(14{,}70{,}369\) even?
Parity of sums and products

Two numbers with the same parity have an even sum; an even and an odd number have an odd sum. A product with an even factor is even, while the product of two odd numbers is odd.

Forms of even and odd numbers
$$2k\quad(\text{even}),\qquad 2k+1\quad(\text{odd})$$

Here \(k\) is an integer.

Check parity

  1. For a whole number, check its remainder when divided by \(2\).
    $$n=2q+r,\quad r\in\{0,1\}$$
  2. Remainder \(0\) means even; remainder \(1\) means odd.
    $$r=0\Rightarrow\text{even},\quad r=1\Rightarrow\text{odd}$$
Worked example

Is \(14{,}70{,}369\) even or odd?

  1. Divide the number by \(2\) and find the remainder.
    $$14{,}70{,}369=2\times7{,}35{,}184+1$$
  2. The remainder is \(1\), so the number is odd.
    $$14{,}70{,}369\text{ is odd}$$
Answer: \(14{,}70{,}369\) is odd because it leaves remainder \(1\) when divided by \(2\).

Grid sums and magic squares

Definition

Grid-sum check — A grid-sum check compares the totals of the required row sums and column sums to test whether a filling is possible.

Key ideas

  • Necessary check: The grand total of the row sums must equal the grand total of the column sums.
  • Impossible grid: If the two grand totals differ, no filling can satisfy all the stated sums.
  • Magic square: A number grid in which every row, every column, and both diagonals have the same sum.
Grid total check
$$\sum_i R_i=\sum_j C_j$$

A valid grid must satisfy this equality.

Test whether grid sums are possible

  1. Add all the required row sums.
    $$\sum_i R_i$$
  2. Add all the required column sums.
    $$\sum_j C_j$$
  3. If the totals differ, the grid is impossible; if they agree, the check alone does not guarantee a solution.
    $$\sum_i R_i\ne\sum_j C_j\Rightarrow\text{impossible}$$
Worked example

Can a grid have row sums \(4,8\) and column sums \(5,8\)?

  1. Add the row sums.
    $$4+8=12$$
  2. Add the column sums.
    $$5+8=13$$
  3. Since the grand totals differ, the grid cannot be filled as required.
    $$12\ne13$$
Answer: No. The row sums total \(12\), while the column sums total \(13\).

Virahāṅka numbers

Definition

Virahāṅka sequence — The Virahāṅka sequence is a number sequence in which each term after the first two is the sum of the two terms before it.

Key facts

  • Sequence: \(1,2,3,5,8,13,21,34,55,\ldots\)
  • Arts connection: The sequence was first discovered through the Arts.
Virahāṅka recurrence
$$V_n=V_{n-1}+V_{n-2}\quad(n\ge3)$$

The starting values are \(V_1=1\) and \(V_2=2\).

Find a later Virahāṅka term

  1. Take the two most recent terms.
    $$V_{n-2},V_{n-1}$$
  2. Add them to get the next term.
    $$V_n=V_{n-1}+V_{n-2}$$
Worked example

Find the term after \(1,2,3,5,8\) in the Virahāṅka sequence.

  1. Add the two terms immediately before the next term.
    $$8+5=13$$
  2. Continue the sequence using this rule.
    $$1,2,3,5,8,13$$
Answer: The next term is \(13\), since \(5+8=13\).

Cryptarithms

Definition

Cryptarithm — A cryptarithm is an arithmetic puzzle in which letters replace digits.

Key idea

  • Goal: Find digit values for the letters that make the arithmetic statement correct.
  • Check: Substitute the digits back and verify the calculation.

Solve a simple cryptarithm

  1. Choose possible digits for the letters.
    $$A=a,\quad B=b$$
  2. Substitute the digits and check the arithmetic.
    $$A+A=B\Rightarrow a+a=b$$
Worked example

Give one digit assignment that makes \(A+A=B\) true.

  1. Assign digits to the letters.
    $$A=3,\quad B=6$$
  2. Substitute and verify the statement.
    $$A+A=B\Rightarrow3+3=6$$
Answer: One valid assignment is \(A=3\) and \(B=6\).
Practice

Is the sum of an odd number and an even number odd or even?

Hint: Use the parity rule for sums.
Key step: Numbers with unlike parity have an odd sum.
Solution: Odd: an odd number plus an even number is odd.
Practice

Find the next term: \(2,3,5,8,13,\ldots\)

Hint: Add the two most recent terms.
Key step: \(8+13=21\).
Solution: The next term is \(21\), since \(8+13=21\).
★ Remember
  • A valid grid's row and column grand totals must agree.
  • A magic square has equal sums in every row, column, and both diagonals.
  • Virahāṅka numbers follow the two-previous-terms addition rule.

Quick recap

  • Relative order can be recorded without knowing exact values.
  • Even numbers pair completely; odd numbers leave one unpaired.
  • Same-parity numbers have an even sum; unlike parities have an odd sum.
  • A grid is impossible if its row and column grand totals do not match.
  • A magic square has equal sums in every row, column, and both diagonals.
  • Virahāṅka numbers were first discovered through the Arts; each new term adds the previous two.
  • Cryptarithms replace digits with letters that must satisfy an arithmetic statement.

Formula sheet

Call-Out Number
$$a_i=\#\{j:j<i,\ h_j>h_i\}$$
Parity representation
$$2k,\quad 2k+1\qquad (k\in\mathbb{Z})$$
Consecutive pair and its sum
$$n,\ n+1;\qquad n+(n+1)=2n+1$$
Number of small squares
$$mn$$
Examples of expressions with fixed parity
$$2n,\quad 2n+1$$
Nth even and odd numbers
$$2n,\quad 2n-1$$
Checks for a three-by-three grid
$$6\leq r_i,c_j\leq24,\qquad \sum_{i=1}^{3}r_i=45,\qquad \sum_{j=1}^{3}c_j=45$$
Magic sum for the numbers \(1\)–\(9\)
$$M=\frac{1+2+\cdots+9}{3}=15$$
Magic sum after a linear transformation
$$S'=aS+3b$$
Generalised square
$$\begin{bmatrix}m+3&m-4&m+1\\m-2&m&m+2\\m-1&m+4&m-3\end{bmatrix}$$
Sum of consecutive integers
$$\sum_{k=1}^{n}k=\frac{n(n+1)}{2}$$
Virahāṅka recurrence
$$V_n=V_{n-1}+V_{n-2}$$
Counting staircase paths
$$W_n=W_{n-1}+W_{n-2},\quad W_0=1,\quad W_1=1$$
Forms of even and odd numbers
$$2k\quad(\text{even}),\qquad 2k+1\quad(\text{odd})$$
Grid total check
$$\sum_i R_i=\sum_j C_j$$
Virahāṅka recurrence
$$V_n=V_{n-1}+V_{n-2}\quad(n\ge3)$$

Mathematics — ALL CHAPTERS

1

Large Numbers Around Us

2

Arithmetic Expressions

3

A Peek Beyond the Point

4

Expressions using Letter-Numbers

5

Parallel and Intersecting Lines

6

Number Play

7

A Tale of Three Intersecting Lines

8

Working with Fractions

1

Geometric Twins

2

Operations with Integers

3

Finding Common Ground

4

Another Peek Beyond the Point

5

Connecting the Dots

6

Constructions and Tilings

7

Finding the Unknown