OFFSET
1,2
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
FORMULA
Multiplicative with a(p) = p + 2*(2 - p mod 4), p prime.
EXAMPLE
a(26928) = a(2^4*3^2*11*17) = a(2)^4 * a(3)^2 * a(11) * a(17)
= 2^4 * 1^2 * 9 * 19 = 2736.
MATHEMATICA
a[1] = 1; a[p_?PrimeQ] = p + 2*(2 - Mod[p, 4]); a[n_] := Times @@ (a[#[[1]]]^#[[2]] & ) /@ FactorInteger[n]; Table[a[n], {n, 1, 71}] (* Jean-François Alcover, May 04 2012 *)
PROG
(Haskell)
a072010 1 = 1
a072010 n = product $ map f $ a027746_row n where
f 2 = 2
f p = p + 2 * (2 - p `mod` 4)
-- Reinhard Zumkeller, Apr 09 2012
CROSSREFS
KEYWORD
nonn,mult,nice
AUTHOR
Reinhard Zumkeller, Jun 05 2002
STATUS
approved