editing
approved
Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
editing
approved
<a href="/index/Ch#char_fns">Index entries for characteristic functions</a>
For n > 9: a(n) * a(n+1) = 0 and 0 <= a(n) + a(n+1) <= 1.
(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)
nonn,changed,base
allocated for Reinhard ZumkellerCharacteristic function of numbers with alternating parities of their digits in decimal representation.
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1
0
Reinhard Zumkeller, <a href="/A228710/b228710.txt">Table of n, a(n) for n = 0..10000</a>
allocated
nonn
Reinhard Zumkeller, Aug 31 2013
approved
editing
allocated for Reinhard Zumkeller
allocated
approved