Home > Riddles > The Bus Wizard (Conway)

The Bus Wizard (Conway)

Numerical territoryLevel 5 · Expert · ●●●●●

Two mathematicians ride a bus and read the line number.
One says to the other:

  1. “I have at least two children.”
  2. “Their ages are positive integers.”
  3. “The sum of their ages is the number of this bus line.”
  4. “The product of their ages is my age.”

The other answers:

“If you told me your age and how many children you have, could I deduce their ages?”

The first one answers:

“No.”

After hearing that, the second says:

“Now I know your age.”

What is the bus line number and what is the age of the first mathematician?

Hints

Show hints
  1. Happy Idea: The phrase “No” not only eliminates cases; encodes a structural ambiguity condition on fixed-sum factorizations.
  2. That's why the second concludes correctly: $\boxed{P=48}$.
  3. The bus line is 12 and the age of the first mathematician is 48.

Solution

Show full solution

Answer: The bus line is 12 and the age of the first mathematician is 48.
Logical structure:

  1. The second mathematician knows the sum $S$ (bus number).
  2. If you also knew age $P$ and number of children $n$, you could list decompositions into positive integers with:

$$ a_1+\cdots+a_n=S,\quad a_1\cdots a_n=P. $$

  1. The answer “No” means that, for the real pair $(P,n)$, there are at least two possible decompositions.
  2. After hearing that “No”, the second mathematician can deduce $P$; Therefore, with that $S$ there must be a single product compatible with that ambiguity.

Key case $S=12$:
With sum 12, the product that meets that property is:

$$ P=48. $$

Because with $n=4$ there are two different options:

  • $(1,3,4,4)$ with product 48,
  • $(2,2,2,6)$ with product 48.

Thus, even knowing $(P,n)=(48,4)$, ages are not uniquely determined: exactly what the first mathematician claims.
For the other possible lines, this pattern does not allow the second to deduce a single age after hearing “No”.
The only line that makes the entire dialogue work is:

$$ S=12. $$

That is why the second concludes correctly:

$$ \boxed{P=48}. $$**Happy Idea:** The phrase “No” not only eliminates cases; encodes a condition of **structural ambiguity** on fixed-sum factorizations. --- $$

Related riddles

Keep practicing

If you enjoyed this one, try more pure-logic riddles, explore this theme, browse the full archive, or read the riddle-solving guide.

← Previous: The most difficult logic puzzle in the world · Next: Sum and product (two mathematicians) →