Let $f(p_1^{a_1}...p_k^{a_k})=a_1$ where $p_1<...<p_k$ and let $g(n)=\sum_{k<=n}f(k)$. Then is $g(n)=\mathcal{O}(n)$?
I know that for $f(p_1^{a_1}...p_k^{a_k})=k$ we would have gotten $g(n)=\Theta(n\log\log n)$, which follows from the fact that $\sum_{p<=n}\frac1p=\Theta(\log\log n)$ where $p$ must be prime. However, I intuitively expect $f(p_1^{a_1}...p_k^{a_k})=a_1$ to be smaller on average.
If you're able to, I would also love to know if $g(n)/n$ converges to any specific value.
Let $h(n) = \sup_{p^e | n} e$. Any integer decomposes uniquely as $nm^2$ with $n$ square-free. Also $h(m) \le 2\log m$ thus
$$\sum_{n \le x} f(n) \le \sum_{n \le x} h(n)= \sum_{m \le x^{1/2}} \sum_{n \le x/m^2, |\mu(n)|=1} h(m^2 n)$$ $$ \le \sum_{n \le x} |\mu(n)| + \sum_{2 \le m \le x^{1/2}} (2 h(m)+1)\sum_{n \le x/m^2} |\mu(n)| \le x(1+ \sum_{2 \le m \le x^{1/2}} \frac{4\log(m)+1}{m^2})$$ $$ \le x(1+\zeta(2)-4\zeta'(2))$$
For a similar reason $\lim_{x \to \infty} \frac{\sum_{n \le x}f(n)}{x}$ converges to a non-zero value $\in [\frac{1}{\zeta(2)},1+\zeta(2)-4\zeta'(2)]$.