The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A025321 Numbers that are the sum of 3 nonzero squares in exactly 1 way. 7

%I #34 Nov 03 2023 06:41:24

%S 3,6,9,11,12,14,17,18,19,21,22,24,26,29,30,34,35,36,42,43,44,45,46,48,

%T 49,50,53,56,61,65,67,68,70,72,73,76,78,82,84,88,91,93,96,97,104,106,

%U 109,115,116,120,133,136,140,142,144,145,157,163,168,169,172,176,180,184,190

%N Numbers that are the sum of 3 nonzero squares in exactly 1 way.

%C It appears that all terms have the form 4^i A094740(j) for some i and j. - _T. D. Noe_, Jun 06 2008

%C This is true, because A025427(4*n) = A025427(n) for all n. - _Robert Israel_, Mar 09 2016

%H Donovan Johnson, <a href="/A025321/b025321.txt">Table of n, a(n) for n = 1..605</a> (terms < 10^8; first 417 terms from T. D. Noe)

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/SquareNumber.html">Square Number</a>.

%H <a href="/index/Su#ssq">Index entries for sequences related to sums of squares</a>

%F A243148(a(n),3) = 1. - _Alois P. Heinz_, Feb 25 2019

%t lim=20; nLst=Table[0, {lim^2}]; Do[n=a^2+b^2+c^2; If[n>0 && n<lim^2, nLst[[n]]++ ], {a, lim}, {b, a, Sqrt[lim^2-a^2]}, {c, b, Sqrt[lim^2-a^2-b^2]}]; Flatten[Position[nLst, 1]] (* _T. D. Noe_, Jun 06 2008 *)

%t b[n_, i_, k_, t_] := b[n, i, k, t] = If[n == 0, If[t == 0, 1, 0], If[i<1 || t<1, 0, b[n, i - 1, k, t] + If[i^2 > n, 0, b[n - i^2, i, k, t - 1]]]];

%t T[n_, k_] := b[n, Sqrt[n] // Floor, k, k];

%t Position[Table[T[n, 3], {n, 0, 200}], 1] - 1 // Flatten (* _Jean-François Alcover_, Nov 06 2020, after _Alois P. Heinz_ in A243148 *)

%Y Cf. A000408, A025427, A243148.

%K nonn

%O 1,1

%A _David W. Wilson_

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 22 21:38 EDT 2024. Contains 372758 sequences. (Running on oeis4.)