Never seen that kind of problem before.
Does it go on? or is that the end at 5940? I'll assume it does end at the highest exponent 3.
Where does k come from? I'll assume it doesn't matter or it's p, which can be solved after we know what p is.
because of the readiness to plug it into pascal's triangle as a and b.
The problem ends with the highest power being 3 (on ) which fits the the above part of Pascal's triangle.
So we now have n.
So what to the 3rd power equals? 5940
So now we have p.
.... is the place where qx exists.
So q= 3(Px)
(because 1 which is a to the second power (1^2) is just one and it doesn't change the equation)
Because p= a in its location in pascal's triangle
Ask if I talked too complicated or missed a mental/verbal/mathematical/grammatical/social/economical step.