I would like to make a function based off a number, that arranges the digits 1 through 9 in all possible combinations.
Example:
1 2 3 4 5 6 7 8 9 1
1 2 3 4 5 6 7 9 8 2
1 2 3 4 5 6 8 7 9 3
1 2 3 4 5 6 8 9 7 4
1 2 3 4 5 6 9 7 8 5
1 2 3 4 5 6 9 8 7 6
1 2 3 4 5 7 6 8 9 7
1 2 3 4 5 7 6 9 8 8
1 2 3 4 5 7 8 6 9 9
1 2 3 4 5 7 8 9 6 10
1 2 3 4 5 7 9 6 8 11
1 2 3 4 5 7 9 8 6 12
So the first nine digits, should be calculated with a formula, based off the number at the end (which goes from 1 - 12)
Any insight would be appreciated,
Thanks!
Example:
1 2 3 4 5 6 7 8 9 1
1 2 3 4 5 6 7 9 8 2
1 2 3 4 5 6 8 7 9 3
1 2 3 4 5 6 8 9 7 4
1 2 3 4 5 6 9 7 8 5
1 2 3 4 5 6 9 8 7 6
1 2 3 4 5 7 6 8 9 7
1 2 3 4 5 7 6 9 8 8
1 2 3 4 5 7 8 6 9 9
1 2 3 4 5 7 8 9 6 10
1 2 3 4 5 7 9 6 8 11
1 2 3 4 5 7 9 8 6 12
So the first nine digits, should be calculated with a formula, based off the number at the end (which goes from 1 - 12)
Any insight would be appreciated,
Thanks!