OFFSET
0,2
PROG
(Python)
from sympy import factorint
def a(n):
if n == 0: return 1
f = factorint(n)
if n == 1 or sum(f.values()) == 1: return int(str(n)+'1')
return int("".join(str(p)*e for p, e in f.items()))
print([a(n) for n in range(53)]) # Michael S. Branicky, Jul 21 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Michel ten Voorde
a(22) onward corrected by Sean A. Irvine, Jul 21 2021
STATUS
approved