def __add__(self, other):
        """Return permutation that is other higher in rank than self.

        The rank is the lexicographical rank, with the identity permutation
        having rank of 0.

        Examples
        ========

        >>> from sympy.combinatorics.permutations import Permutation
        >>> Permutation.print_cyclic = False
        >>> I = Permutation([0, 1, 2, 3])
        >>> a = Permutation([2, 1, 3, 0])
        >>> I + a.rank() == a
        True

        See Also
        ========

        __sub__, inversion_vector

        """
        rank = self.cardinality % (self.rank() + other)
        rv = Perm.unrank_lex(self.size, rank)
        rv._rank = rank
        return rv
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/permutations.py/Permutation.__add__/swapped operands of `%`