|
|
A235337
|
|
Number of integer lattice points inside the square ABCD with side length n>0 with A(-n*sqrt(2)/2| 0), B(n*sqrt(2)/2| 0), C(0| n*sqrt(2)/2) and D(-n*sqrt(2)/2| 0).
|
|
1
|
|
|
1, 5, 13, 13, 25, 41, 41, 61, 85, 113, 113, 145, 181, 181, 221, 265, 313, 313, 365, 421, 421, 481, 545, 545, 613, 685, 761, 761, 841, 925, 925, 1013, 1105, 1201, 1201, 1301, 1405, 1405, 1513, 1625, 1625, 1741, 1861, 1985, 1985, 2113, 2245, 2245, 2381, 2521
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) := 2*z^2-2*z+1, where z = ceiling(n*sqrt(2)/2). - Giovanni Resta, Jan 10 2014
|
|
MATHEMATICA
|
a[n_] := Block[{z = Ceiling[Sqrt[2]*n/2]}, 1-2*z+2*z^2]; Array[a, 50] (* Giovanni Resta, Jan 10 2014 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|