Can it be done at all?
A shelf holds 19 glasses, and 1 of them is the right way up. You may turn over exactly 2 of them at a time, never more and never fewer.
What is the fewest turns that leaves every glass the right way up? Write NEVER if it cannot be done.
A floor, and a route that reaches it
- 19 glasses, and the number standing the right way up is 1. Every move has to touch exactly 2 of them — never more and never fewer — and the target is to get the number standing the right way up to 19: every one of the 19.
- "Fewest" needs two things: a way that works, and a reason nothing shorter can. Start with the second.
- One turn touches 2 glasses, so at the very best it moves the number standing the right way up by 2. There are 19 − 1 = 18 to make up, and 8 turns could shift at most 16 — not enough.
- So at least 9. Can 9 be done? 9 × 2 = 18, which is exactly what is needed.
- So 9 turns: one fewer is impossible, and 9 can be done.
How it works.
- 01
19 glasses, and the number standing the right way up is 1. Every move has to touch exactly 2 of them — never more and never fewer — and the target is to get the number standing the right way up to 19: every one of the 19.
- 02
"Fewest" needs two things: a way that works, and a reason nothing shorter can. Start with the second.
- 03
One turn touches 2 glasses, so at the very best it moves the number standing the right way up by 2. There are 19 − 1 = 18 to make up, and 8 turns could shift at most 16 — not enough.
- 04
So at least 9. Can 9 be done? 9 × 2 = 18, which is exactly what is needed.
- 05
So 9 turns: one fewer is impossible, and 9 can be done.