OFFSET
1
LINKS
MATHEMATICA
{1}~Join~Table[Boole[Count[#, 1] == Count[#, 3]] &@ Mod[Flatten[ConstantArray[#1, #2] & @@@ FactorInteger[n]], 4], {n, 2, 120}] (* Michael De Vlieger, Mar 11 2021 *)
PROG
(PARI) A342025(n) = {my(f = factor(n)); sum(k=1, #f~, ((f[k, 1] % 4)==1)*f[k, 2]) == sum(k=1, #f~, ((f[k, 1] % 4)==3)*f[k, 2]); }; \\ From isok function in A072202
(Python)
from sympy import factorint
def A342025(n):
f = factorint(n)
return int(sum(b for a, b in f.items() if a % 4 == 3) == sum(b for a, b in f.items() if a % 4 == 1)) # Chai Wah Wu, Mar 09 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 09 2021
STATUS
approved