OFFSET
0,4
COMMENTS
a(n) mod 8 = 0.
LINKS
Indranil Ghosh, Table of n, a(n) for n = 0..121
PROG
(Python)
def t(n):
s=0
for a in range(0, n+1):
for b in range(0, n+1):
for c in range(0, n+1):
for d in range(0, 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) in range(-n+1, n):
s+=1
return s
for i in range(0, 122):
print str(i)+" "+str(t(i))
CROSSREFS
KEYWORD
nonn
AUTHOR
Indranil Ghosh, Dec 09 2016
STATUS
approved