Qm

A hundred animals for a hundred pounds

At a market, horses cost 10 pounds each, goats cost 1 pound each, and ducks are sold in bunches of 8 for 1 pound.

Buy exactly 100 animals for exactly 100 pounds, with at least one of each kind. Ducks must be bought in whole bunches. Find the combination and show it is the only one.

Show a hint

Write two equations, one for the count and one for the cost, and eliminate the goats. You will be left with a single equation in horses and ducks whose whole-number solutions are easy to find by looking at remainders.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Which barrel holds the beer?The cannonballs that make a square and a pyramidA quick test for divisibility by 7The last digit of seven to the seven to the sevenThe last two digits of seven to the power 2024Postage from 5 and 7 cent stamps
All questions →