OFFSET
0,13
FORMULA
T(n, k)=floor[k^(n+1)/(k^2-1)] =T(n-2, k)+k^(n-1) =k*T(n-1, k)-((-1)^n-1)/2
EXAMPLE
T(5,3)=10101 base 3=81+9+1=91; T(4,6)=1010 base 6=216+6=222. Table starts {0,0,0,0,...}, {1,1,1,1,...}, {0,1,2,3,...}, {1,2,5,10,...}, ...
CROSSREFS
KEYWORD
AUTHOR
Henry Bottomley, Feb 26 2001
STATUS
approved