I know of the
polynom package for typesetting long divisions of polynoms. What I want to do is to typeset a long division of two polynoms that contain not numbers but equivalence classes based on the modulo. By that I mean that I use sets of numbers where the division with rest by a predefined number yields the same number (e.g. if this number is 3, both 4 and 7 will be in the same class ) instead of actual numbers.
Anyway, with a package where I enter the calculation manually what non-numbers I calculate on would not be relevant.
polynom can't calculate those.
Is there a package that does this, either manually or automatically like