The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.



Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A295150 Numbers that have exactly two representations as a sum of five nonnegative squares. 10
4, 5, 8, 9, 10, 11, 12, 14, 23, 24 (list; graph; refs; listen; history; text; internal format)



This sequence is finite and complete. See the von Eitzen Link and the proof in A294675 stating that for n > 5408, the number of ways to write n as a sum of 5 squares (without allowing zero squares) is at least floor(sqrt(n - 101) / 8) = 9. Since this sequence relaxes the restriction of zero squares, the number of representations for n > 5408 is at least nine. Then an inspection of n <= 5408 completes the proof.


E. Grosswald, Representations of Integers as Sums of Squares. Springer-Verlag, New York, 1985, p. 86, Theorem 1.


Table of n, a(n) for n=1..10.

H. von Eitzen, in reply to user James47, What is the largest integer with only one representation as a sum of five nonzero squares? on stackexchange.com, May 2014

D. H. Lehmer, On the Partition of Numbers into Squares, The American Mathematical Monthly, Vol. 55, No. 8, October 1948, pp. 476-481.


okQ[n_] := Length[PowersRepresentations[n, 5, 2]] == 2;

Select[Range[100], okQ] (* Jean-Fran├žois Alcover, Feb 26 2019 *)


Cf. A000174, A006431, A294675.

Sequence in context: A104883 A154885 A292192 * A042956 A128217 A288671

Adjacent sequences:  A295147 A295148 A295149 * A295151 A295152 A295153




Robert Price, Nov 15 2017



Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 19 06:37 EST 2020. Contains 331033 sequences. (Running on oeis4.)