#NEWLINE# def cyclic( n ) : #NEWLINE# #INDENT# '\n    Generates the cyclic group of order n, Cn.\n\n    Examples\n    ========\n\n    >>> from sympy.combinatorics.permutations import Permutation\n    >>> Permutation.print_cyclic = True\n    >>> from sympy.combinatorics.generators import cyclic\n    >>> list(cyclic(5))\n    [(4), (0 1 2 3 4), (0 2 4 1 3),\n     (0 3 1 4 2), (0 4 3 2 1)]\n\n    See Also\n    ========\n    dihedral\n    ' #NEWLINE# gen = list ( range ( n ) ) #NEWLINE# for i in range ( n ) : #NEWLINE# #INDENT# ( yield Permutation ( gen ) ) #NEWLINE# gen = rotate_left ( gen , 1 )