OFFSET
1,2
COMMENTS
a(n) is negative iff n is a square.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = (-n)^tau(n) = (-n)^A000005(n).
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
KEYWORD
sign
AUTHOR
Franklin T. Adams-Watters, Oct 19 2012
STATUS
approved