OFFSET
2,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 2..10000
EXAMPLE
24 = 2^3 * 3^1 has binary encoding 10_11_11_1, that is, 95 in decimal.
PROG
(Python)
import sympy
[int(''.join([bin(y)[2:] for x in sorted(sympy.ntheory.factorint(n).items()) for y in x]), 2) for n in range(2, 200)] # compute a(n) for n > 1
# Chai Wah Wu, Jul 15 2014
(PARI) a(n) = {f = factor(n); s = []; for (i=1, #f~, s = concat(s, binary(f[i, 1])); s = concat(s, binary(f[i, 2])); ); subst(Pol(s), x, 2); } \\ Michel Marcus, Jul 16 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Chai Wah Wu, Jul 15 2014
STATUS
approved