[go: up one dir, main page]

login

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”).

Revision History for A228710 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Characteristic function of numbers with alternating parities of their digits in decimal representation.
(history; published version)
#4 by Reinhard Zumkeller at Sat Aug 31 17:13:07 EDT 2013
STATUS

editing

approved

#3 by Reinhard Zumkeller at Sat Aug 31 16:06:48 EDT 2013
COMMENTS

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

LINKS

<a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

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)

KEYWORD

nonn,changed,base

#2 by Reinhard Zumkeller at Sat Aug 31 16:04:24 EDT 2013
NAME

allocated for Reinhard ZumkellerCharacteristic function of numbers with alternating parities of their digits in decimal representation.

DATA

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

OFFSET

0

LINKS

Reinhard Zumkeller, <a href="/A228710/b228710.txt">Table of n, a(n) for n = 0..10000</a>

KEYWORD

allocated

nonn

AUTHOR

Reinhard Zumkeller, Aug 31 2013

STATUS

approved

editing

#1 by Reinhard Zumkeller at Fri Aug 30 12:03:10 EDT 2013
NAME

allocated for Reinhard Zumkeller

KEYWORD

allocated

STATUS

approved