OFFSET
0,3
LINKS
A. Cobham, Uniform Tag Sequences, Mathematical Systems Theory, 6 (1972), 164-192.
FORMULA
EXAMPLE
n in init cumulative
n base 5 dgt sum
- ------ ---- ----------
0 0 0 0
1 1 1 1
2 2 2 3
3 3 3 6
4 4 4 10
5 10 1 11
PROG
(PARI) a(n) = if (n, sum(k=1, n, digits(k, 5)[1]), 0); \\ Michel Marcus, Dec 13 2017
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Aug 28 2005
STATUS
approved