OFFSET
0,3
COMMENTS
This sequence converts any number from various "Catalan Base number systems" (when represented as decimal numbers) back to the integer the numeral represents: e.g. we have a(A014418(n)) = n and a(A244159(n)) = n (except for the latter this is eventually broken by the shortcomings of the decimal representation used, while for the former it works for all n, because no digits larger than 3 will ever appear in the terms of A014418).
For 1- and 2-digit numbers the same as A156230. - R. J. Mathar, Jun 27 2014
MAPLE
A244158 := proc(n)
local dgs, k ;
dgs := convert(n, base, 10) ;
add( op(k, dgs)*A000108(k), k=1..nops(dgs)) ;
end proc: # R. J. Mathar, Jan 31 2015
PROG
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Antti Karttunen, Jun 22 2014
STATUS
approved