OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Prime(A119382(n)), where Prime(n) is the n-th prime. - Stefan Steinerberger, Jul 26 2006
EXAMPLE
In the ordered set of primes we have ...271,277,281,283... and (271+283)/277 = 2, therefore 277 belongs in this sequence.
MATHEMATICA
Prime[Select[Range[2, 1500], (Prime[ # - 1] + Prime[ # + 2])/(Prime[ # ]) == 2 &]] (* Stefan Steinerberger, Jul 26 2006 *)
Select[Partition[Prime[Range[1300]], 4, 1], (#[[1]]+#[[4]])/#[[2]]==2&][[;; , 2]] (* Harvey P. Dale, Aug 04 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Axel Harvey, Jul 25 2006
EXTENSIONS
More terms from Stefan Steinerberger, Jul 26 2006
STATUS
approved