OFFSET
2,4
FORMULA
T(nk, k)=T(n, k)+1; T(nk+m, k)=T(n, k) if 0<m<k; T(k, k)=1; T(n, k)=0 if n/2<k<n or 0<n<k.
EXAMPLE
Rows start:
1;
0,1;
2,0,1;
1,0,0,1;
1,1,0,0,1;
0,0,0,0,0,1;
3,0,1,0,0,0,1;
2,2,0,0,0,0,0,1;
etc.
9 can be written in bases 2-9 as: 1001, 100, 21, 14, 13, 12, 11 and 10, in which case the numbers of zeros are 2,2,0,0,0,0,0,1.
PROG
(PARI) T(n, k) = #select(x->(x==0), digits(n, k));
row(n) = vector(n-1, k, T(n, k+1));
tabl(nn) = for (n=2, nn, print(row(n))); \\ Michel Marcus, Sep 02 2020
CROSSREFS
KEYWORD
AUTHOR
Henry Bottomley, Nov 01 2002
STATUS
approved