Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"Brute-force" solution :

sage: var("y, z")
(y, z)

The right-hand size involves a constant ; compute it once...

sage: R = sum(z*binomial((1001-z),950),z,1,51) ; R

Brute force check of all possible (integer) solution candidates :

sage: [u for u in range(1003) if binomial(1002,u)==R]
[50, 952]

If this is homework, your professor may or may not appreciate this answer : there might be subtler points in his/her course...

HTH nevertheless...