login
A020951
a(2n+1)=a(n), a(2n)=a(n)+a(n-1).
4
1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 2, 1, 2, 1, 1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 3, 2, 3, 1, 2, 1, 1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5, 2, 5, 3, 4, 1, 4, 3, 5, 2, 5, 3, 4, 1, 3, 2, 3, 1, 2, 1, 1, 0, 1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5, 2, 5, 3, 4, 1, 5
OFFSET
0,11
LINKS
PROG
(Haskell)
a020951 n = a020951_list !! n
a020951_list = 1 : ws where
ws = 0 : 1 : concat (zipWith (\u v -> [u, u + v]) ws $ tail ws)
-- Reinhard Zumkeller, Jul 19 2013, Mar 13 2013
CROSSREFS
Cf. A082498.
Sequence in context: A063995 A280737 A322305 * A117118 A117168 A355343
KEYWORD
nonn
STATUS
approved