OFFSET
0,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
EXAMPLE
For n = 42:
- 42 mod (1+4) = 2,
- 42 mod (1+2) = 0,
- hence a(42) = 20.
PROG
(PARI) a(n) = fromdigits(apply(d -> n%(d+1), digits(n)))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jan 05 2020
STATUS
approved