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!)
A056138 Number of ways in which n can be the shorter leg (shortest side) of an integer-sided right triangle. 1

%I #11 Dec 11 2019 22:05:38

%S 0,0,1,0,1,1,1,1,2,1,1,2,1,1,3,2,1,2,1,3,3,1,1,4,2,1,3,3,1,3,1,3,4,1,

%T 3,5,1,1,4,5,1,3,1,3,5,1,1,7,2,2,4,3,1,3,3,5,4,1,1,9,1,1,5,4,4,4,1,3,

%U 4,3,1

%N Number of ways in which n can be the shorter leg (shortest side) of an integer-sided right triangle.

%F a(n) = A046079(n) - A056137(n) = A046081(n) - A046080(n) - A056137(n).

%o (PARI) a(n)=my(b);sum(c=n+2,n^2\2+1,issquare(c^2-n^2,&b) && n<b) \\ _Charles R Greathouse IV_, Jul 07 2013

%Y Cf. A009004, A055525, A055527.

%K nonn

%O 1,9

%A _Henry Bottomley_, Jun 15 2000

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 June 8 09:36 EDT 2024. Contains 373217 sequences. (Running on oeis4.)