OFFSET
1,5
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
a:= n-> mul (i, i=map (x-> x[1], select (x-> isprime (x[1]) and irem (x[1], 4)=1, ifactors(n)[2]))): seq (a(n), n=1..120);
MATHEMATICA
Table[Times@@Select[Transpose[FactorInteger[n]][[1]], Mod[#, 4]==1&], {n, 90}] (* Harvey P. Dale, Dec 07 2012 *)
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i, 1] % 4 == 1, f[i, 1], 1)); } \\ Amiram Eldar, Jun 09 2025
CROSSREFS
KEYWORD
nonn,mult,easy
AUTHOR
N. J. A. Sloane, Dec 22 2009
EXTENSIONS
Corrected and extended with Maple program by Alois P. Heinz, Dec 23 2009
STATUS
approved
