OFFSET
1
LINKS
FORMULA
PROG
(PARI) A358766(n) = ((-1)^bigomega(sigma(n)));
(Python)
from functools import reduce
from operator import ixor
from collections import Counter
from sympy import factorint
def A358766(n): return -1 if reduce(ixor, sum((Counter(factorint((p**(e+1)-1)//(p-1))) for p, e in factorint(n).items()), Counter()).values(), 0)&1 else 1 # Chai Wah Wu, Dec 23 2022
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Antti Karttunen, Dec 18 2022
STATUS
approved