Status: IN
`distinct_numbers(n)` is an O(1) closed-form solution: returns 1 if `n == 1`, else `n - 1`, based on the insight that `x % (x-1) == 1` cascades from `n` down to `2`.
Source: entries/2026/06/06/count-distinct-numbers-on-board-solution.md
JSON