Partition of a number

To understand this question , familiarise yourself with the partition theory , a subset of number theory.
P(3)= 3.
that is, 1+1+1 ,
1+2 , and
3.
Can someone please provide a solution to this using recursion ?