login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A217854 Product of all divisors of n, positive or negative. 11
-1, 4, 9, -64, 25, 1296, 49, 4096, -729, 10000, 121, 2985984, 169, 38416, 50625, -1048576, 289, 34012224, 361, 64000000, 194481, 234256, 529, 110075314176, -15625, 456976, 531441, 481890304, 841, 656100000000, 961, 1073741824, 1185921 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) is negative iff n is a square.
LINKS
FORMULA
a(n) = (-n)^tau(n) = (-n)^A000005(n).
a(n) = A158387(n) * A062758(n). - Andrew Howroyd, Aug 31 2023
MATHEMATICA
a[n_] := (-n)^DivisorSigma[0, n]; Array[a, 33] (* Amiram Eldar, Aug 31 2023 *)
PROG
(PARI) a(n) = (-n)^numdiv(n); \\ Michel Marcus, Aug 31 2023
CROSSREFS
Sequence in context: A094083 A168251 A062758 * A369866 A028822 A270696
KEYWORD
sign
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)