OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
To represent a number in base b, if a digit exceeds b, subtract b and carry 1. In fractional base a/b, subtract a and carry b.
MAPLE
a:= proc(n) `if`(n<1, 0, irem(n, 7, 'q')+a(3*q)*10) end:
seq(a(n), n=0..57); # Alois P. Heinz, May 14 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved