OFFSET
0,2
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, E27.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
FORMULA
First differences are ultimately periodic.
Conjecture: a(n) = (-3+(-1)^n+4*n)/2 for n>3. G.f.: -(2*x^6 -2*x^5 -6*x^4 +4*x^3 +2*x^2 -3*x -1) / ((x -1)^2*(x +1)). - Colin Barker, Apr 01 2013
PROG
(Haskell)
a067016 n = a067016_list !! n
a067016_list = [1, 4, 3, 2] ++ f [2, 3, 4, 1] where
f xs = maxi : f (maxi : xs) where
maxi = maximum $ zipWith (+) xs (reverse xs)
-- Reinhard Zumkeller, May 05 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 17 2002
EXTENSIONS
More terms from John W. Layman, Feb 20 2002
STATUS
approved