|
Search: id:A156685
|
|
|
| A156685 |
|
The number of primitive Pythagorean triples A^2+B^2=C^2 with 0<A<B<C and gcd(A,B)=1 that have an hypotenuse C that is less than or equal to n. |
|
+0 1
|
|
| 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12
(list; graph; listen)
|
|
|
OFFSET
|
1,13
|
|
|
COMMENT
|
D. N. Lehmer has proved that the asymptotic density of a(n) is a(n)/n = 1/(2pi) = 0.1591549...
|
|
REFERENCES
|
Lehmer, Derrick Norman; Asymptotic Evaluation of Certain Totient Sums, American Journal of Mathematics, Vol. 22, No. 4, (Oct. 1900), pp. 293-335.
|
|
LINKS
|
Ron Knott, Right-angled Triangles and Pythagoras' Theorem
|
|
FORMULA
|
Partial sums of A024362
|
|
EXAMPLE
|
There is one primitive Pythagorean triple with an hypotenuse less than or equal to 7 - (3,4,5) - hence a(7)=1
|
|
MATHEMATICA
|
RightTrianglePrimitiveHypotenuses[1]:=0; RightTrianglePrimitiveHypotenuses[n_Integer?Positive]:=Module[{f=Transpose[Facto\ rInteger[n]], a, p, mod1posn}, {p, a}=f; mod1=Select[p, Mod[ #, 4]==1&]; If[Length[a]>Length[mod1], 0, 2^(Length[mod1]-1)]]; RightTrianglePrimitiveHypotenuses[ # ] &/@Range[75]//Accumulate
|
|
CROSSREFS
|
A008846, A020882, A024409, A024362
Sequence in context: A124156 A072749 A066490 this_sequence A124230 A090973 A076634
Adjacent sequences: A156682 A156683 A156684 this_sequence A156686 A156687 A156688
|
|
KEYWORD
|
easy,nice,nonn
|
|
AUTHOR
|
Ant King (mathstutoring(AT)ntlworld.com), Feb 17 2009
|
|
|
Search completed in 0.002 seconds
|