What is RNS?

Residue Number System (RNS) represents an integer by its residues modulo a set of pairwise coprime moduli. Computations occur independently per modulus and combine via the Chinese Remainder Theorem (CRT).

Basic setup:

Component-wise arithmetic (no carries across channels):

Reconstruction (CRT) for x:

Small example:

Why RNS is useful: