OFFSET
1,2
COMMENTS
Leading zeros are ignored.
Will every positive integer appear?
LINKS
Rémy Sigrist, C++ program
EXAMPLE
Array A(n, k) begins:
n\k| 1 2 3 4 5 6 7
---+-----------------------------------------------------
1| 1 12 3 111 121 321 113
2| 11 2 311 1121 32 1113 122
3| 112 31 1112 13 211 1312 2121
4| 1123 1111 21 32111 312 212 11211
5| 11231 11121 3211 131 22 121121 111112
6| 112311 11213 2111 3122 12112 111111 222
7| 1123111 1213 21113 12212 112111 111222 3131
.
Array A(n, k), with digits vertically aligned, begins:
+-+---+-+-----+-----+-----+-----+-------+-------+---------+
|1|1 2|3|1 1 1|1 2 1|3 2 1|1 1 3|1 2 2 1|2 1 1 2|1 1 1 1 1|
+-+-+-+-+---+-+-----+---+-+-----+-----+-+-----+-+-------+-+-----+
|1 1|2|3 1 1|1 1 2 1|3 2|1 1 1 3|1 2 2|1 2 1 1|2 1 1 1 1|1 1 2 2|
+---+-+---+-+-----+-+-+-+---+---+---+-+-----+-+-------+-+-------+
|1 1 2|3 1|1 1 1 2|1 3|2 1 1|1 3 1 2|2 1 2 1|1 2 1 1 1|1 1 1 2 2|
+-----+-+-+-----+-+-+-+-----+-+-----+-----+-+-------+-+-------+-+
|1 1 2 3|1 1 1 1|2 1|3 2 1 1 1|3 1 2|2 1 2|1 1 2 1 1|1 1 1 1 2|
+-------+-+-----+---+-------+-+---+-+-+---+-------+-+---------+
|1 1 2 3 1|1 1 1 2 1|3 2 1 1|1 3 1|2 2|1 2 1 1 2 1|1 1 1 1 1 2|
+---------+-+-------+-+-----+-+---+---+---------+-+---------+-+
|1 1 2 3 1 1|1 1 2 1 3|2 1 1 1|3 1 2 2|1 2 1 1 2|1 1 1 1 1 1|
+-----------+-+-------+-------+-+-----+---+-----+-----+-----+-----+
|1 1 2 3 1 1 1|1 2 1 3|2 1 1 1 3|1 2 2 1 2|1 1 2 1 1 1|1 1 1 2 2 2|
+-------------+-------+---------+---------+-----------+-----------+
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jun 28 2023
STATUS
approved