OFFSET
0,1
COMMENTS
LINKS
Alois P. Heinz, Antidiagonals n = 0..20, flattened
EXAMPLE
Table T(n, k) starts
k = 2 3 4 5
-------------------------------------
n = 0 | 11 0 0 0
n = 1 | 101 0 10111 101111
n = 2 | 0 0 0 0
n = 3 | 0 0 1011001 10011101
PROG
(PARI) a(n, k) = i=0; forprime(p=10^(n+k-1), (10^(n+k)-1)/9, if(vecmax(digits(p))==1 && sumdigits(p)==k, return(p); i++; break)); if(i==0, return(0))
table(row, col) = for(x=0, row, for(y=2, col, print1(a(x, y), " ")); print(""))
table(4, 5) \\ print 5 X 4 table
CROSSREFS
KEYWORD
AUTHOR
Felix Fröhlich, Aug 10 2015
EXTENSIONS
More terms from Alois P. Heinz, Aug 17 2015
STATUS
approved