OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
Wikipedia, Partition
EXAMPLE
-------------------------------------
Number
Partitions of 5 of terms
-------------------------------------
5 .......................... 1
1 + 4 ...................... 2
2 + 3 ...................... 2
1 + 1 + 3 .................. 3
1 + 2 + 2 .................. 3
1 + 1 + 1 + 2 .............. 4
1 + 1 + 1 + 1 + 1 .......... 5
-------------------------------------
There are 7 partitions of the integer 5 is 7. The four partitions 1 + 1 + 3, 1 + 2 + 2, 1 + 1 + 1 + 2 and 1 + 1 + 1 + 1 + 1 each have at least 3 parts, so a(5) = 3.
PROG
(Magma) lst:=[]; k:=1; s:=0; for m in [0..8] do s+:=NumberOfPartitions(m); while k le s do Append(~lst, k); k+:=1; end while; Append(~lst, s); end for; lst;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Arkadiusz Wesolowski, Feb 03 2017
STATUS
approved