title: How many times does one number divide into another, and how much is left over?
body: <p>I need an algorithm in Delphi to generate partitions for a specified integer value.</p>
  
  <p>Example: for 13 if 5 is specified as the max value for partition it will give 5,5,3; if 4 is specified as max partition value the result should be 4,4,4,1, and so on.</p>