OFFSET
0,3
COMMENTS
The base 7/3 expansion is unique, and thus the sum of digits function is well-defined.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
EXAMPLE
In base 7/3 the number 7 is represented by 30 and so a(7) = 3 + 0 = 3.
MAPLE
a:= proc(n) `if`(n<1, 0, irem(n, 7, 'q')+a(3*q)) end:
seq(a(n), n=0..69); # Alois P. Heinz, May 14 2021
PROG
(Sage) # uses [basepqsum from A245355]
[basepqsum(7, 3, y) for y in [0..200]]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
James Van Alstine, Jul 18 2014
EXTENSIONS
Definition corrected by Georg Fischer, May 14 2021
STATUS
approved