Guest User

Untitled

a guest
Jul 29th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. p(x) = 2 + 3x + 5x⁴
  2.  
  3. general:
  4.  
  5. p(x) = ∑ aᵢxⁱ
  6.  
  7. given k and p(k)
  8.  
  9. aᵢ = (p(k)/kⁱ) mod k (using integer division)
  10.  
  11. The condition of the coefficients being smaller than k was a strong hint towards being able to divide through k to safely pop of the coefficients one by one.
Advertisement
Add Comment
Please, Sign In to add comment