1,6

Number of integers k, 1 <= k <= n/2 such that n - 2k is a square.

Table of n, a(n) for n=1..105.

See Maple line.

a(11) = 2: the partitions are (1,10) and (5,6).

A084359 := n->if n mod 2 = 0 then floor(sqrt((n-2)/4))+1 else floor(sqrt((n-2)/4)-1/2)+1; fi; # applies for n >= 2

See A083023 for another version.

Sequence in context: A198333 A191591 A083023 * A143935 A008616 A331973

Adjacent sequences: A084356 A084357 A084358 * A084360 A084361 A084362

nonn

Amarnath Murthy, May 27 2003

approved