OFFSET
0,2
COMMENTS
Conjecture: The sequence never becomes monotonic increasing. - Jon Perry, Nov 03 2012
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2000 (first 501 terms from T. D. Noe)
FORMULA
{min k: A025428(k) = n}. - R. J. Mathar, Jun 15 2018
EXAMPLE
a(2) = 31 because 31 = 1 + 1 + 4 + 25 = 4 + 9 + 9 + 9 and no others.
a(3) = 28 because 28 = 1 + 1 + 1 + 25 = 1 + 9 + 9 + 9 = 4 + 4 + 4 + 16 and no others.
a(4) = 52 because 52 = 1 + 1 + 1 + 49 = 1 + 1 + 25 + 25 = 4 + 16 + 16 + 16 = 9 + 9 + 9 + 25 and no others.
MATHEMATICA
nn = 40; t = Select[Flatten[Table[a^2 + b^2 + c^2 + d^2, {a, nn}, {b, a}, {c, b}, {d, c}]], # <= nn^2 + 3 &]; {t1, t2} = Transpose[Sort[Tally[t]]]; u = Union[t2]; c = Complement[Range[u[[-1]]], u]; If[c == {}, last = u[[-1]], last = c[[1]] - 1]; Join[{0}, Table[t1[[Position[t2, n, 1, 1][[1, 1]]]], {n, last}]] (* T. D. Noe, Nov 02 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
0th term added by Jon Perry, Nov 02 2012
STATUS
approved