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!)
A308253 Number of integer-sided triangles with perimeter n and nonprime side lengths. 3
0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 2, 2, 2, 3, 4, 2, 4, 4, 5, 3, 5, 4, 7, 6, 7, 8, 10, 6, 9, 8, 11, 7, 10, 8, 13, 11, 14, 15, 18, 11, 16, 14, 19, 19, 21, 20, 26, 26, 28, 30, 33, 25, 30, 30, 34, 27, 32, 29, 37, 35, 39, 40, 45, 44, 47, 47, 53 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,18
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))) * c(i) * c(k) * c(n-i-k), where c(n) = A005171(n).
MATHEMATICA
Table[Sum[Sum[(1 - PrimePi[i] + PrimePi[i - 1]) (1 - PrimePi[k] + PrimePi[k - 1]) (1 - PrimePi[n - i - k] + PrimePi[n - i - k - 1]) Sign[
Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
CROSSREFS
Cf. A005171.
Sequence in context: A052275 A338139 A244798 * A286614 A359481 A023508
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 17 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 March 29 02:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)