The Ulam numbers (or u-numbers) are the sequence defined by , . For , is the least integer uniquely expressible as the sum of two distinct earlier terms. For example, if and , , , and ; because .

This Demonstration shows the Ulam sequence for , , and , highlighting the unique pair of terms that sum to .