$f(n)$ is defined such that if $n = 2$, $f(n) = 1$, if $n$ is prime and $1$ more than a multiple of $4$, $f(n) = 1$, if $n$ is prime and $3$ more than a multiple of $4$, $f(n) = -1$, and if $n$ is composite,
$$f(n) = f(a_1),f(a_2),f(a_3),\cdots,f(a_m)$$
, where $a_1,a_2,\cdots,a_m$ are the prime factors of $n$. $g(x)$ is defined such that
$$g(n) = f(2) + f(3) + f(4) + \cdots + f(n)$$
I have written a python program that checks all integers from $2$ to $5000$ for $n$-values where $g(n) \le 0$, and the program found that there were no $n$-values where $g(n)$ was negative, and the $n$-values where $g(n)$ was $0$ were $3$, $7$, $15$, $31$, $63$, $127$, $255$, $511$, $1023$, $2047$, and $4095$. However, I am aware that this is not a proof that the only zeros of $g(n)$ are one less than a power of $2$.
\cdots. – joriki Apr 18 '20 at 18:30