The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A308307 Number of integer-sided triangles with perimeter n and at least one side length that is not semiprime. 0
0, 0, 1, 0, 1, 1, 2, 1, 3, 2, 4, 2, 5, 3, 7, 4, 8, 6, 9, 8, 11, 8, 13, 10, 15, 13, 18, 15, 19, 17, 23, 19, 24, 20, 28, 26, 32, 28, 35, 32, 40, 36, 43, 38, 44, 40, 50, 46, 54, 49, 57, 52, 60, 56, 66, 58, 69, 66, 78, 72, 80, 76, 89, 83, 93, 88, 99, 91, 100, 96 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
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))) * (1 - A064911(i) * A064911(k) * A064911(n-i-k)).
a(n) = A005044(n) - A308069(n).
MATHEMATICA
Table[Sum[Sum[(1 - KroneckerDelta[PrimeOmega[i], 2] KroneckerDelta[PrimeOmega[k], 2] KroneckerDelta[PrimeOmega[n - i - k], 2])*Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
CROSSREFS
Sequence in context: A290636 A106466 A130722 * A147541 A308308 A024162
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 19 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 May 20 14:04 EDT 2024. Contains 372716 sequences. (Running on oeis4.)