OFFSET
1,1
LINKS
Max A. Alekseyev, On the number of two-dimensional threshold functions, arXiv:math/0602511 [math.CO], 2006-2010; SIAM J. Disc. Math. 24(4), 2010, pp. 1617-1631. doi:10.1137/090750184
MAPLE
V:=proc(m, n) local t1, i, j; t1:=0; for i from 1 to m do for j from 1 to n do if gcd(i, j)=1 then t1:=t1+(m+1-i)*(n+1-j); fi; od; od; t1; end; T:=(m, n)->(2*m*n+m+n+2*V(m, n));
MATHEMATICA
V[m_, n_] := Sum[Boole[CoprimeQ[i, j]]*(m-i+1)*(n-j+1), {i, m}, {j, n}];
T[m_, n_] := 2*m*n + m + n + 2*V[m, n];
Table[T[m - n + 1, n], {m, 1, 12}, {n, 1, m}] // Flatten (* Jean-François Alcover, Nov 28 2017 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
N. J. A. Sloane, Feb 24 2006
STATUS
approved