Predict before you test
Several rules are shown, and one of them makes the outputs. Each test gives one input and its output. Any rule that would have given a different output is ruled out.
A test helps only if the rules still in play disagree about it. Before testing, work out what each of them would output for the number you have in mind. If they all give the same output, the test cannot rule anything out, whatever it shows.
So pick an input where the remaining rules give different outputs, ideally all different. Choose a rule only when it is the last one that fits.
1List the rules that fit every result so far.
2Work out each one’s output for a candidate input.
3Test an input where those outputs differ.
Three rules, one test
The given example says input 2 gave 7. Rule D gives 9 for 2, so it is out. Rules A, B and C all give 7, so they still fit.
Try input 0 in your head: A gives 3, B gives 1, C gives 5. All three differ, so whatever the output is, exactly one rule is left.
Two rules left
Both rules give 9 for input 2, so both still fit. Work out each rule’s output for the two choices before you pick.
Try it
Which input tells the two rules apart?
- 0
- 3
Show the answer
3
Right. For input 3, rule A gives 13 and rule B gives 19. Whatever the output is, one rule is ruled out.
Enable JavaScript to answer interactively and save your place.
Practice Hidden-rule lab