need help in EQUILIBR problem

in test case of EQUILIBR we have given 5 vectors & sum of magnitude of vectors is also 5
then possible case could be: {5,0,0,0,0} after arranging it we got 5 case.
next {4,1,0,0,0} after arrnging we got 20 case.
next {3,2,0,0,0} again we got 20 after arranging.
next {3,1,1,0,0} here we got 30 case after arranging.
next {2,2,1,0,0} here we got again 30 case.
next {2,1,1,1,0} here we got 20 case.
next{1,1,1,1,1} here we got 1 case after arranging.

so total we got 126 case in which polygon is formed (k/2 less condition) there 51 case.

i dont understand how we got p=11 & q=16
please help me in @ EQUILIBR problem???

It is given that the magnitude of the vector can be any non-negative real number, hence there are infinite cases for n=5 and k=5, not 126 and the formula is derived either by integration or by logical approach.