I have the following summation:
$$F(k)=\sum\limits_{n=1}^k\sum\limits_{d|n}\gcd\left({d},{\frac{n}{d}}\right)$$
At this OEIS link (http://oeis.org/A055155), this exact summation is found. (Credits to Lucian for pointing this out on my previous post here.
They give a formula for it, which is as follows:
Multiplicative:
For even e: $$a(p^e) = {\frac{p^{\frac{e}{2}}(p+1)-2}{p-1}}$$
For odd e: $$a(p^e) = {\frac{2(p^{\frac{e+1}{2}}-1)}{p-1}}$$
Some sample results: a(4) should give 4, a(9) should give 5.
Can anyone get these results using the formula? Or have I interpreted it wrongly?
The way I see it, if calculating a(4), the variable e takes the value of 4, and the variable p takes the value 4^(1/4).