This may be quite simple, but I am having trouble proving the closed form of this sum.
$$S(m,k)=\sum_{n=1}^\infty\frac{1}{k^{\lfloor{\log_m(n)}\rfloor}}$$
which converges for $m \lt k$.
From experimenting, it appears that the solution is $S(m,k)=\frac{km-k}{k-m}$ but how would we prove it.
The point is that because of the floor function in the exponent, the sum consists of groups of equal terms which can easily be added. Specifically,