OFFSET
1,1
COMMENTS
Row sums give A038573.
LINKS
G. C. Greubel, Rows n = 1..100 of triangle, flattened
FORMULA
From Philippe Deléham, Feb 29 2004: (Start)
a(n) = A062534(n-1) mod 2.
T(n-1, k-1) = A074909(n, n-k) mod 2. (End)
T(n, k) = 1 if bitand(n, k) = k, and 0 otherwise. - Amiram Eldar, Aug 24 2024
EXAMPLE
Triangle begins with:
1;
0, 1;
1, 1, 1;
0, 0, 0, 1;
1, 0, 0, 1, 1;
0, 1, 0, 1, 0, 1;
1, 1, 1, 1, 1, 1, 1; ...
MATHEMATICA
T[n_, k_]:= T[n, k]= If[k<0 || k>n, 0, If[k==n, 1, Mod[T[n-1, k] + T[n-1, k-1], 2]]]; Table[T[n, k], {n, 1, 10}, {k, 1, n}] (* G. C. Greubel, Feb 03 2019 *)
Table[Boole[BitAnd[n, k] == k], {n, 1, 14}, {k, 1, n}] // Flatten (* Amiram Eldar, Aug 24 2024 *)
PROG
(PARI) T(n, k)=if(k<0 || k>n, 0, if(n==0, 1, (T(n-1, k)+T(n-1, k-1))%2))
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Benoit Cloitre, Feb 28 2004
STATUS
approved