I want to compute the remainder of $A$ divided by 1000, where $A$ is
$$A = \lfloor \frac{1^3}{2009} \rfloor + \lfloor \frac{2^3}{2009} \rfloor + \cdots + \lfloor \frac{2008^3}{2009} \rfloor.$$
I tried to observe the number of $x$'s that satisfies $\lfloor \frac{x^3}{2009} \rfloor = k$, for each $k$. However this turned out to be hard because I cannot find out general formula for such number in terms of $k$. Computing manually is also not possible because there are too many candidates for $k$. ($0 \sim \lfloor \frac{2008^3}{2009} \rfloor$)
Thank you for any form of hint, help, or solution.
It seems like you might be able to find a general form for \begin{equation*} \sum_{k=1}^{n} \frac{k^3}{2009}. \end{equation*} Fixing $n=2008$ might help thereafter. Modular arithmetic should quickly deal with the fractional part. Let me know if this is too vague of a hint.