The restrictions placed on this make it rather easy.
First, start with 1. This will give you the total sum of the coefficients, which must be greater than or equal to some number n for an n-degree polynomial.
Then, you can ask for any number b greater than the total sum of the coefficients. When you get this answer, you need to convert it to the base b and that will give you the coefficients.
For example, if you have 5x² + 6x + 2, giving 1 will get you an answer of 13. Suppose you then ask for 15. Your answer will be 1217. Converting this to base 15 will give you 562.
|
Posted by Eric
on 2005-06-13 20:59:50 |