Problem 7 · Simulate — and watch the ending · 5 points
Made by AI and not reviewed by a real person.
A frog starts on the ground below a 5-step staircase. Each jump takes it up 3 steps, but right after landing it slides down 1 step. The moment it touches step 5, it stops. How many jumps does it need?

- 1
- 3
- 5
- 2
- 4
Show a hint
- Follow the frog jump by jump. Where is it after the first jump and slide?
- On the last jump the frog stops right away — it does not slide back.
Show the answer and solution
Answer: D — 2
Jump 1: up to step 3, slides back to step 2. Jump 2: from step 2 it jumps to step 5 — goal reached, no slide! So 2 jumps. The trap is treating every jump the same: the last step of a process often behaves differently, so always simulate the ending carefully.