OFFSET
1,1
COMMENTS
This is also the sequence of non-singly-even numbers that contain more than one distinct prime factor.
Integers n such that A024361(n)>1; subsequence of both A024355 and A042965. - Ray Chandler, Feb 03 2020
REFERENCES
Beiler, Albert H.: Recreations In The Theory Of Numbers, Chapter XIV, The Eternal Triangle, Dover Publications Inc., New York, 1964, pp. 104-134.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
As 15 is the second integer that can occur as either leg in more than one primitive Pythagorean triangle - (8,15,17) and (15,112,113) - then a(2)=15.
MATHEMATICA
PrimitiveRightTriangleLegs[1]:=0; PrimitiveRightTriangleLegs[n_Integer?Positive]:=Module[{f=Transpose[FactorInteger[n]][[1]]}, If[Mod[n, 4]==2, 0, 2^(Length[f]-1)]]; Select[Range[150], PrimitiveRightTriangleLegs[ # ]>1 &]
PROG
(PARI) is(n)=n%4!=2 && !isprimepower(n) && n>1 \\ Charles R Greathouse IV, Jun 17 2013
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Ant King, Feb 17 2009
STATUS
approved