title: non-increasing partitions of integer number in R
body: <p>How to write a function in r that given an integer n  computes all non-increasing partitions of n.</p>
  <pre><code>Example:
  
  For n=3,
  
  1 1 1
  
  2 1
  
  3
  
   
  
  For n=4,
  
  1 1 1 1
  
  2 2
  
  2 1 1
  
  3 1
  
  4
  </code></pre>