OFFSET
1,2
COMMENTS
That is, a(n) is the least k such that A180466(k) = n.
LINKS
Eric W. Weisstein, MathWorld: Waring's Problem
EXAMPLE
a(1) = 1 since 1 = 1^2;
a(2) = 27 since 27 = 1^2 + 1^2 + 5^2 = 3^2 + 3^2 + 3^2 (2 ways);
a(3) = 28 since 28 = 1^2 + 1^2 + 1^2 +5^2 = 1^2 + 3^2 + 3^2 + 3^2 = 2^2 + 2^2 + 2^2 + 4^2 (3 ways).
MATHEMATICA
t=Table[r=PowersRepresentations[n, 4, 2]; Sort[Tally[4-Count[#, 0] & /@ r]][[1, 2]], {n, 1000}]; u=Union[t]; c=Complement[Range[Max[u]], u]; If[c == {}, mx=u[[-1]], mx=c[[1]]-1]; Flatten[Table[Position[t, n, 1, 1], {n, mx}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Martin Renner, Jan 15 2011
STATUS
approved