# Function Repository Resource:

# SmallestPartsFunction

Total number of smallest parts in the partitions of a positive integer

Contributed by: George Beck
 ResourceFunction["SmallestPartsFunction"][n] gives the total number of smallest parts in the integer partitions of the positive integer n.

## Details and Options

A partition of n is a list of weakly decreasing positive integers that add up to n. For instance, written compactly, these are the five partitions of 4: 4, 31, 22, 211, 1111.

## Examples

### Basic Examples

Here is an illustrative example:

 In:= Out= The integer partitions of 3:

 In:= Out= The smallest parts:

 In:= Out= The number of smallest parts per partition:

 In:= Out= Their total:

 In:= Out= Here are the first 10 numbers in the smallest part function (spt) sequence:

 In:= Out= ### Neat Examples

The function spt(n) satisfies some congruences similar to Ramanujan’s congruences for the partition function p(n).

Numbers of the form 5n+4 have spt divisible by 5:

 In:= Out= Numbers of the form 7n+5 have spt divisible by 7:

 In:= Out= Numbers of the form 13n+6 have spt divisible by 13:

 In:= Out= 