countkpartitions

Calculates the total number of partitions of a number ,n, into the sum of ,k, numbers. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Integer k
  2. Integer n

Output

Number of partitions

Examples

countkpartitions