Case 1:
Enter natural numbers for creating partitions: 5
All Unique Partitions of 5 are:-
5
4 1
3 2
3 1 1
2 2 1
2 1 1 1
1 1 1 1 1
Case 2:
Enter natural numbers for creating partitions: 8
All Unique Partitions of 8 are:-
8
7 1
6 2
6 1 1
5 3
5 2 1
5 1 1 1
4 4
4 3 1
4 2 2
4 2 1 1
4 1 1 1 1
3 3 2
3 3 1 1
3 2 2 1
3 2 1 1 1
3 1 1 1 1 1
2 2 2 2
2 2 2 1 1
2 2 1 1 1 1
2 1 1 1 1 1 1
1 1 1 1 1 1 1 1