OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
2 = (1+3)/2, 11 = (7+15)/2, etc.
PROG
(PARI) v=[1]; n=1; while(n<100, s=(n+v[#v])/2; if(type(s)=="t_INT", if(isprime(s)&&!vecsearch(vecsort(v), n), print1(s, ", "); v=concat(v, n); n=0)); n++) \\ Derek Orr, Jun 16 2015
(Haskell)
a086518 n = a086518_list !! (n-1)
a086518_list = zipWith ((flip div 2 .) . (+))
a086517_list $ tail a086517_list
-- Reinhard Zumkeller, Jun 30 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 30 2003
EXTENSIONS
More terms from David Wasserman, Mar 10 2005
STATUS
approved