mej7.comHow AI Works

Modular addition

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

The toy task a + b (mod p) used in grokking papers. Small enough that the learned algorithm can be written down (Nanda et al., 2023).

In one paragraph. The toy task a + b (mod p) used in grokking papers. Small enough that the learned algorithm can be written down (Nanda et al., 2023).

Used in

Related terms

Full glossary