I found the following problem on the internet, and would like to know how I would go about solving it:
Problem: Integer Partition wit
This problem is taken verbatim from Steven Skiena's book "The Algorithm Design Manual". You can read the detailed discussion and his solution on Google Books. Better yet, buy the book.