OFFSET
0,3
EXAMPLE
a(8) = 3; The partitions of 8 into two parts are (7,1), (6,2), (5,3) and (4,4). There are 3 total nonzero squares among the parts (namely 1, 4 and 4 ), so a(8) = 3.
a(9) = 2; The partitions of 9 into two parts are (8,1), (7,2), (6,3) and (5,4). Since 1 and 4 are the only nonzero squares among all parts, a(9) = 2.
MATHEMATICA
Table[Sum[Floor[Sqrt[i]] - Floor[Sqrt[i - 1]] + Floor[Sqrt[n - i]] - Floor[Sqrt[n - i - 1]], {i, Floor[n/2]}], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Nov 26 2020
STATUS
approved