Eight Number Puzzles: Spot the Rule, Predict the Next Value
Math & Bit ManipulationModel answerLast updated
Work out the hidden rule behind eight short numeric and fractional sequences, state the next term for each, and justify it against every given term.
Each of the eight sequences below follows a single hidden rule. For each one, identify the rule, give the next term, and explain why the rule fits every term shown.
- 12, 28, 36, 84, 88, 168, ?
- 4/3, 1, 5, 8, 23, 47, ?
- 3, 1, 2, 6, 12, 144, ?
- 1/5, 2/3, 3/11, 3/6, 5/17, 4/9, ?
- 7, 14, 24, 6, 12, 22, ?
- 19, 18, 20, 60, 15, 14, 16, ?
- 4, 2, 6, 6, 30, 150, ?
- 1, 3, 7, 17, 41, 99, ?
What a strong answer includes
- A clear statement of the rule for each sequence, checked against all given terms rather than just the first few.
- The final value for each.
- For any sequence where more than one rule is plausible, a note on the ambiguity and why you prefer your choice.
- A short description of the general search strategy you used, since you will not know the rule in advance.
Hints
Hint 1
Compute first differences and ratios, then check whether odd-position and even-position terms (or steps) behave like two separate sequences. Do not simplify fractions before looking for structure.
Hint 2
If the simple tools fail, try a recurrence that builds each term from the previous two or three: a linear combination such as a(n-1) + k*a(n-2), a product of earlier terms, or a(n-1) times something depending on a(n-2). Strange-looking seeds like 4/3 often exist to make such a rule come out cleanly.
Hint 3
Look for repeating operation cycles (for example four different operations applied in turn) and for blocks of three terms that repeat the same internal steps with a reset in between. Always verify the rule on every given term before committing.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
General strategy
With no context, a fast and systematic search beats inspiration. I work through this checklist and stop at the first rule that explains every term:
- Differences: first, then second. Check whether the odd-numbered and even-numbered differences form their own patterns.
- Ratios: see whether the multiplier is constant or itself follows a pattern.
- Interleaving: split odd and even positions into two sequences.
- Recurrences: build each term from the previous two or three, by linear combination, product, or a mix.
- Operation cycles or blocks: a repeating list of operations, or groups of terms with a reset step.
Two discipline rules: do not simplify fractions early (it can hide the pattern), and never accept a rule that has not been checked against all given terms.
Sequence by sequence
1) 12, 28, 36, 84, 88, 168, ? The differences are +16, +8, +48, +4, +80. Split by position:
- Steps 1, 3, 5: 16, 48, 80 (16 times 1, 3, 5, i.e. rising by 32).
- Steps 2, 4: 8, 4 (halving).
The next step is the third of the halving type: +2. Answer: 168 + 2 = 170.
2) 4/3, 1, 5, 8, 23, 47, ? Differences are irregular, so try a two-term recurrence. The rule a(n) = a(n-1) + 3a(n-2) fits: 1 + 3(4/3) = 5, 5 + 3 = 8, 8 + 15 = 23, 23 + 24 = 47. The odd first term is a clue: it makes 3*(4/3) an integer. Next: 47 + 3*23 = 116.
3) 3, 1, 2, 6, 12, 144, ? The jump from 12 to 144 signals multiplication. Each term is the product of the previous three: 312 = 6, 126 = 12, 2612 = 144. Next: 612144 = 10368.
4) 1/5, 2/3, 3/11, 3/6, 5/17, 4/9, ? Interleave two sequences:
- Odd positions: 1/5, 3/11, 5/17. Numerators rise by 2, denominators by 6. The next is 7/23.
- Even positions: 2/3, 3/6, 4/9. Numerators rise by 1, denominators by 3.
The seventh term is in an odd position, so the answer is 7/23. Note that 3/6 is deliberately unreduced; writing it as 1/2 would break the denominator pattern.
5) 7, 14, 24, 6, 12, 22, ? Read in blocks of three. In each block the first step is x2 and the second is +10 (7, 14, 24 and 6, 12, 22). The step between blocks is a reset: 24 becomes 6. Candidate readings:
- Digit sum: 2+4 = 6, so 22 gives 2+2 = 4.
- Subtract 18: 24 - 18 = 6, so 22 - 18 = 4.
- Divide by 4: 24 / 4 = 6, so 22 gives 5.5, which is non-integer and breaks the integer flavour of the rest.
Two independent readings agree, so the answer is 4. In a live setting I would say explicitly that the reset step is underdetermined from a single example and explain why I favour 4.
6) 19, 18, 20, 60, 15, 14, 16, ? The operations cycle: -1, +2, x3, /4. Check: 19 -> 18 -> 20 -> 60 -> 15, then 15 -> 14 -> 16, and the next operation is x3. Answer: 16*3 = 48.
7) 4, 2, 6, 6, 30, 150, ? The ratios (x1/2, x3, x1, x5, x5) look odd, but compare each multiplier with the term two places earlier minus 1:
- 2 -> 6: multiplier 3 = 4 - 1.
- 6 -> 6: multiplier 1 = 2 - 1.
- 6 -> 30: multiplier 5 = 6 - 1.
- 30 -> 150: multiplier 5 = 6 - 1.
So a(n) = a(n-1) * (a(n-2) - 1), valid from the third term on. Next: 150 * (30 - 1) = 4350.
8) 1, 3, 7, 17, 41, 99, ? The rule is a(n) = 2a(n-1) + a(n-2): 23+1 = 7, 27+3 = 17, 217+7 = 41, 241+17 = 99. Next: 299 + 41 = 239. A useful tell is that successive ratios settle toward 1 + sqrt(2), about 2.414, which suggests a linear recurrence with that characteristic root.
Summary table
| # | Rule | Next |
|---|---|---|
| 1 | Odd-step increments 16, 48, 80; even-step increments halve (8, 4, 2) | 170 |
| 2 | a(n) = a(n-1) + 3a(n-2) | 116 |
| 3 | Product of previous three terms | 10368 |
| 4 | Two interleaved fraction sequences | 7/23 |
| 5 | Blocks of x2, +10, then reset (digit sum or -18) | 4 |
| 6 | Cycle of -1, +2, x3, /4 | 48 |
| 7 | a(n) = a(n-1) * (a(n-2) - 1) | 4350 |
| 8 | a(n) = 2a(n-1) + a(n-2) | 239 |
Quick verification code
A short script is a good way to confirm a recurrence on all given terms before answering:
from fractions import Fraction as F
def check(seq, f, start):
# f takes the list so far and returns the predicted next term
return all(f(seq[:i]) == seq[i] for i in range(start, len(seq)))
s2 = [F(4,3), 1, 5, 8, 23, 47]
print(check(s2, lambda p: p[-1] + 3*p[-2], 2)) # True -> next 116
s7 = [4, 2, 6, 6, 30, 150]
print(check(s7, lambda p: p[-1] * (p[-2] - 1), 2)) # True -> next 4350
Each check is O(n) for n terms, which is trivial. The real cost is human search time, so prioritise the cheap tests (differences, ratios, interleaving) before exotic recurrences.
Common mistakes
- Simplifying fractions too soon (sequence 4), which destroys the denominator pattern.
- Stopping at one layer of differences. Sequence 1 only opens up once differences are split by parity.
- Fitting a rule to the first few terms only. If it fails on any given term, it is wrong.
- Ignoring strange seeds. The 4/3 in sequence 2 is a deliberate hint.
- Picking silently under ambiguity (sequence 5). State the competing readings and justify your choice.
- Over-investing in one item. In a timed assessment, if nothing fits after a few minutes, move on and return later.