Numbers with Non-Decreasing Digits

  • Thread starter Thread starter e(ho0n3
  • Start date Start date
  • Tags Tags
    Numbers
Click For Summary
The discussion revolves around counting n-digit numbers with non-decreasing digits, where each digit must satisfy the condition 1 ≤ a[i] ≤ i. Participants explore different approaches to simplify the problem, including transforming it to require that the last digit equals n. They identify a connection to Catalan numbers, suggesting that the number of valid sequences corresponds to these numbers. The conversation highlights the complexity of deriving a straightforward formula, with various attempts to find patterns in the sequences and their differences. Ultimately, the challenge remains in accurately counting the sequences while adhering to the specified constraints.
  • #31
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
1134
1144

1222
1223
1224
1233
1234
1244

1333
1334
1344

1444

2222
2223
2224
2233
2234
2244

2333
2334
2344

2444

3333
3334
3344

3444

4444

It is easy to see that k(n)= S(1<=i<=n) [S(1<=j<=i) of {T(sub_i)(sub_j)}]
where T(sub_i)(sub_j) is the j-th triangular number and S represents a sumatoria (to add up)

Note: I hope you can understand me, I don't speak and write english very well.
 
Mathematics news on Phys.org
  • #32
Let be the matrix A=

[ \ t1 t2 t3 t4 ... t(n-3) t(n-2) t(n-1) tn ]
[ t1 \ t2 t3 t4 ... t(n-3) t(n-2) t(n-1) tn ]
[ t1 t2 \ t3 t4 ... t(n-3) t(n-2) t(n-1) tn ]
[ t1 t2 t3 \ t4 ... t(n-3) t(n-2) t(n-1) tn ]
[ t1 t2 t3 t4 \ ... t(n-3) t(n-2) t(n-1) tn ]
[ t1 t2 t3 t4 ... \ t(n-3) t(n-2) t(n-1) tn ]
[ t1 t2 t3 t4 ... t(n-3) \ t(n-2) t(n-1) tn ]
[ t1 t2 t3 t4 ... t(n-3) t(n-2) \ t(n-1) tn ]
[ t1 t2 t3 t4 ... t(n-3) t(n-2) t(n-1) \ tn ]
[ t1 t2 t3 t4 ... t(n-3) t(n-2) t(n-1) tn \ ]

where tn stands the n-th triangular number. Then, the number you are looking for is the sum of all the t(n's) under the line.
 
  • #33
nino, you're missing the condition that a<=i. So, the first digit can not be larger than 1...
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
644
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K