%I #2 Mar 30 2012 17:35:16
%S 0,0,0,0,1,0,0,1,0,0,1,0,0,1,0,1,2,0,1,0,1,2,0,1,0,1,2,0,1,0,1,2,0,2,
%T 0,1,3,1,2,1,2,0,1,3,1,2,1,2,0,1,3,1,2,2,2,1,0,3,1,3,1,2,1,2,4,2,3,1,
%U 3,1,2,1,2,4,2,3,1,3,1,2,2,2,4,3,3,2,3,1,0,1,2,4,2,4,2,3,0,3,1,3,5,2,4,2,4
%N Express n as the sum of four squares, x^2+y^2+z^2+w^2, x>=y>=z>=w>=0, sequentially minimizing the value of x, y and z. a(n) is that w.
%e 10 = 2^2 + 2^2 + 1^2 + 1^2, so a(10) = 1. The only representation for 11 is 3^2 + 1^2 + 1^2 + 0^2, so a(11) = 1.
%Y Cf. A122921, A122922, A122923, A002331.
%K nonn
%O 0,17
%A _Franklin T. Adams-Watters_, Sep 19 2006
|