login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A161882 Smallest k such that n^2 = a_1^2+...+a_k^2 and all a_i are positive integers less than n. 4
4, 3, 4, 2, 3, 3, 4, 3, 2, 3, 3, 2, 3, 2, 4, 2, 3, 3, 2, 3, 3, 3, 3, 2, 2, 3, 3, 2, 2, 3, 4, 3, 2, 2, 3, 2, 3, 2, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2 (list; graph; refs; listen; history; internal format)
OFFSET

2,1

COMMENTS

Related to hypotenuse numbers: A161882(A009003(n))=2 for all n.

Jacobi's four-square theorem can be used to show that a(n) <= 4. [Charles R Greathouse IV, Jul 31 2011]

LINKS

Jean-Charles Meyrignac, Computing minimal equal sums of like powers

Weisstein, Eric W., Diophantine Equation 2nd Powers

EXAMPLE

2^2 = 1^2 + 1^2 + 1^2 + 1^2, so a(2)=4. 3^2 = 2^2 + 2^2 + 1^2, so a(3)=3.

CROSSREFS

Cf. A161883, A161884, A161885.

Sequence in context: A170987 A196826 A204819 * A082125 A058290 A002285

Adjacent sequences:  A161879 A161880 A161881 * A161883 A161884 A161885

KEYWORD

nonn

AUTHOR

Dmitry Kamenetsky (dkamen(AT)rsise.anu.edu.au), Jun 21 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 10:28 EST 2012. Contains 205763 sequences.