The integral that I'm trying to simplify is this: (both $x$ and $c$ are natural numbers, if that helps)
$$ \mathrm{F}\left(x,c\right) \equiv \int_{0}^{c}\left\lbrace\vphantom{\LARGE A}% \left\lfloor 10^{-\lfloor t \rfloor} x \right\rfloor - 10\left\lfloor 10^{-\lfloor t \rfloor - 1}x\right\rfloor \right\rbrace^{2}\, \mathrm{d}t $$
I know this is fairly ugly, please let me know if I need to modify it for the question. Thank you.
Edit: This integral came from the following sum:
$$ \sum_{n = 0}^{c}\left\lbrace\vphantom{\LARGE A}% \left\lfloor 10^{-n} x \right\rfloor - 10\left\lfloor 10^{-n - 1}x \right\rfloor \right\rbrace^{2} $$
Is there a way to simplify either that does not lead to a different sum ?.