OFFSET
1,2
COMMENTS
Index of first occurrence of n in A019554. - Franklin T. Adams-Watters, Nov 17 2006
LINKS
Michel Marcus, Table of n, a(n) for n = 1..5000
FORMULA
Multiplicative with a(p^e) = p^{2e-1}. - Franklin T. Adams-Watters, Nov 17 2006
Dirichlet g.f.: Product_{p prime} (1 - p/(p^2 - p^s)). - Amiram Eldar, Aug 28 2023
a(n) = A350390(n^2). - Amiram Eldar, Nov 30 2023
MATHEMATICA
a[n_] := n^2/Times @@ FactorInteger[n][[All, 1]];
Array[a, 70] (* Jean-François Alcover, Jun 11 2019 *)
PROG
(Sage)
def A102631(n) :
p = n
for a in factor(n) :
if a[1] > 1 :
p = p * a[0]^(a[1]-1)
return p
[A102631(n) for n in (1..67)] # Peter Luschny, Feb 07 2012
(PARI) a(n) = my(f=factor(n)); for (k=1, #f~, f[k, 2] = 2*f[k, 2]-1); factorback(f); \\ Michel Marcus, Aug 20 2017
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Reinhard Zumkeller, Feb 25 2005
STATUS
approved