T TestsWorld
Lesson 11 of 11 Properties and expressions ⏱ 4 min

Pattern machines and integer puzzles

🤔
Think first
A machine turns 4, 8, −3 into −29. Can you crack its secret rule?
🎯 In this lesson you'll learn
  • ✓Find the operations a machine uses
  • ✓Solve integer puzzles with coins and marks

Machine 1 takes a, b, c and gives a + b − c: 5 + 8 − 3 = 10 and (−4) + (−1) − (−6) = 1. For (−10, −12, −9): −10 − 12 + 9 = −13.

Machine 2 turns 4, 8, −3 into −29 and 6, −11, 12 into 54. Test a × b + c: 32 − 3 = 29 and −66 + 12 = −54. The outputs are the opposites, so the rule is −(a × b + c). For (−10, −12, −9): −(120 − 9) = −111.

✏️

Another machine (4, 8, −3 → 28; 6, 9, 6 → −48) follows a − b × c: 4 − (−24) = 28 and 6 − 54 = −48. For (−16, −6, −9): −16 − 54 = −70.

Alien coins. Coins are worth +13 and −9 pibs. 85 = 10 × 13 + 5 × (−9). Since 7 × 13 + 10 × (−9) = +1, every whole number can be paid, even 1568 pibs.

Collatz with integers: halve an even number; for an odd number multiply by −3 and add 1. −7 → 22 → 11 → −32 → −16 → −8 → −4 → −2 → −1 → 4 → 2 → 1 → −2 → … and the loop −2, −1, 4, 2, 1 repeats.

Test marks: +4 per right, −2 per wrong. Anita has 15 right and 40 marks: 60 − 2w = 40, so w = 10 wrong and 25 questions. Anil has 5 right and −10 marks: 20 − 2w = −10, so w = 15.

Machine 1583101011129−4−1−61−10−12−9−13rule: a + b − cMachine 248−3−296−111254537−22−10−12−9−111rule: −(a × b + c)

Tap the diagram to enlarge it

Testing each row finds the rules: Machine 1 gives a + b − c and Machine 2 gives −(a × b + c).
📌 Remember these
  1. Test a guess on every row
  2. +13 and −9 coins can make +1
  3. Write the story as an expression
✅ Quick check
← 🏁