I have the function $f(x) = x^3 + 1$
and I want to calculate the following:
$f(x) = (\frac{a}{25})^3 + 1 $
Where "$a$" is 1,2,3,4,..,50.
1 through 50
Basically I'm adding up $f(1) + f(2) + f(3) + f(4),+..,f(50)$
I want to know if there a easier way of doing this instead of just adding each number on your calculator.
It turns out that $$ \sum_{n=1}^Nn^3=\frac{N^2(N+1)^2}{4} $$ for all natural numbers $N$, hence $$ \sum_{n=1}^{50}f\Big(\frac{n}{25}\Big)=\sum_{n=1}^{50}\Big[\frac{n^3}{25^3}+1\Big]=50+\frac{1}{25^3}\sum_{n=1}^{50}n^3=50+\frac{50^2\cdot 51^2}{4\cdot 25^3}$$