OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
a(20) = gcd(71+73, 73+79) = gcd(144,152) = 8*gcd(18,19) = 8.
MATHEMATICA
GCD[#[[1]]+#[[2]], #[[2]]+#[[3]]]&/@Partition[Prime[Range[90]], 3, 1] (* Harvey P. Dale, Mar 06 2014 *)
PROG
(PARI) a(n) = gcd(prime(n)+prime(n+1), prime(n+1)+prime(n+2)); \\ Michel Marcus, Aug 04 2013
(Haskell)
a029854 n = a029854_list !! (n-1)
a029854_list = zipWith gcd a001043_list $ tail a001043_list
-- Reinhard Zumkeller, Aug 08 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 14 2002
STATUS
approved