OFFSET
1,2
LINKS
Max Alekseyev, Table of n, a(n) for n = 1..300
Haikin Fedor, Table for partition problem (1998)
FORMULA
a(n) = smallest integer s such that there exist nonnegative integers x1 < x2 < ... < xn < sqrt(s) satisfying s*(n-1) = x1^2 + x2^2 + ... + xn^2. The n numbers stated in the definition are then given by s-x1^2, ..., s-xn^2. - Max Alekseyev, May 29 2024
EXAMPLE
a(2)=5 because 5=1+4 and both 1 and 4 are squares.
a(3)=55 because 55=6+19+30 and all three of 25=6+19, 36=6+30 and 49=19+30 are squares.
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
Link edited by N. J. A. Sloane, Jan 26 2009 at the suggestion of Steven Finch.
a(1)=1 prepended by Max Alekseyev, May 21 2022
Terms a(31) onward from Max Alekseyev, May 29 2024
STATUS
approved