OFFSET
0,2
LINKS
FORMULA
MATHEMATICA
Table[Times @@ MapIndexed[Prime[First@ #2]^#1 &, Reverse@ Sort@ FactorInteger[#][[All, -1]]] - Boole[# == 1] &@ Apply[Times, FactorInteger[#] /. {p_, e_} /; e > 0 :> Times @@ (p^Mod[e, 2])] &[Times @@ Map[#1^#2 & @@ # &, FactorInteger[#] /. {p_, e_} /; e == 1 :> {Times @@ Prime@ Range@ PrimePi@ p, e}] &[Times @@ Prime@ Flatten@ Position[#, 1] &@ Reverse@ IntegerDigits[n, 2]]], {n, 0, 52}] (* Michael De Vlieger, Mar 18 2017 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 18 2017
STATUS
approved