Excel in math, science, and engineering
a,b are positive integers such that
1. the sum of their squares is S
2. the sum of their cubes is C times the sum of the numbers itself
What is the number of such pairs?