a.
Observe that f(k)=k2−(k+1)2−(k+2)2+(k+3)2=4 for any integer k.
* If c=b+4m for some m∈Z, then c=b+∑k=1mf(4k−3).
* If c=b+4m+1 for some m∈Z, then c=b+12+∑k=1mf(4k−2).
* If c=b+4m+2 for some m∈Z, then c=b−12−22−32+42+∑k=1mf(4k+1).
* If c=b+4m+3 for some m∈Z, then c=b−12+22+∑k=1mf(4k−1).
Therefore, in any case we can write c as b±12±22±⋯±n2 for some n and some choices of the signs. This clearly solves the problem.
b.
The answer is 19.
Firstly, since 12+22+⋯+172=617⋅18⋅35=1785<2012, we have n≥18.
Secondly, when n=18, ±12±22±⋯±182≡1+0+⋯+1+0≡1(mod2). This shows b and c cannot have the same parity, which is a contradiction.
Lastly, it remains to provide a construction for n=19. Since
12+22+⋯+192=619⋅20⋅39=2470=2012+2×229=2012+2(22+152),
we can change the signs of 22 and 152 to negative, so that the new sum becomes 2012. This gives a corresponding quadratic sequence that satisfies the requirement.