OFFSET
1,1
LINKS
John Cerkan, Table of n, a(n) for n = 1..9
EXAMPLE
6 in binary is 110. Reinterpreting 110 in base 6 gives 1 * 6^2 + 1 * 6^1 + 0 * 6^0 = 36 + 6 = 42.
MATHEMATICA
NestList[FromDigits[IntegerDigits[#, 2], 6] &, 2, 8] (* Alonso del Arte, Jan 22 2019 *)
PROG
(PARI) a(n) = if (n==1, 2, fromdigits(binary(a(n-1)), 6)); \\ Michel Marcus, Jan 22 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved