OFFSET
0,2
FORMULA
EXAMPLE
a(0) = 0 from (i,j) = ().
a(1) = 6 from (i,j) = (-1,+-1), (1,+-1), (+-1,0).
a(2) = 10: (-1,+-2), (-1,+-1), (+-1,0), (1, +-2), (1,+-1).
MATHEMATICA
a[n_] := 2 Floor[(n+1)/2] + 4 Sum[Floor[n/(2k+1)], {k, 0, Floor[(n+1)/2]-1}]
PROG
(PARI) a(n) = {my(nb = 0); for(i=-n, n, if ((i % 2), for(j=-n, n, if (abs(i*j) <= n, nb++); ); ); ); nb; } \\ Michel Marcus, Apr 10 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Lorenz H. Menke, Jr., Mar 18 2016
STATUS
approved