# Slide Rule Duel: Pie 3 and Pie 6

These Slide Rule Duel puzzles have pieces which in the top half of the frame form two large circle segments, and in the bottom half only one small circle segment. The bottom half can slide left and right so that its segment can line up with either of the top parts to make a complete disc, which can then be rotated.

The Pie puzzles have discs cut into 8 pieces like a pizza. There are only three half-discs, so there are 12 pieces all together. The Pie 3 has three colours, four pieces of each colour, and the Pie 6 has six colours, two pieces of each colour. In the solved position the pieces of the same colour are together, forming three half discs, or 6 quarter discs.

These puzzles were invented by Douglas A. Engel, who also invented various other puzzles such as:

## The number of positions:

There are 12 pieces which can be arranged in 12! ways, but there are indistinguishable pieces so we have to divide out by the number of ways the identical pieces can be permuted, which is 4!3 for the Pie 3 and 2!6 for the Pie 6. This gives 12! / 4!3 = 34,650 positions on the Pie 3, and 12! / 2!6 = 7,484,400 positions on the Pie 6. If you consider a position different if the slider is moved across, then you have to multiply these numbers by 2.

I have used a computer to calculate God's algorithm for these puzzles. The results in the table below show that any Pie 3 position can be solved in at most 8 rotations, or 13 if every 1/8th of a turn is counted as a separate move.

Face turn metric Singleturnmetric 0 1 2 3 4 5 6 1 4 4 8 4 16 16 2 24 50 22 24 100 104 24 16 134 286 186 14 8 144 522 718 188 2 110 742 1,788 889 44 49 678 3,038 2,948 222 12 364 3,190 5,554 1,066 2 2 94 1,496 4,996 2,074 20 4 186 1,195 1,170 14 4 40 36 2

There are two positions that are antipodal in both metrics, which are shown on the right. They can be reached with the move sequences R3 L2 R2 L1 R3 L-2 R-2 L1, and L3 R2 L2 R1 L3 R-2 L-2 R1. In a sense they are mirror images of each other, as you can see from the similarity between the two move sequences.

The Pie 6 can be solved in at move 11 rotations, or 19 times 1/8th of a turn.

Face turn metric Singleturnmetric 0 1 2 3 4 5 6 7 8 9 1 4 4 8 4 16 16 2 24 48 28 24 96 128 40 16 134 316 278 62 8 144 560 896 540 92 2 120 788 2,000 2,162 973 120 70 832 3,376 6,024 4,796 1,526 120 30 604 4,375 12,272 16,203 9,370 1,686 24 6 388 4,376 19,290 40,228 39,184 12,752 504 1 130 3,204 23,512 77,172 121,128 66,194 4,464 1,704 21,982 115,934 290,380 250,259 26,194 28 546 14,911 131,371 525,850 699,737 107,544 174 100 6,650 98,198 632,766 1,298,898 296,862 719 1,346 35,864 359,931 1,163,775 417,545 1,411 52 3,328 51,060 271,224 161,782 1,192 16 582 5,140 5,652 193 2 3

## Notation:

Hold the puzzle with the slider at the bottom. The Left and Right discs will be labelled by the letters L and R. A turn of a disc is denoted by the disc letter followed by a number that is the number of steps to turn it by, where positive numbers mean clockwise turns, and negative numbers anti-clockwise turns. So for example L2 is a clockwise quarter turn of the left disc, and R-1 is an anti-clockwise turn of the right disc by one step, one eighth of a full turn.

## Solution to Pie 3:

Phase 1: Solve the top half of the left disc.

1. Choose which colour you want the top half of the left disc to be. I'll assume it to be red in the steps below.
2. Place a red piece at the left hand side of the top left half disc.
3. Move the slider to the right.
4. Rotate the right disc until a red piece lies at the left of the slider's half disc.
5. Move the slider to the left.
6. Rotate the left disc clockwise one step to add the red piece to the top half.
7. Repeat steps c-f until all four red pieces lie in the top half of the left disc.

Phase 2: Solve the second disc.

1. Rotate the right disc until it matches one of the patterns in the table below. Then do the associated optimal move sequence to solve it.
Right discSolution
YYYYGGGGDo nothing
YYYGGGYGL-2 R1 L-1 R-1 L3
YYYGGYGGL-1 R1 L-1 R-1 L2
YYGGYYGGL1 R-3 L-1 R-2 L1
YGYYGGYGL2 R1 L3 R1 L2
YGYYGYGGL-1 R-1 L-3 R-1 L-3
GYGYGYGYL-2 R3 L1 R1 L1 R2 L-2

## Solution to Pie 6:

Phase 1: Solve the top half of the left disc.

1. Choose which two colours you want the top half of the left disc to be. In the steps below I'll assume it to be grey at the top left, and red at the top right.
2. Place a red piece at the left hand side of the top left half disc, but such that the other red piece does not also lie in that half disc.
3. Move the slider to the right.
4. Rotate the right disc until the second red piece lies at the left of the slider's half disc.
5. Move the slider to the left.
6. Rotate the left disc clockwise one step to add the red piece to the top half.
7. If there are grey pieces in the top left half disc, then turn the right disc so that there is no grey piece in its top half, and do L2 R2 L-2.
8. Move the slider to the right.
9. Rotate the right disc until a grey piece lies at the left of the slider's half disc.
10. Move the slider to the left.
11. Rotate the left disc clockwise one step to add the grey piece to the top half.
12. Repeat steps h-k for the second grey piece.

The following move sequence swaps the two pieces lying in the top right quarter of the right disc:
L1 R2 L-1 R-2 L2 R1 L-2 R-1
The second disc can be solved with this sequence alone.

Phase 2: Solve the second disc.

1. Choose a piece to use as a reference point. This piece will be considered already solved, and all the other pieces will be solved relative to this piece. If you already have two pieces of the same colour that are already next to each other, use the pair of them for reference instead.
2. Examine the piece or pieces that are already solved, and determine which piece belongs clockwise immediately adjacent to them.
3. Rotate the right disc so that the piece you want to move lies at the right of the top right half disc.
4. Apply the move sequence mentioned above to shift the piece one place anti-clockwise, bringing it closer to the block of solved pieces.
5. Repeat steps c-d until the piece is adjacent to the block of solved pieces, and so is itself also solved.
6. Repeat steps b-e until all the pieces are solved.

If you want to rearrange the colours of the Pie 3, any permutation is easily achieved using half turns only. To rearrange the colours of the Pie 6 however, just using quarter turns is not enough. This is because this problem is equivalent to permuting 6 corners of the Rubik's Cube using only moves of two adjacent faces. The page about the Two-generator corners group explains the mathematics of it.

Two swap two adjacent colours of the Pie 6, rotate them to the bottom, into the slider's half disc, and do the move sequence:
L2 R-3 L1 R3 L-3 R3 L1 R3
Then move the two colours back to where they were before.