login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A228710 Characteristic function of numbers with alternating parities of their digits in decimal representation. 11
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

0

COMMENTS

a(A030141(n)) = 1; a(A228709(n)) = 0;

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

Index entries for characteristic functions

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

Sequence in context: A014383 A014152 A014295 * A103447 A123927 A089829

Adjacent sequences:  A228707 A228708 A228709 * A228711 A228712 A228713

KEYWORD

nonn,base

AUTHOR

Reinhard Zumkeller, Aug 31 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 24 14:49 EDT 2019. Contains 323532 sequences. (Running on oeis4.)