OFFSET
1,1
COMMENTS
The digits of T(n,k) are k pairs 10 followed by n-k pairs 01.
LINKS
FORMULA
EXAMPLE
Triangle begins:
k=1 k=2 k=3 k=4
n=1: 10
n=2: 1001, 1010,
n=3: 100101, 101001, 101010,
n=4: 10010101, 10100101, 10101001, 10101010
...
For n=5,k=3, the 10 and 01 digit pairs are
vvvvvv k = 3 pairs 10
T(5,3) = 1010100101
^^^^ n-k = 2 pairs 01
PROG
(PARI) T(n, k) = (10*100^n - 9*100^(n-k)) \ 99;
CROSSREFS
KEYWORD
AUTHOR
Kevin Ryde, Jul 18 2021
STATUS
approved