OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
FORMULA
EXAMPLE
a(2)=6 because a disk of diameter 2 covers the 6 net points surrounding the deep hole.
MATHEMATICA
a[n_] := Sum[Boole[4*(i^2 + i*j + j^2) <= n^2 && Mod[i - j, 3] != 0], {i, -n, n}, {j, -n, n}];
Array[a, 52] (* Jean-François Alcover, Oct 08 2017, after Andrew Howroyd *)
PROG
(PARI) a(n) = sum(i=-n, n, sum(j=-n, n, 4*(i^2 + i*j + j^2) <= n^2 && (i-j) % 3 != 0)); \\ Andrew Howroyd, Sep 16 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Feb 08 2007
EXTENSIONS
Terms a(23) and beyond from Andrew Howroyd, Sep 16 2017
STATUS
approved