Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123325
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123325 Number of distinct angles in all integer-sided triangles with all sides <= n. +0
3
1, 3, 9, 17, 35, 49, 82, 109, 149, 188, 262, 316, 419, 500, 607, 698, 876, 1004, 1222, 1383, 1589, 1782, 2108, 2318, 2634, 2914, 3253, 3564, 4088, 4411, 5000, 5392, 5917, 6410, 6995, 7468, 8308, 8926, 9661, 10268, 11313, 11976, 13136, 13951, 14875 (list; graph; listen)
OFFSET

1,2

COMMENT

Using the law of cosines, the angle A opposite side a has cos A = (b^2 + c^2 - a^2) / (2bc), and the cosine uniquely identifies an angle of a triangle.

PROGRAM

(PARI) A123325(n)=local(i, j, k, l); r=0; l=listcreate(n^3); for(i=1, n, for(j=1, n, for(k=1, n, if(gcd(i, gcd(j, k))==1&&2*max(i, max(j, k))<i+j+k, listput(l, (j^2+k^2-i^2)/(2*j*k)))))); listsort(l, 1); matsize(Vec(l))[2]

CROSSREFS

Cf. A123323, A123324.

Sequence in context: A090262 A006459 A049778 this_sequence A116688 A011755 A128301

Adjacent sequences: A123322 A123323 A123324 this_sequence A123326 A123327 A123328

KEYWORD

nonn

AUTHOR

Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Sep 25 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research