OFFSET
1,4
COMMENTS
If the sides of the inscribed square are parallel to bisector of coordinate axes we have a different sequence.
LINKS
Kirill Ustyantsev, illustrated example
PROG
(Python)
def a(n):
count = 0
for x in range(0, n):
for y in range(-n, n):
if x * x + y * y < n * n and 2 * x * x > n * n:
count += 1
return 4 * count
print([a(n) for n in range(1, 60)])
CROSSREFS
KEYWORD
nonn
AUTHOR
Kirill Ustyantsev, Apr 27 2018
EXTENSIONS
Offset corrected by Andrey Zabolotskiy, May 05 2018
STATUS
approved
