Residue Number System - Defining A Residue Number System

Defining A Residue Number System

A residue number system is defined by a set of N integer constants,

{m1, m2, m3, ..., mN },

referred to as the moduli. Let M be the least common multiple of all the mi.

Any arbitrary integer X smaller than M can be represented in the defined residue number system as a set of N smaller integers

{x1, x2, x3, ..., xN}

with

xi = X modulo mi

representing the residue class of X to that modulus.

Note that for maximum representational efficiency it is imperative that all the moduli are coprime; that is, no modulus may have a common factor with any other. M is then the product of all the mi.

For example RNS(4|2) has non-coprime moduli, resulting in the same representation for different values.

(3)decimal = (3|1)RNS(4|2) (7)decimal = (3|1)RNS(4|2)

Read more about this topic:  Residue Number System

Famous quotes containing the words defining, residue, number and/or system:

    Art, if one employs this term in the broad sense that includes poetry within its realm, is an art of creation laden with ideals, located at the very core of the life of a people, defining the spiritual and moral shape of that life.
    Ivan Sergeevich Turgenev (1818–1883)

    Every poem of value must have a residue [of language].... It cannot be exhausted because our lives are not long enough to do so. Indeed, in the greatest poetry, the residue may seem to increase as our experience increases—that is, as we become more sensitive to the particular ignitions in its language. We return to a poem not because of its symbolic [or sociological] value, but because of the waste, or subversion, or difficulty, or consolation of its provision.
    William Logan, U.S. educator. “Condition of the Individual Talent,” The Sewanee Review, p. 93, Winter 1994.

    ... in every State there are more women who can read and write than the whole number of illiterate male voters; more white women who can read and write than all Negro voters; more American women who can read and write than all foreign voters.
    —National Woman Suffrage Association. As quoted in History of Woman Suffrage, vol. 4, ch. 13, by Susan B. Anthony and Ida Husted Harper (1902)

    ... the yearly expenses of the existing religious system ... exceed in these United States twenty millions of dollars. Twenty millions! For teaching what? Things unseen and causes unknown!... Twenty millions would more than suffice to make us wise; and alas! do they not more than suffice to make us foolish?
    Frances Wright (1795–1852)