> In the "odd" cases, the center cubie of each face should be fixed. > This fixes an orientation of the cube in space. In the "even" cases, I'm > not sure how to fix an orientation.
I see. The numbers work now: >>> for i in range(1, 4): ... print i, PermutationGroup(rubik_cube(i)).order() ... 1 24 2 88179840 3 43252003274489856000 for the 2x2 when you divide by 24 you get the correct value >>> PermutationGroup(rubik_cube(2)).order()/24 3674160 And case 4 cannot be handled recursively to calculate the order, but it can still be manipulated (e.g. rotated) >>> R4=PermutationGroup(rubik_cube(4)) >>> R4.make_perm([0]) Permutation([76, 72, 68, 64, 77, 73, 69, 65, 78, 74, 70, 66, 79, 75, 71, 67, 28, 24, 20, 16, 29, 25, 21, 17, 30, 26, 22, 18, 31, 27, 23, 19, 12, 8, 4, 0, 13, 9, 5, 1, 14, 10, 6, 2, 15, 11, 7, 3, 51, 55, 59, 63, 50, 54, 58, 62, 49, 53, 57, 61, 48, 52, 56, 60, 92, 88, 84, 80, 93, 89, 85, 81, 94, 90, 86, 82, 95, 91, 87, 83, 44, 40, 36, 32, 45, 41, 37, 33, 46, 42, 38, 34, 47, 43, 39, 35]) /c -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
