OFFSET
0,2
COMMENTS
The rascal triangle (A077028) can be generated by the rule South = (East*West+1)/North or South = East+West+1-North; this number triangle can also be generated by South = East+West+1-North, but there not by an equation of the form South = (East*West+d)/North.
LINKS
Philip K Hotchkiss, Generalized Rascal Triangles, arXiv:1907.11159 [math.HO], 2019.
FORMULA
G.f.: (-1+(3-2*x)*y+(-1+x)*y^2)/((-1+x)^2*(-1+y)^3). - Stefano Spezia, Sep 08 2019
EXAMPLE
For row n=3: T(3,0)=4, T(3,1)=6, T(3,2)=6, T(3,3)=7.
Triangle T begins:
1
2 2
3 4 4
4 6 7 7
5 8 10 11 11
6 10 13 15 16 16
7 12 16 19 21 22 22
8 14 19 23 26 28 29 29
9 16 22 27 31 34 36 37 37
...
MAPLE
T := proc(n, k)
if n<0 or k<0 or k>n then
0;
else
1+n+(1/2)*k^2-(1/2)k +k*(n-k);
end if;
MATHEMATICA
T[n_, k_]:=1+n+(1/2)*k^2-(1/2)k +k*(n-k); Table[T[n, k], {n, 0, 12}, {k, 0, n}]//Flatten
f[n_] := Table[SeriesCoefficient[(-1+(3-2*x)*y+(-1+x)*y^2)/((-1+x)^2*(-1+y)^3), {x, 0, i}, {y, 0, j}], {i, n, n}, {j, 0, n}]; Flatten[Array[f, 13, 0]] (* Stefano Spezia, Sep 08 2019 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Philip K Hotchkiss, Aug 07 2019
STATUS
approved