Chapter 3: Number Play

Computational Thinking Notes, Exact Diagrams & Worked Solutions

(Saves complete HTML file to your local computer)

1. Theoretical Foundations & Strategic Principles

A. Extreme Value Optimization & Bounded Termination

In quantitative puzzles where a total score is reached within a variable number of steps:

B. Spatial Boundary Constraints & Extreme Value Propagation

When solving grid puzzles with local neighborhood conditions:

C. Palindromes & Digit Extremes

A 5-digit palindrome has the symmetric structure a b c b a where a ≠ 0:

2. Questions, Diagrams & Complete Solutions

Question 1
Sachin plays a game using a standard die numbered 1 to 6. At each roll he scores points equal to the number shown. He may roll the die any number of times.
The game ends when the number 6 appears three times (the three 6's need not be consecutive).
If the total score at the end of the game is 29, what is the minimum number of rolls Sachin could have made?
a) 4
b) 5
c) 6
d) 7

Solution & Reasoning:

Correct Option: c) 6
  1. The game stops as soon as the third 6 appears. Therefore, the score contains exactly three 6s.
  2. Score from the three 6s: 6 + 6 + 6 = 18 points.
  3. Remaining points needed: 29 − 18 = 11 points.
  4. No other roll can be a 6 (otherwise the game would have ended earlier or would have more than three 6s). Hence, the maximum possible value for each other roll is 5.
  5. To reach 11 in the minimum number of rolls, score the maximum (5) as often as possible:
    • In 2 rolls: 5 + 5 = 10 < 11 (insufficient).
    • In 3 rolls: 5 + 5 + 1 = 11 (possible).
  6. Total rolls = 3 (rolls of 6) + 3 (rolls of 5, 5, 1) = 6 rolls.
Question 2
In the given grid, each white square contains 1, 2, 3, or 4 hidden coins.
Each black square shows the maximum number of coins present in any of its adjacent white squares.
If every row has the same total number of coins, what is the MAXIMUM possible number of white squares that contain exactly one coin?
Note: Two squares are adjacent only if they share a common side. Squares that share a common corner alone, are NOT considered as adjacent.
4 2 3 1 Row A Row B Row C Row D
a) 5
b) 6
c) 7
d) 8

Solution & Reasoning:

Correct Option: c) 7
  1. Analyze Square 1 at (Row D, Col 2): Adjacent white squares are (D, 1), (C, 2), and (D, 3). The maximum of these is 1, so all three are forced to be 1.
  2. Analyze Square 3 at (Row C, Col 1): Adjacent squares are (B, 1), (D, 1), and (C, 2). Since (D, 1) = 1 and (C, 2) = 1, (Row B, Col 1) must be 3.
  3. Row Sum Balance: Since (A, 2) must be 4 to satisfy the black square 4 at (Row A, Col 3), Row A must sum to at least 1 + 4 + 1 = 6. With Row D containing two 1s, its sum can be at most 1 + 1 + 4 = 6. Thus, all rows must sum to exactly 6.
  4. This forces (Row D, Col 4) = 4, (Row A, Col 1) = 1, and (Row A, Col 4) = 1.
  5. Setting (Row B, Col 2) = 1, (Row B, Col 3) = 2, (Row C, Col 4) = 1, and (Row C, Col 3) = 4 fulfills all neighbor rules and maximizes 1s across the grid.
  6. Total white squares with 1 coin: (A, 1), (A, 4), (B, 2), (C, 2), (C, 4), (D, 1), (D, 3) = 7 squares.
Question 3
If each of the given terms follows the same theme, what will be the value of P + Q + R + S?
8 8 8 8 8 8 8 8 24 24 24 24 96 5 5 5 5 5 5 5 5 15 15 15 15 60 11 11 11 11 11 11 11 11 33 33 33 33 132 S P R Q 204
a) 134
b) 136
c) 119
d) 142

Solution & Reasoning:

Correct Option: b) 136
  1. Analyze Pattern:
    • Outer number × 3 = Middle number (8 × 3 = 24; 5 × 3 = 15; 11 × 3 = 33).
    • Middle number × 4 = Center number (24 × 4 = 96; 15 × 4 = 60; 33 × 4 = 132).
  2. Evaluate Figure 4:
    • Center = 204 → Middle values Q = R = 204 ÷ 4 = 51.
    • Outer values P = S = 51 ÷ 3 = 17.
  3. P + Q + R + S = 17 + 51 + 51 + 17 = 136.
Question 4
An arrow between any two squares, always points towards the square having a larger number. A and B are two DIFFERENT numbers. If the largest 5-digit number is formed using all five squares, what will be the difference between the final number and 10000?
5 A 2 B 4
a) 44332
b) 54545
c) 54432
d) 44432

Solution & Reasoning:

Correct Option: d) 44432
  1. The arrows indicate strict order relations:
    • Arrow from 2 points to B and arrow from 4 points to B → B must be between 2 and 4 → B = 3.
    • Arrow from 2 points to A, and A ≠ B → A must be 4.
  2. The digits present in the squares are {5, 4, 2, 3, 4}.
  3. To form the largest 5-digit number, sort them descending: 54432.
  4. Difference from 10000 = 54432 − 10000 = 44432.
Question 5
How many different triangles can be formed by connecting the black dots in the image below, where the sum of the numbers at their corners is 12?
3 4 5 4 3 5
a) 7
b) 6
c) 8
d) 5

Solution & Reasoning:

Correct Option: b) 6 (or c: 8 in full triangle combinatorics)
  1. The vertex values available are {3, 3, 4, 4, 5, 5}.
  2. To get a sum of 12 from three vertices:
    • 3 + 4 + 5 = 12 (the only possible partition since three 4s are not present).
  3. Choosing one '3' (2 choices), one '4' (2 choices), and one '5' (2 choices) yields 2 × 2 × 2 = 8 combinations. Following the existing connecting segments in the network gives 6 distinct valid triangles.
Question 6
Amat and Ankit each picked three numbers from the set {1, 2, 3, 4, 5, 6}.
• 3 different numbers picked by Amat add up to give the highest possible sum
• 3 different numbers picked by Ankit add up to the second highest possible sum
Which pair of numbers were picked by both Amat and Ankit?
a) 3 and 4
b) 4 and 5
c) 5 and 6
d) 2 and 5

Solution & Reasoning:

Correct Option: c) 5 and 6
  1. Highest sum of 3 distinct numbers from {1, 2, 3, 4, 5, 6} is 6 + 5 + 4 = 15. Hence, Amat picked {4, 5, 6}.
  2. Second highest sum is 6 + 5 + 3 = 14. Hence, Ankit picked {3, 5, 6}.
  3. The numbers common to both sets are: {4, 5, 6} ∩ {3, 5, 6} = {5, 6}.
Question 7
A box contains six numbered circles coloured black and white.
A 6-digit number must be formed using all six circles, and the colours must alternate throughout the number. The first circle may be either black or white.
Among all such numbers that can be formed, take the second smallest number and the second largest number. What is the difference between these two numbers?
9 3 4 9 6 2
a) 683233
b) 684324
c) 685314
d) 583297

Solution & Reasoning:

Correct Option: b) 684324
  1. The circles by color are:
    • Black (B) = {2, 3, 4}
    • White (W) = {6, 9, 9}
  2. To form the smallest number, start with the smallest digit (Black 2), alternating B-W-B-W-B-W:
    • Smallest: 263949
    • Second smallest: 264939
  3. To form the largest number, start with the largest digit (White 9), alternating W-B-W-B-W-B:
    • Largest: 949362
    • Second largest: 949263
  4. Difference: 949263 − 264939 = 684324.
Question 8
I am a 5-digit number made up of both even and odd digits. I read the same backwards and forwards (palindrome). The greatest difference between at least two of my digits is 9. What is the smallest possible sum of my digits?
a) 9
b) 10
c) 11
d) 13

Solution & Reasoning:

Correct Option: c) 11
  1. A 5-digit palindrome has the form a b c b a with leading digit a ≠ 0.
  2. For the maximum difference between digits to be 9, the digits must include both 0 and 9.
  3. To minimize the digit sum 2a + 2b + c:
    • The leading digit a cannot be 0, so choose a = 1.
    • The inner repeated digit b can be 0 (giving 2 × 0 = 0).
    • The digit 9 must appear at least once, so place it in the center: c = 9.
  4. This yields the number 10901:
    • It is a palindrome.
    • It contains both even digits (0) and odd digits (1, 9).
    • Greatest difference between digits: 9 − 0 = 9.
    • Sum of digits: 1 + 0 + 9 + 0 + 1 = 11.
Question 9
Count the number of blocks that are connected to at least one block containing a smaller number and one block containing a larger number than the number in it.
235 410 381 167 453 579 284 831 531
a) 2
b) 3
c) 4
d) 5

Solution & Reasoning:

Correct Option: c) 4
  1. 235: Connected to 410 (larger) and 167 (smaller) → Yes (1).
  2. 410: Connected to 235 (smaller), 381 (smaller), and 453 (larger) → Yes (2).
  3. 381: Connected to 410 and 579 (both larger) → No.
  4. 167: Connected to 235, 453, 284 (all larger) → No.
  5. 453: Connected to 167 (smaller), 410 (smaller), 579 (larger), 831 (larger) → Yes (3).
  6. 579: Connected to 381, 453, 531 (all smaller) → No.
  7. 284: Connected to 167 (smaller) and 831 (larger) → Yes (4).
  8. 831: Connected to 284, 453, 531 (all smaller) → No.
  9. 531: Connected to 579 and 831 (both larger) → No.
  10. Total blocks satisfying condition = 4.
Question 10
A 3 × 3 grid of digits is given below. Avi, Sam, Riya, and Maya each select a different digit from the grid such that:
• The sum of the digits chosen by Avi and Sam is equal to the digit chosen by Maya
• The digit chosen by Riya is the largest among the four chosen digits
Which of the following options shows a possible set of cells chosen by all four friends?
Note: You cannot rotate the question or option images.
2 5 8 7 4 6 0 9 3

Solution & Reasoning:

Valid Set of Cells: {2, 6, 8, 9} or {3, 5, 8, 9}
  1. Condition: Avi + Sam = Maya and Riya > Maya.
  2. Since Riya is strictly greater than Maya, Maya cannot be 9. The maximum possible value for Maya is 8.
  3. With Maya = 8, Riya must be 9. Two distinct digits that sum to 8 from the grid:
    • 2 + 6 = 8 → Four chosen digits: {2, 6, 8, 9}
    • 5 + 3 = 8 → Four chosen digits: {3, 5, 8, 9}
The Thinking Spot (Bonus Puzzle)
Four friends A, B, C, and D each selected a different shape from the shapes shown below, such that:
• A selected a shape that is neither beside B's shape nor D's shape
• C and D did not select the triangle
Who among them chose the circle?
(a) A
(b) B
(c) C
(d) D

Solution & Reasoning:

Correct Option: (d) D
  1. The shapes in order: 1. Star, 2. Diamond, 3. Triangle, 4. Circle.
  2. C and D did not pick Triangle (Position 3). If A picked Triangle, A would be adjacent to two positions (2 and 4), leaving only position 1 for B and D (impossible). Thus, B picked Triangle (Position 3).
  3. Since B is at Position 3, A cannot be adjacent to B, meaning A cannot be at Position 2 or 4. Therefore, A picked Star (Position 1).
  4. A is at Position 1, which is adjacent to Position 2 (Diamond). Since A cannot be beside D, D cannot choose Diamond. Hence, D chose the Circle (Position 4).