OFFSET
0,7
COMMENTS
EXAMPLE
Figure 1: .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
-------------------------------------------------------------------
n: 0 1 2 3 4 5 6 7 8 9 10
a(n): 0 0 0 0 1 1 2 2 3 4 4
-- .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
-------------------------------------------------------------------
n: 11 12 13 14 15 16 17
a(n): 5 6 6 7 8 9 9
--
n = 4 -->(0,0), (0,1), (1,1), (1,0) enclose one unit square.
n = 5 -->(0,0), (0,1), (1,1), (1,0), (0,2) also enclose one unit square.
n = 6 -->(0,0), (0,1), (1,1), (1,0), (0,2), (1,2) enclose two unit squares.
MAPLE
PROG
(PARI) a(n) = sum(i=1, n, !(issquare(i-1) || issquare(floor(i-sqrt(i-1))))); \\ Michel Marcus, Mar 21 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Oct 04 2014
STATUS
approved