OFFSET
1,2
COMMENTS
n and a(n) have the same parity.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
FORMULA
Algorithm:
1. factorize n;
2. order prime factors by decreasing size;
3. concatenate prime factors and interpret the result as a decimal number.
EXAMPLE
m = 100 = 2*2*5*5 -> {2,5} -> {5,2} -> 52 = a(100);
a(510510) = 1713117532, while A084317(510510) = 2357111317.
MAPLE
with(numtheory):
a:= n-> parse(cat(`if`(n=1, 1, sort([factorset(n)[]], `>`)[]))):
seq(a(n), n=1..100); # Alois P. Heinz, May 02 2016
MATHEMATICA
f[n_] := FromDigits[ Flatten[ IntegerDigits /@ Reverse[ Flatten[ Table[ # [[1]], {1}] & /@ FactorInteger[n]]]]]; Table[ f[n], {n, 1, 70}]
Table[FromDigits[Flatten[IntegerDigits/@Reverse[FactorInteger[n][[All, 1]]]]], {n, 90}] (* Harvey P. Dale, Oct 10 2017 *)
CROSSREFS
KEYWORD
AUTHOR
Labos Elemer, Jun 27 2003
EXTENSIONS
Edited by Robert G. Wilson v, Jul 15 2003
STATUS
approved