Frog Swap

How it works

Imagine that we have 5 lily pads in a line with 2 red frogs on the 2 lily pads on the left, 2 blue frogs on the 2 lily pads on the right, and an empty lily pad in the middle.

The goal is to swap the red and blue frogs so that the 2 blue frogs are on the 2 lily pads on the left and the 2 red frogs are on the 2 lily pads on the right.

There are two types of moves that are allowed:

  • A frog can hop onto an empty lily pad that is next to it.

  • A frog can leap over exactly one frog of the opposite color onto an empty lily pad. (A frog can't leap over more than one frog and a frog can't leap over a frog of the same color.)

Frogs are not allowed to move backwards: Red frogs can only move to the right and blue frogs can only move to the left.

Is it possible to swap the frogs? What if there are 3 red frogs and 2 blue frogs? Or 2 red frogs and 3 blue frogs? 3 red frogs and 3 blue frogs?

In this activity, students by exploring the arrangement with 2 red frogs and 2 blue frogs. After they figure out how to swap the frogs, they explore other arrangements with different numbers of frogs and look for patterns in the numbers of hops and leaps they need in order to swap the frogs.

Challenges handout

Why we like this activity

  • It’s fun! Students enjoy trying to solve the different challenges.

  • It helps to develop algorithmic reasoning.

  • It requires students to engage in mathematical habits of mind:

    • Using logic and finding and using strategies to solve the challenges
  • It has a low floor and a high ceiling: Students can start exploring by trial and error, but as the challenges get more difficult, more careful strategizing is required!