Smallest k such that n^2 = a_1^2 + ... + a_k^2 and all a_i are positive integers less than n.

A161882

Smallest k such that n^2 = a_1^2 + ... + a_k^2 and all a_i are positive integers less than n.

Terms

    a(0) =4a(1) =3a(2) =4a(3) =2a(4) =3a(5) =3a(6) =4a(7) =3a(8) =2a(9) =3a(10) =3a(11) =2a(12) =3a(13) =2a(14) =4a(15) =2a(16) =3a(17) =3a(18) =2a(19) =3a(20) =3a(21) =3a(22) =3a(23) =2a(24) =2a(25) =3a(26) =3a(27) =2a(28) =2a(29) =3

External references