Hello, there is a task
A ladder is a set of cubes, in which each upper layer contains cubes smaller than the previous one. It is required to write a program that calculates the number of ladders that can be built from N cubes.
Input data
The input file INPUT.TXT contains a positive integer N (1 β€ N β€ 100) - the number of cubes in the ladder.
Output
In the output file OUTPUT.TXT you need to display the number of ladders that can be built from N cubes.
I encountered Recursion 1 time, I understood what it was, but I donβt know how to approach this task, write in general terms how to organize everything. Thank.
PS I do not ask you to do everything for me completely, the task is not educational (any kind of lab) Here is the link to the original.
And in the task there are not steps, but the number of variations of ladders, that is, if 6 cubes are given, that is, 4 options: 6, 5 + 1.4 + 2.1 + 2 + 3.