OFFSET
0,3
EXAMPLE
n = 12345 = 5+4*10+3*10^2+2*10^3+1*10^4 => a(n) = 5+4*13+3*13^2+2*13^3+1*13^4 = 33519
PROG
(PARI) r1tor2(n, r1, r2) = { local(m, x, r, v); for(j=0, n, v=0; m=j; for(x=0, length(Str(m))-1, r = m%r1; m =floor(m/r1); v += r*r2^(x); ); print1(v", ") ) }
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Cino Hilliard, Jun 12 2004
STATUS
approved