A trick worth understanding

"Think of a number, double it, add six, halve it, take away the number you started with." Before the audience has even finished, the performer calls out the answer. How? Algebra explains why the trick works, how to change what it produces, and how a longer version can even reveal someone's birthday. The very same tool helps you fill number pyramids from the top down, and predict the top of a pyramid just by looking at its base.

Think of a number

Let the unknown number be xx and follow the steps:

Step Words Algebra
1 Think of a number xx
2 Double it 2x2x
3 Add 66 2x+62x + 6
4 Halve it x+3x + 3
5 Subtract the original number 33

Whatever xx was, the answer is 33. Want it to be 55 instead? Add 1010 at step 3. Want any number nn? Add 2n2n.

Fancier versions work in exactly the same way. "Triple it, add 99, divide by 33, subtract the number" always gives 33. And "add 44, double, subtract 88, halve" hands back xx itself, which is how a performer seems to "read your mind".

Finding a date

Ask a friend to pick a date, with month MM and day DD, and then:

  1. multiply the month by 55: 5M5M;
  2. add 77: 5M+75M + 7;
  3. multiply by 44: 20M+2820M + 28;
  4. add 1313: 20M+4120M + 41;
  5. multiply by 55: 100M+205100M + 205;
  6. add the day: 100M+205+D100M + 205 + D.

When your friend tells you the result, subtract 205205. What is left is 100M+D100M + D. The last two digits give the day (it is never more than 3131, so two digits are enough), and whatever comes before them is the month.

Example 1. Result 12261226: 1226−205=10211226 - 205 = 1021, which reads 10/2110/21, so 21 October. Result 319319: 319−205=114319 - 205 = 114, so 14 January. Result 10491049 gives 844844, which looks like 8 August at first, but 844→844 \to month 88, day 4444, and no month has that day. Your friend has made a mistake, so the trick catches errors too.

If you change the numbers added in steps 2 and 4, the number you subtract at the end changes too; with +6+6 and +9+9 it becomes 165165. Any version that uses "×5\times 5, ×4\times 4, ×5\times 5" produces 100M100M, and that is what keeps the month and the day apart.

Number pyramids

In a number pyramid, each brick is the sum of the two bricks just below it. Start with the bottom row 3,5,23, 5, 2: the middle row is 8,78, 7 and the top is 1515.

The real puzzle is filling down. Say the top is 6060, the bottom-left is 1212, the bottom-right is 88, and the middle of the bottom row is an unknown cc. Then the middle row is 12+c12 + c and c+8c + 8. These add up to the top, so 20+2c=6020 + 2c = 60, which gives c=20c = 20. The middle row is 32,2832, 28.

Two number pyramids: bottom 3, 5, 2 gives middle 8, 7 and top 15; a second with top 60 and bottom 12, c, 8 is filled down to c = 20 and middle row 32, 28.
Building a pyramid up, and filling one down from its top.

The general top. With bottom row a,b,ca, b, c, the middle row is a+ba + b, b+cb + c, and the top is a+2b+ca + 2b + c. See how the middle brick gets counted twice? With four bricks a,b,c,da, b, c, d the top is a+3b+3c+da + 3b + 3c + d, and with five it is a+4b+6c+4d+ea + 4b + 6c + 4d + e. Those multipliers are exactly the rows of Pascal's triangle.

Example 2. Bottom row 4,7,14, 7, 1: the top is 4+14+1=194 + 14 + 1 = 19. Bottom row 2,5,3,62, 5, 3, 6: the top is 2+15+9+6=322 + 15 + 9 + 6 = 32.

Example 3. Put 1,2,31, 2, 3 (the first Virahāṅka numbers) in the bottom row. The middle row is 3,53, 5 and the top is 88, so every brick is a Virahāṅka number. Now try 1,2,3,51, 2, 3, 5: the next row is 3,5,83, 5, 8, then 8,138, 13, and the top is 2121. Again every brick is one of them, and the top is the 77th term. In general, a pyramid built on the first nn terms is full of Virahāṅka numbers with V2n−1V_{2n-1} at the top, simply because adding two neighbouring terms gives the next one.

Number pyramid with bottom row 1, 2, 3, 5, the first four Virahanka numbers; the rows above are 3, 5, 8, then 8, 13, and the top brick is 21, the 7th term.
A pyramid on Virahanka numbers has Virahanka numbers in every brick.

Practice

  1. Write the algebra for: think of a number, add 55, triple, subtract 1515, divide by 33. What comes out? Change one step so that the answer is always 77.
  2. Design a five-step trick whose answer is always 1010, and test it with x=4x = 4 and x=−3x = -3.
  3. Using the date trick above, find the dates behind the results 920920, 14361436 and 506506.
  4. One version of the date trick uses +3+3 at step 2 and +11+11 at step 4. What must you subtract at the end?
  5. Fill the pyramid with bottom row 6,9,46, 9, 4. Then fill the pyramid with top 5050, bottom-left 99 and bottom-right 1111.
  6. Without building them, give the top of a pyramid with bottom row 5,1,8,25, 1, 8, 2, and of one with bottom row 3,3,3,3,33, 3, 3, 3, 3.
  7. A three-row pyramid has top 4040 and bottom row x,2x,x+4x, 2x, x + 4. Find xx.
  8. Put the first five Virahāṅka numbers 1,2,3,5,81, 2, 3, 5, 8 in the bottom row. What is at the top, and which term of the sequence is it?

Answers

Show answers
  1. 3(x+5)−153=x\displaystyle \dfrac{3(x + 5) - 15}{3} = x, so you get back the number you started with. For a constant 77: think of xx, add 77, double, subtract 2x2x, halve, and the result is 77.
  2. For example: think of xx, double, add 2020, halve, subtract xx, giving 1010. Check with x=4x = 4: 8,28,14,108, 28, 14, 10 ✓; with x=−3x = -3: −6,14,7,10-6, 14, 7, 10 ✓.
  3. 715→7/15715 \to 7/15; 1231→12/311231 \to 12/31; 301→3/01301 \to 3/01.
  4. 5M+3→20M+12→20M+23→100M+1155M + 3 \to 20M + 12 \to 20M + 23 \to 100M + 115, so subtract 115115.
  5. Middle 15,1315, 13; top 2828. For the second, the middle row is 9+c9 + c, c+11c + 11; then 20+2c=5020 + 2c = 50, so c=15c = 15 and the middle row is 24,2624, 26.
  6. 5+3+24+2=345 + 3 + 24 + 2 = 34. 3(1+4+6+4+1)=483(1 + 4 + 6 + 4 + 1) = 48.
  7. Top =x+2(2x)+(x+4)=6x+4=40= x + 2(2x) + (x + 4) = 6x + 4 = 40, so x=6x = 6 and the bottom row is 6,12,106, 12, 10.
  8. The rows are 3,5,8,133, 5, 8, 13; then 8,13,218, 13, 21; then 21,3421, 34; and the top is 5555. That is the 99th term (V9=55V_9 = 55 with V1=1V_1 = 1, V2=2V_2 = 2).