OFFSET
0,5
COMMENTS
Local maxima are a(2^k) = k, minima are a(2^k+1) = -k+1.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
PROG
(Haskell)
import Data.List (transpose)
a085144 n = a085144_list !! n
a085144_list = 0 : concat
(transpose [map negate a085144_list, map (+ 1) $ tail a085144_list])
-- Reinhard Zumkeller, Mar 18 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Ralf Stephan, Jun 20 2003
STATUS
approved