I have the following integral:
$$\int_0^1k^{\left\lfloor\frac{1}{x}\right\rfloor}dx$$
My question is, is there a nice closed form of this integral?
I have not any idea where to start.
Maybe I could use the substitution $u=\frac{1}{x}$, so I get:
$$\int_0^1k^{\left\lfloor\frac{1}{x}\right\rfloor}dx=-\int_\infty^1\frac{k^{\left\lfloor u\right\rfloor}}{u^2}du$$
Well, first let $\text{s}:=\frac{1}{x}$ this implies that:
$$\mathscr{S}_\epsilon=-\int\limits_\infty^1\frac{\displaystyle\epsilon^{\left\lfloor\text{s}\right\rfloor}}{\displaystyle\text{s}^2}\space\text{ds}=\int\limits_1^\infty\frac{\displaystyle\epsilon^{\left\lfloor\text{s}\right\rfloor}}{\displaystyle\text{s}^2}\space\text{ds}\tag2$$
It is now not hard to see (because $\lfloor\text{s}\rfloor$ is constant on all the sub-intervals that we are integrating over) that we can write:
$$ \begin{alignat*}{1} \mathscr{S}_\epsilon&=\sum_{\text{n}\space\ge\space1}\int\limits_\text{n}^{\text{n}+1}\frac{\epsilon^{\left\lfloor\text{s}\right\rfloor}}{\text{s}^2}\space\text{ds}\\ \\ &=\sum_{\text{n}\space\ge\space1}\int\limits_\text{n}^{\text{n}+1}\frac{\epsilon^\text{n}}{\text{s}^2}\space\text{ds}\\ \\ &=\sum_{\text{n}\space\ge\space1}\epsilon^\text{n}\int\limits_\text{n}^{\text{n}+1}\frac{1}{\text{s}^2}\space\text{ds}\\ \\ &=\sum_{\text{n}\space\ge\space1}\epsilon^\text{n}\cdot\left[-\frac{1}{\text{s}}\right]_\text{n}^{\text{n}+1}\\ \\ &=\sum_{\text{n}\space\ge\space1}\epsilon^\text{n}\cdot\left[\frac{1}{\text{s}}\right]_{\text{n}+1}^\text{n}\\ \\ &=\sum_{\text{n}\space\ge\space1}\epsilon^\text{n}\cdot\left(\frac{1}{\text{n}}-\frac{1}{\text{n}+1}\right) \end{alignat*} \tag3 $$
Because if $\text{n}\le\text{s}<\text{n}+1$ we have $\lfloor\text{s}\rfloor=\text{n}$.
Now, I let you prove that when $\left|\epsilon\right|\le1$ the equality following holds:
$$\sum_{\text{n}\space\ge\space1}\epsilon^\text{n}\cdot\left(\frac{1}{\text{n}}-\frac{1}{\text{n}+1}\right)=\frac{\epsilon+\ln\left(1-\epsilon\right)-\epsilon\ln\left(1-\epsilon\right)}{\epsilon}\tag4$$
And you can do that using Taylor- or/and Maclaurin series.