A004053 For m=2,3,..., write m in bases 2,3,..,m.
10, 11, 10, 100, 11, 10, 101, 12, 11, 10, 110, 20, 12, 11, 10, 111, 21, 13, 12, 11, 10, 1000, 22, 20, 13, 12, 11, 10, 1001, 100, 21, 14, 13, 12, 11, 10, 1010, 101, 22, 20, 14, 13, 12, 11, 10, 1011, 102, 23, 21, 15, 14, 13, 12, 11, 10, 1100, 110, 30, 22, 20, 15, 14, 13, 12, 11, 10
Offset: 2
Examples
Triangle begins: 10; 11, 10; 100, 11, 10; 101, 12, 11, 10; 110, 20, 12, 11, 10; 111, 21, 13, 12, 11, 10; 1000, 22, 20, 13, 12, 11, 10; 1001, 100, 21, 14, 13, 12, 11, 10; ...
Links
- Alois P. Heinz, Rows n = 2..20, flattened (row 21 would require digits > 9)
Programs
-
Mathematica
FromDigits/@Flatten[Table[IntegerDigits[m,b],{m,2,20},{b,2,m}],1] (* Harvey P. Dale, Dec 01 2024 *)
-
PARI
T(n, k) = fromdigits(digits(n, k), 10); tabl(nn) = for (n=2, nn, for (b=2, n, print1(T(n, b), ", "))); \\ Michel Marcus, Aug 30 2019