Let $n_{1}, n_{2}, ... n_{k} $ be a sequence of k consecutive odd integers. If $n_{1} + n_{2} + n_{3} = p^3$ and $n_{k} + n_{k-1} + n_{k-2} + n_{k-3} + n_{k-4} = q^4$ where both p and q are prime, what is k?
I am struggling with this question. I know the first sum can be written as $3n_{1} + 6 = p^3$ and the second sum can be written as $5n_{k} - 20 = q^4$. I believe the second sum is also $5n_{1} +10k - 30 = q^4$. However rearranging these I get no workable equations.
Hints:
The sum of $3$ consecutive odd integers is always a multiple of $3$.
What does that imply about $p$?
Can you then find $n_1,n_2,n_3$?
The sum of $4$ odd numbers is always a multiple of $2$.
What does that imply about $q$?
Can you finish?
Note:$\;$The wording of the problem is a little sneaky. The phrase "consecutive odd integers" doesn't automatically mean consecutive increasing (although by default, it usually does). Keep that in mind.