Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A106171
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A106171 A triangle with three consecutive primes as sides has an area that is a prime after rounding. The sequence gives the first of the three consecutive primes. +0
3
5, 11, 23, 59, 71, 89, 211, 239, 269, 349, 389, 419, 431, 467, 479, 521, 571, 577, 647, 863, 983, 1087, 1213, 1223, 1733, 1747, 1759, 1933, 1949, 1973, 2131, 2297, 2411, 2521, 2659, 2879, 2909, 2999, 3011, 3191, 3203, 3209, 3391, 3467, 3469, 3517, 3559 (list; graph; listen)
OFFSET

1,1

FORMULA

Simply use the formula for the area of a triangle given the three sides.

EXAMPLE

For sides 5,7,11 the formula gives 12.96 and with rounding this becomes 13, a prime.

MAPLE

s:=proc(n) local a, b, c, p, A: a:=ithprime(n): b:=ithprime(n+1): c:=ithprime(n+2): p:=(a+b+c)/2: A:=sqrt(p*(p-a)*(p-b)*(p-c)): if isprime(round(A))=true then a else fi end: seq(s(n), n=1..700); - Emeric Deutsch (deutsch(AT)duke.poly.edu), May 25 2007

Digits := 60 : isA106171 := proc(p) local q, r, s, area ; if isprime(p) then q := nextprime(p) ; r := nextprime(q) ; s := (p+q+r)/2 ; area := round(sqrt(s*(s-p)*(s-q)*(s-r))) ; RETURN(isprime(area)) ; else false ; fi ; end: for n from 1 to 900 do p := ithprime(n) : if isA106171(p) then printf("%d, ", p) ; fi ; od : - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 08 2007

CROSSREFS

Adjacent sequences: A106168 A106169 A106170 this_sequence A106172 A106173 A106174

Sequence in context: A046138 A024829 A097279 this_sequence A059455 A095030 A065114

KEYWORD

nonn

AUTHOR

J. M. Bergot (thekingfishb(AT)yahoo.ca), May 19 2007

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu) and R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 25 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 13 09:05 EDT 2008. Contains 145008 sequences.


AT&T Labs Research