OFFSET
1,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
For n > 1: a(n) = a(n-1) + 1 - A249039(n) mod 2. - Reinhard Zumkeller, Nov 11 2014
MAPLE
See A249039.
PROG
(Haskell)
a249040 n = a249040_list !! (n-1)
a249040_list = tail $ scanl (\i j -> i + 1 - mod j 2) 0 a249039_list
-- Reinhard Zumkeller, Nov 11 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 26 2014
STATUS
approved