login
A245344
Sum of digits of n written in fractional base 7/3.
1
0, 1, 2, 3, 4, 5, 6, 3, 4, 5, 6, 7, 8, 9, 6, 7, 8, 9, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 8, 9, 10, 11, 12, 13, 14, 7, 8, 9, 10, 11, 12, 13, 10, 11, 12, 13, 14, 15, 16, 5, 6, 7, 8, 9, 10, 11, 8, 9, 10, 11, 12, 13, 14, 11, 12, 13, 14, 15, 16, 17
OFFSET
0,3
COMMENTS
The base 7/3 expansion is unique, and thus the sum of digits function is well-defined.
LINKS
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