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!)
A335623 Perimeters of integer-sided triangles such that the average of each pair of side lengths is prime. 1
6, 7, 9, 11, 15, 17, 19, 21, 25, 27, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Since the average of any two prime side lengths of an isosceles triangle is itself a prime, p, the perimeters 3p are in the sequence for all primes p.
LINKS
Wikipedia, Integer Triangle
MATHEMATICA
Table[If[Sum[Sum[(1 - Ceiling[(i + k)/2] + Floor[(i + k)/2]) (1 - Ceiling[(n - i)/2] + Floor[(n - i)/2]) (1 - Ceiling[(n - k)/2] + Floor[(n - k)/2]) (PrimePi[(i + k)/2] - PrimePi[(i + k)/2 - 1])*(PrimePi[(n - i)/2] - PrimePi[(n - i)/2 - 1])*(PrimePi[(n - k)/2] - PrimePi[(n - k)/2 - 1]) * Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}] > 0, n, {}], {n, 150}] // Flatten
CROSSREFS
Cf. A005044 (Alcuin's sequence), A335622.
Sequence in context: A081053 A022892 A120164 * A074898 A258153 A175221
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Oct 02 2020
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 24 02:29 EDT 2024. Contains 374575 sequences. (Running on oeis4.)