Here's an example of what I mean for mod 3: $1 => 1$, $2 => 2$, $3 => 3$, $4 => 1$ and so forth. This is for computer programming and while obviously I can easily calculate this I am simply curious whether it's possible without comparisons.
2026-03-25 23:37:04.1774481824
Compute mod $1..n$ instead of $0..n-1$
34 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
$$1 + ((n - 1) \mod 3)$$
I need more characters so here they are.