OFFSET
0,5
COMMENTS
All terms are multiples of 4 since the diagonals can be permuted. - Charles R Greathouse IV, Dec 12 2016
LINKS
Indranil Ghosh and Charles R Greathouse IV, Table of n, a(n) for n = 0..5000 (terms up to 200 from Indranil Ghosh)
PROG
(Python)
def t(n):
s=0
for a in range(n+1):
for b in range(n+1):
for c in range(n+1):
for d in range(n+1):
if (a!=b and a!=d and b!=d and c!=a and c!=b and c!=d):
if a*d+b*c==(a+d)**2:
s+=1
return s
for i in range(201):
print(str(i)+" "+str(t(i)))
(PARI) a(n)=my(n2=n^2); 4*sum(a=0, n, sum(d=a+1, n, my(t=(a+d)^2-a*d, c); if(t>0 && t<n2, sumdiv(t, b, b^2<t && a!=b && b!=d && (c=t/b)<=n && a!=c && c!=d), 0))) \\ Charles R Greathouse IV, Dec 12 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Indranil Ghosh, Dec 11 2016
STATUS
approved