OFFSET
0,1
MATHEMATICA
g[k_, n_] :=
If[k == 0, n,
Total@Flatten@
MapIndexed[#1 (k + 2)^(#2 - 1) &,
Reverse@IntegerDigits[#, k + 1]] &@g[k - 1, n] - 1]; Table[
g[n, 16], {n, 0, 36}]
CROSSREFS
KEYWORD
nonn,fini
AUTHOR
Natan Arie Consigli, May 24 2016
STATUS
approved