View the basis of factorial
Like any natural number n can be
Write where k, d_1, d_2 ,..., and d_k are none active integers and for every 1 ≤ i ≤ k, d_i ≤ i. This will display the factorial basis. Write a program that is a natural number n received from the input and display it in a factorial basis.
You can input a number in the first place. And then the algorithm that you specified. Factorials with the result in the display.
The output of the above formula is created.