Advertisement
Guest User

Untitled

a guest
Apr 11th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. lst=(expand(x^1100*(1-x^851)^4*(1-x^1501))).coefficients()
  2. f(x)=0
  3. coins=3000
  4. for l in lst:
  5.     if l[1] <= coins:
  6.         f += l[0]*binomial(x-l[1]+4,4)
  7. print f(coins)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement