OFFSET
0,3
COMMENTS
Row lengths are given by A230093.
EXAMPLE
The first nonempty rows are:
n | list of m
0 | 0 // since 0 = 0 + 0
2 | 1 // since 2 = 1 + 1
4 | 2 // etc.
6 | 3 // Below 10 every odd row is empty, but thereafter,
8 | 4 // only rows 20, 31, 42, ..., 108 (steps of 11),
10 | 5 // 110, 121, 132, ..., 198, etc. are empty.
11 | 10 // Since 11 = 10 + (1 + 0)
12 | 6
13 | 11 // The first prime that yields a prime: 11 + (1 + 1) = 13.
(...)
100 | 86 // The first row of length 2 is 101:
101 | 91, 100 // 101 = 91 + (9 + 1) = 100 + (1 + 0 + 0)
102 | 87
(...)
PROG
(PARI) A320870_row(n)=if(n, select(m->m+sumdigits(m)==n, [max(n-9*logint(n, 10)+8, n\/2)..n-1]), [0])
CROSSREFS
KEYWORD
nonn,tabf,base
AUTHOR
M. F. Hasler, Nov 09 2018
STATUS
approved