OFFSET
0,3
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
FORMULA
To represent a number in base b, if a digit is >= b, subtract b and carry 1. In fractional base a/b, subtract a and carry b.
EXAMPLE
From Petros Hadjicostas, Jul 22 2020: (Start)
14 = 6*(7/6)^2 + 5*(7/6)^1 + 0*(7/6)^0 = 650_{7/6};
15 = 6*(7/6)^2 + 5*(7/6)^1 + 1*(7/6)^0 = 651_{7/6};
21 = 6*(7/6)^3 + 5*(7/6)^2 + 4*(7/6)^1 + 1*(7/6)^0 = 6541_{7/6};
22 = 6*(7/6)^3 + 5*(7/6)^2 + 4*(7/6)^1 + 2*(7/6)^0 = 6542_{7/6};
28 = 6*(7/6)^4 + 5*(7/6)^3 + 4*(7/6)^2 + 3*(7/6)^1 + 0*(7/6)^0 = 65430_{7/6}. (End)
PROG
(PARI) a(n) = {if(n<1, 0, a(n\7 * 6) * 10 + n%7)}; \\ Andrew Howroyd, Aug 19 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Terms a(44) and beyond from Andrew Howroyd, Aug 19 2019
STATUS
approved