|
|
A049201
|
|
If n is not composite, a(n) = n followed by 1; if n is composite, a(n) = concatenation of prime factors of n.
|
|
1
|
|
|
1, 11, 21, 31, 22, 51, 23, 71, 222, 33, 25, 111, 223, 131, 27, 35, 2222, 171, 233, 191, 225, 37, 211, 231, 2223, 55, 213, 333, 227, 291, 235, 311, 22222, 311, 217, 57, 2233, 371, 219, 313, 2225, 411, 237, 431, 2211, 335, 223, 471, 22223, 77, 255, 317, 2213
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
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()))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|