OFFSET
0
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
For n > 9: a(n) * a(n+1) = 0 and 0 <= a(n) + a(n+1) <= 1.
PROG
(Haskell)
a228710 n = fromEnum $ f (n `div` 10) (n `mod` 2) where
f x p = x == 0 || (x `mod` 2) /= p && f (x `div` 10) (1 - p)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Aug 31 2013
STATUS
approved