play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Lucky 7

The purpose of the game, as with Loyd's Fifteen and Sliders, is to return the counters into their Home position, position they were in before reshuffling. The puzzle consists of several counters placed on two intersecting circles. There are six points of control: the two central counters and the two pairs of counters adjacent to the central ones. In the case of 7 counters, besides the empty counter, these are numbered 1, 7, 3, 4, 5. Clicking on the upper counters induces clockwise rotations. Clicking on the lower counters results in counterclockwise rotations. Left counters rotate the left circle. Right counters rotate the right circle. The middle ones handle the whole set. The empty counter is skipped in all cases.

With 7 counters the puzzle is solvable for any starting configuration. You can experiment with this by hitting the Cheat button which swaps the second and the first counters.

If the "Cycles" box is checked, a permutation of counters needed to solve the puzzle is displayed. The permutation is presented as a product of cycles.


This applet requires Sun's Java VM 2 which your browser may perceive as a popup. Which it is not. If you want to see the applet work, visit Sun's website at http://www.java.com/en/download/index.jsp, download and install Java VM and enjoy the applet.


Buy this applet
What if applet does not run?

Theorem

With the number of counters equal to 7 the puzzle is solvable for any starting configuration.

Proof

Let a denote one clockwise shift of the left circle. Let b stand for a counterclockwise shift of the right circle. Then executing the following sequence of moves

n = aab-1aab-1aabaab

swaps the counters 6 and 7 and also the pair 2 and 4. In other words, this sequence of moves leads to the permutation n = (1)(2 4)(3)(5)(6 7).

On the other hand, for the sequence m = aabaabaabaabaab, we have m = (1 3)(2)(4)(5)(6)(7).

Let the global clockwise rotation be denoted as c. Then cmc-1 = (1)(2 4)(3)(5)(6)(7). Which means that ncmc-1 = (1)(2)(3)(4)(5)(6 7).

We thus found a sequence of moves that swaps two adjacent counters 6 and 7. This shows that any two adjacent counter can be swapped by a suitable sequence of moves without disturbing other counters. Indeed, depending on k, the sequence ckncmc-1c-k swaps any pair of adjacent counters. For example, if k = 1, then counters 1 and 7 are swapped. If k = 2, the counters 1 and 2 are swapped, and so on.

Assume now we wish to swap another pair of counters, say, a and b. Let f be a sequence of moves that brings a into position 6 while it brings b into position 7. We are not concerned with what happens to the rest of counters. Swap the counters in the positions 6 and 7 and then apply inverses of moves from f but in the reverse order. All counters will return to their original position but a and b that will swap their positions.

Thus all transpositions can be generated by our basic cycles. This proves the theorem because then counter 1 can be swapped into its rightful position, then counter 2, and so on. Q.E.D.

Remark 1

The sequences m and n may appear to be produced out of hat. They were. I have no other explanation, except for saying that I just toyed with the puzzle for a while trying simple sequences of moves and watching permutation thus obtained. I am pretty sure that the same result can be obtained with shorter sequences.

Remark 2

I am grateful to Don Greenwell for detecting an error in the original proof. He also pointed out that the idea of the last paragraph of the proof, where we moved two counters a and b into swappable positions, does not require those positions be adjacent. The proof thus shortens considerably by simply noting that the sequence m swaps counters 1 and 3.

In the general framework of Graph Theory, R.Wilson gave a complete treatment of puzzles on graphs of which the Lucky 7 is a particular case. Applied to the Lucky 7 puzzle we obtain the following

Theorem

Let n+2 be the number of counters on each of the two puzzle cycles. The total number of counters (including the empty one) is thus 2(n+1). If n is even then the graph is bipartite, and, therefore, puz(Lucky7) has two connected components, one consisting of odd and another of even permutations. If n is odd then puz(Lucky7) is connected, and, therefore the puzzle is solvable for every starting combination.

Reference

  1. E.R.Berlekamp, J.H.Conway, R.K.Guy, Winning Ways for Your Mathematical Plays, v2, Academic Press, 1982.

 

 

 

Copyright © 1996-2008 Alexander Bogomolny

 

 

29436752Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
0 messages
07:05 AM, Jul-10-08

Monty Hall Problem
Posted by linkdon
72 messages
06:07 PM, Jul-24-08

Missing information
Posted by roboknight
2 messages
07:32 AM, Jun-22-08

Can You See The Patterns..?
Posted by wustvn
0 messages
10:08 AM, Jul-23-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Central Limit Theorem proof problem
Posted by Manuel
1 messages
01:54 PM, Jul-22-08

You can drill a square hole
Posted by Giorgis
1 messages
10:15 PM, Jul-12-08