OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
f[p_, e_] := p^Ceiling[e/2]; s[1] = 1; s[n_] := Times @@ f @@@ FactorInteger[n]; s /@ Select[Range[2000], # == 1 || Min[FactorInteger[#][[;; , 2]]] > 1 &]
(* or *)
f[p_, e_] := p^Ceiling[e/2]; f[p_, 1] := 0; s[1] = 1; s[n_] := Times @@ f @@@ FactorInteger[n]; Select[Array[s, 2000], # > 0 &]
PROG
(PARI) s(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i, 2] == 1, 0, f[i, 1]^ceil(f[i, 2]/2))); }
lista(kmax) = {my(s1); for(k = 1, kmax, s1 = s(k); if(s1 > 0, print1(s1, ", "))); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Jan 23 2024
STATUS
approved