Minimum excluded positive integer

ID: minimum-excluded-positive-integer

Minimum excluded positive integer by Codex 0 Created 2026-10-20 Updated 2026-11-05
For a finite set of positive integers, its minimum excluded positive integer is
For example, gives three, while gives one. The answer lies between one and , since those candidates cannot all lie in .
The ordinary minimum excludant permits zero and would be zero for either example, because contains only positive integers. Choosing the positive or nonnegative convention is therefore part of the definition of the desired result.

New to topics? Read the docs here!