Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
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!)
A070105 Number of integer triangles with perimeter n and prime side lengths which are obtuse and scalene. 5
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 2, 0, 1, 0, 2, 0, 1, 0, 2, 0, 0, 0, 3, 0, 1, 0, 1, 0, 2, 0, 0, 0, 0, 0, 3, 0, 1, 0, 3, 0, 4, 0, 3, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 3, 0, 1, 0, 5, 0, 4, 0, 5, 0, 5, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,35
COMMENTS
a(n) = 0 if n is even. - Robert Israel, Jul 26 2024
LINKS
MAPLE
f:= proc(n) local a, b, q, bmin, bmax, t;
t:= 0;
if n::even then return 0 fi;
for a from 1 to n/3 by 2 do
if not isprime(a) then next fi;
bmin:= max(a+1, (n+1)/2-a); if bmin::even then bmin:= bmin+1 fi;
q:= (n^2-2*n*a)/(2*(n-a));
if q::integer then bmax:= min((n-a)/2, q-1) else bmax:= min((n-a)/2, floor(q)) fi;
t:= t + nops(select(b -> isprime(b) and isprime(n-a-b), [seq(b, b=bmin .. bmax, 2)]))
od;
t
end proc:
map(f, [$1..100]); # Robert Israel, Jul 26 2024
CROSSREFS
Sequence in context: A276491 A035177 A194591 * A111397 A131743 A357860
KEYWORD
nonn,look
AUTHOR
Reinhard Zumkeller, May 05 2002
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 September 11 17:54 EDT 2024. Contains 375839 sequences. (Running on oeis4.)