OFFSET
0,5
COMMENTS
Row sums are: 1, 2, 14, 26, 42, 62, 138, 208, 472, 870, 1528, ...
LINKS
G. C. Greubel, Rows n = 0..100 of the triangle, flattened
FORMULA
T(n, k, q) = Sum_{j=0..10} q^j * floor(A174093(n, k)/2^j), for q = 2.
EXAMPLE
Triangle begins as:
1;
1, 1;
1, 12, 1;
1, 12, 12, 1;
1, 12, 16, 12, 1;
1, 13, 17, 17, 13, 1;
1, 16, 36, 32, 36, 16, 1;
1, 17, 49, 37, 37, 49, 17, 1;
1, 32, 93, 92, 36, 92, 93, 32, 1;
1, 33, 124, 197, 80, 80, 197, 124, 33, 1;
1, 36, 204, 304, 197, 44, 197, 304, 204, 36, 1;
MATHEMATICA
A174093[n_, k_]:= If[n<2, 1, Binomial[n-k+1, k] + Binomial[k+1, n-k]];
T[n_, k_, q_]:= Sum[q^j*Floor[A174093[n, k]/2^j], {j, 0, 10}];
Table[T[n, k, 2], {n, 0, 12}, {k, 0, n}]//Flatten (* modified by G. C. Greubel, Feb 10 2021 *)
PROG
(Sage)
def A174093(n, k): return 1 if n<2 else binomial(n-k+1, k) + binomial(k+1, n-k)
def T(n, k, q): return sum( q^j*(A174093(n, k)//2^j) for j in (0..10) )
flatten([[T(n, k, 2) for k in (0..n)] for n in (0..12)]) # G. C. Greubel, Feb 10 2021
(Magma)
A174093:= func< n, k | n lt 2 select 1 else Binomial(n-k+1, k) + Binomial(k+1, n-k) >;
T:= func< n, k, q | (&+[ q^j*Floor(A174093(n, k)/2^j): j in [0..10]]) >;
[T(n, k, 2): k in [0..n], n in [0..12]]; // G. C. Greubel, Feb 10 2021
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, Mar 07 2010
EXTENSIONS
Edited by G. C. Greubel, Feb 10 2021
STATUS
approved