Ask HN: Can you work out how this is done? (repost)
The question is not well defined. If <i>m</i> is the degree of the polynomial, you want <i>∀ i ∈ {0, ..., m}, c_i ≥ 0</i> and  <i>∃ i ∈ {1, ..., m}, c_i &gt; 0</i>. Otherwise the solution is either trivial or not unique.<p>&gt; Do you find this interesting?<p>Depends. For a pedagogical tool in 5th to 8th grades, maybe.<p>There may be some reason it is a compelling exercise which I am not seeing though. So, you might want to explain why you find this interesting enough to post it twice.