login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A010555
a(n) = 1 if n is the product of an even number of distinct primes, otherwise a(n) = -1.
1
1, -1, -1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1
OFFSET
1,1
COMMENTS
The old definition was mobius(mobius(n)). The reason for this sequence was that in some ancient version of Maple the command "with(numtheory): A010555 := n->mobius(mobius(n));" worked. But it no longer works, so the definition has been changed.
LINKS
FORMULA
a(n) = (-1)^(1-A353629(n)). - Antti Karttunen, Jan 17 2025
PROG
(PARI) A010555(n) = if(1==moebius(n), 1, -1); \\ Antti Karttunen, Jan 17 2025
CROSSREFS
Cf. A008683, A030229 (positions of positive terms), A353629 (their characteristic function).
Sequence in context: A119664 A257075 A330034 * A108784 A127252 A244513
KEYWORD
sign,easy,changed
EXTENSIONS
Definition changed by N. J. A. Sloane, Jan 15 2019
STATUS
approved