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!)
A095861 Number of primitive Pythagorean triangles of form (X,Y,Y+1) with hypotenuse Y+1 less than or equal to n. 2
0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,13
COMMENTS
Indices where records occur are hypotenuse values A001844 (Y+1); corresponding leg values given by A046092 (Y) and A005408 (X).
The number k, for k >= 0, appears exactly 4*(k+1) = A008586(k+1) times. The number k appears for the first time for a(4*T(k) + 1) = a(A001844(k)), where T(k) = A000217(k); see the preceding comment on records. - Wolfdieter Lang, Mar 01 2022
LINKS
Eric Weisstein's World of Mathematics, Pythagorean Triple.
FORMULA
a(n) = floor((sqrt(2*n-1) - 1)/2).
MAPLE
A095861 := proc (x) local y; y := 0; while (2*y+2)*(y+2) <= x do y := y+1 end do; return y end proc; map(A095861, [seq(k, k = 0 .. 100)]) # Stephen Crowley, Aug 01 2009
MATHEMATICA
Table[Floor[(Sqrt[2*n-1] - 1)/2], {n, 1, 100}] (* Jean-François Alcover, Apr 01 2018 *)
PROG
(Magma) [Floor((Sqrt(2*n-1)-1)/2): n in [1..105]]; // Vincenzo Librandi, Apr 01 2018
CROSSREFS
Sequence in context: A110591 A105209 A179076 * A111855 A071701 A342696
KEYWORD
nonn,easy
AUTHOR
Ray Chandler, Jun 20 2004
STATUS
approved

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 4 07:22 EDT 2024. Contains 372230 sequences. (Running on oeis4.)