Reversible Binary in the Talk ‘n Tracks Seal Splash

One of my daughter’s favorite toys is this puzzle set that forms a track:

trackspic

At only six months she’s not old enough to set up the track, but she loves to watch the mechanical seal that travels whatever path is laid out for it.

trackview

As the seal passes certain points, it makes predetermined sounds that go with the picture. For example, passing by the dolphins causes dolphin sounds to occur.

dolphintrack

What’s interesting mathematically is how the track manages to “code” the different sounds. Notice there are raised ridges on the track. There are four ridge positions matching with four switches on the back on the seal.

switchpic

If “raised” is a 1 and “lowered” is a 0, then the dolphin picture shows the code 1010.

dolphincodeclose

Hence each sound is linked to a certain combination of switches. What’s particularly interesting is that the track has to work in both directions (it’s not preset which way the seal is facing) so that the switch combinations have to either be palindromes (like 0110 backwards is still 0110) or indicate the same sound when interpreted backwards (so 0101 will give the same sounds as 1010).

Hence, the maximum number of sounds possible on the track given four switch positions is nine: 1001, 0100, 0110, 1000, 1100, 1010, 1110, 1101 and 1111. (Any of the codes may be reversed.)

The actual track uses five: 1001 (crab), 0110 (seal), 1010 (dolphins), 0100 (scuba diver), and 1100 (tugboat). I believe the codes involving three and four 1s are omitted due to the device being slightly imprecise (as is once in a while it gives the wrong sound) and it being hard to hit 3 or 4 switches consistently.

All this leads to the following question, which is reasonable for a high school level: Given a track system with n switches, how many possible sounds can it make?

5 Responses

  1. Pretty cool. I want to buy one just to see it firsthand.

    I agree there are nine (since 0 doesn’t work), but in your list of nine possible sounds you list 1001 twice. You should add the pair 0001/1000.

    BTW, you say the “actual track uses six” but you only list five. (If there are six I’d expect the sixth to be 0001/1000.)

  2. As for your question “Given a track system with n switches, how many possible sounds can it make?”, I came up with two formulas:

    – When n is odd: 2^floor(n/2) + 2^(n-1) – 1

    – When n is even: 2^floor(n/2)/2 + 2^(n-1) – 1

    I’ll skip the derivation here, but the idea is to count the “palindromes” (I put that in quotes because palindromes don’t normally include leading 0s), count the others by dividing them by 2, the subtracting 1 since 0 is invalid.

    (I’m not sure that was high school level.)

    • My colleague’s Contemporary Math class (with normal students) features problems of roughly the same difficulty, and I’d feel comfortable giving this problem to my Honors Algebra II class.

  3. […] up, we have a post from Jason Dyer of Number Warrior where he analyses one of his baby daughter’s favourite toys.  That’s right ladies and gentlemen, only 6 months old and already inspiring […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: