Guest User

Untitled

a guest
Jan 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. count(S, m, n) = count(S, m - 1, n) + count(S, m, n - S[m - 1]);
  2.  
  3. count(S, m, n < 0) = 0
  4. count(S, m, n = 0) = 1
  5. count(S, m <= 0, n >= 1) = 0
  6.  
  7. count(S, m, n) = count(S, m - 1, 2*n) + count(S, m, n - 2*S[m - 1]);
Add Comment
Please, Sign In to add comment