In ancient Indian mathematics, a Vedic square is a variation on a typical 9×9 multiplication table. The entry in each cell is the digital root of the product of the column and row headings i.e. the remainder when the product of the row and column headings is divided by 9 (with remainder 0 represented by 9).
The Vedic Square can be viewed as the multiplication table of the monoid where is the set of positive integers partitioned by the residue classesmodulo nine. (the operator refers to the abstract "multiplication" between the elements of this monoid).
If are elements of then can be defined as by using the modulus operator mod, where the element 9 is representative of the residue class of 0 rather than the traditional choice of 0.
This does not form a group because not every non-zero element has a corresponding inverse element, for example but there is no such that .