|
|
A235204
|
|
Number of integer lattice points inside the square ABCD with side length n>0 with A(0|0), B(n*sqrt(2)/2| n*sqrt(2)/2), C(0| n*sqrt(2)) and D(-n*sqrt(2)/2| n*sqrt(2)/2).
|
|
1
|
|
|
2, 5, 13, 18, 32, 41, 50, 72, 85, 113, 128, 145, 181, 200, 242, 265, 313, 338, 365, 421, 450, 512, 545, 578, 648, 685, 761, 800, 882, 925, 968, 1058, 1105, 1201, 1250, 1301, 1405, 1458, 1568, 1625, 1682, 1800, 1861, 1985, 2048, 2178, 2245, 2312, 2450
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (2*z^2 + 1 - (-1)^z)/4, where z = ceiling(sqrt(2)*n). - Giovanni Resta, Jan 10 2014
|
|
MATHEMATICA
|
a[n_] := Block[{z = Ceiling[Sqrt[2]*n]}, (1-(-1)^z+2*z^2)/4]; Array[a, 50] (* Giovanni Resta, Jan 10 2014 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|