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!)
A308514 Take all the integer-sided triangles with perimeter n and side lengths a, b and c such that a <= b <= c and a is prime. a(n) is the sum of all the b's. 0
0, 0, 0, 0, 0, 2, 2, 3, 6, 7, 11, 9, 14, 11, 22, 18, 31, 26, 41, 30, 54, 41, 68, 53, 83, 66, 99, 73, 109, 80, 119, 87, 140, 105, 162, 124, 185, 144, 222, 178, 261, 214, 302, 241, 334, 269, 367, 298, 401, 328, 453, 363, 494, 399, 536, 436, 598, 493, 662, 552 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
Wikipedia, Integer Triangle
FORMULA
a(n) = Sum_{k=1..floor(n/3)} Sum_{i=k..floor((n-k)/2)} sign(floor((i+k)/(n-i-k+1))) * A010051(k) * i.
MATHEMATICA
Table[Sum[Sum[i (PrimePi[k] - PrimePi[k - 1]) Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
Table[Total[Select[IntegerPartitions[n, {3}], PrimeQ[#[[3]]]&&#[[3]]+#[[2]]>#[[1]]&][[All, 2]]], {n, 100}] (* Harvey P. Dale, Nov 27 2020 *)
CROSSREFS
Sequence in context: A091770 A032058 A241744 * A039866 A106369 A298436
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 02 2019
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 July 18 09:18 EDT 2024. Contains 374378 sequences. (Running on oeis4.)