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!)
A212087 Number of (w,x,y,z) with all terms in {1,...,n} and w^2+x^2=y^2+z^2. 4

%I #6 Dec 04 2016 19:46:29

%S 0,1,6,15,28,45,66,95,132,173,210,267,320,385,458,523,600,693,786,899,

%T 1000,1109,1226,1367,1492,1629,1778,1931,2084,2269,2426,2615,2812,

%U 3013,3222,3427,3624,3857,4094,4335,4564,4841,5082,5379,5656,5913

%N Number of (w,x,y,z) with all terms in {1,...,n} and w^2+x^2=y^2+z^2.

%C For a guide to related sequences, see A211795.

%t t = Compile[{{n, _Integer}}, Module[{s = 0},

%t (Do[If[w^2 + x^2 == y^2 + z^2, s = s + 1],

%t {w, 1, #}, {x, 1, #}, {y, 1, #}, {z, 1, #}] &[n]; s)]];

%t Map[t[#] &, Range[0, 60]] (* A212087 *)

%t (* _Peter J. C. Moses_, Apr 13 2012 *)

%Y Cf. A211795.

%K nonn

%O 0,3

%A _Clark Kimberling_, May 02 2012

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 April 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)