Let be K(n)=all the numbers obtained with the conditions of your problem.
***If n=1 then k(n)=1
1
***If n=2 then k(n)=3
11
12
22
***If n=3 then k(n)=10
111
112
113
122
123
133
222
223
233
333
***If n=4 then k(n)=35
1111
1112
1113
1114
1122
1123
1124
1133...