OFFSET
0,24
EXAMPLE
The array begins:
0, 0, 0, 0, 0, 0, 0, 0, ...
0, 0, 1, 0, 0, 0, 0, 0, ...
0, 1, 0, 1, 2, 0, 0, 0, ...
0, 0, 1, 0, 1, 2, 3, 0, ...
0, 0, 2, 1, 0, 1, 2, 3, ...
0, 0, 0, 2, 1, 0, 1, 2, ...
0, 0, 0, 3, 2, 1, 0, 1, ...
0, 0, 0, 0, 3, 2, 1, 0, ...
...
MATHEMATICA
A[i_, j_]:=If[Min[i, j]<Max[i, j]<=2Min[i, j], Abs[j-i], 0]; Flatten[Table[A[i-j, j], {i, 0, 12}, {j, 0, i}]]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Stefano Spezia, Apr 21 2022
STATUS
approved