(self, j)
return r
Returns the repeated div mod of the number.

        :param j: int
        :return: list
Returns the repeated div mod of the number.
Returns the repeated div mod of the number .
def encode(self, j):
        """Returns the repeated div mod of the number.

        :param j: int
        :return: list
        """
        if j == 0:
            return [j]
        r = []
        dividend = j
        while dividend > 0:
            dividend, remainder = divmod(dividend, _BASE)
            r.append(remainder)
        r = list(reversed(r))
        return r
def encode ( self , j ) : if j == 0 : return [ j ] r = [ ] dividend = j while dividend > 0 : dividend , remainder = divmod ( dividend , _BASE ) r . append ( remainder ) r = list ( reversed ( r ) ) return r