TITLE: Find $1^2+3^2+...99^2$ given $1^1+2^2+...+100^2$ and $1^1+2^2+...+50^2$
QUESTION [7 upvotes]: We know that $1^1+2^2+...+100^2=338350$ and $1^1+2^2+...+50^2=42925$. Find $1^2+3^2+...99^2$.
I don't know really where to start. I tried to find a pattern in the sequences, but there was none. Can I substitute values for the equations?

REPLY [6 votes]: As mentioned in the comments the sum of the series can be derived in the following way
$$\sum_{i=1}^{2n}i^2=1^2+2^2+3^2+...+(2n)^2=\frac{2n(2n+1)(4n+1)}{6}$$
Similarly,
$$\sum_{i=1}^{n}{(2i)}^2=2^2+4^2+...+(2n)^2=4\sum_{i=1}^{n}{i}^2=\frac{2n(n+1)(2n+1)}{3}$$
Subtacting gives required sum
$$\sum_{i=1}^{n}{(2i-1)}^2=1^2+3^2+...+(2n-1)^2=\frac{2n(2n+1)(4n+1)}{6}-\frac{4n(n+1)(2n+1)}{6}=\frac{2n(2n+1)(4n+1-2n-2)}{6}=\frac{n(2n+1)(2n-1)}{3}$$
Put $n=50$ to get required solution.
which gives 
$${50(101)33}=166650$$