def RubikGroup(n):
 from sympy.combinatorics.generators import rubik
 if (n <= 1):
  raise ValueError('Invalid cube . n has to be greater than 1')
 return PermutationGroup(rubik(n))

def RubikGroup ( n ) : from sympy . combinatorics . generators import rubik if ( n <= 1 ) : raise ValueError ( 'Invalid cube . n has to be greater than 1' ) return PermutationGroup ( rubik ( n ) )
return a group of rubiks cube generators .