[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 A030141 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Numbers in which parity of the decimal digits alternates.
(history; published version)
#38 by Joerg Arndt at Wed Jul 13 02:06:50 EDT 2022
STATUS

reviewed

approved

#37 by Michel Marcus at Wed Jul 13 00:38:18 EDT 2022
STATUS

proposed

reviewed

#36 by Michael S. Branicky at Tue Jul 12 23:07:31 EDT 2022
STATUS

editing

proposed

#35 by Michael S. Branicky at Tue Jul 12 23:07:29 EDT 2022
PROG

(Python)

from itertools import chain, count, islice

def altgen(seed, digits):

allowed = "02468" if seed in "13579" else "13579"

if digits == 1: yield from allowed; return

for f in allowed: yield from (f + r for r in altgen(f, digits-1))

def agen(): yield from chain(range(10), (int(f+r) for d in count(2) for f in "123456789" for r in altgen(f, d-1)))

print(list(islice(agen(), 65))) # Michael S. Branicky, Jul 12 2022

STATUS

approved

editing

#34 by Alois P. Heinz at Tue Jul 12 09:49:33 EDT 2022
STATUS

proposed

approved

#33 by Chai Wah Wu at Tue Jul 12 08:20:12 EDT 2022
STATUS

editing

proposed

#32 by Chai Wah Wu at Tue Jul 12 08:20:07 EDT 2022
PROG

(Python)

from itertools import count

def A030141_gen(startvalue=0): # generator of terms >= startvalue

return filter(lambda n:all(int(a)+int(b)&1 for a, b in zip(str(n), str(n)[1:])), count(max(startvalue, 0)))

A030141_list = list(islice(A030141_gen(), 30)) # Chai Wah Wu, Jul 12 2022

STATUS

reviewed

editing

#31 by Michel Marcus at Tue Jul 12 01:49:56 EDT 2022
STATUS

proposed

reviewed

#30 by Chai Wah Wu at Mon Jul 11 23:59:25 EDT 2022
STATUS

editing

proposed

Discussion
Tue Jul 12
01:49
Michel Marcus: no-op ?
#29 by Chai Wah Wu at Mon Jul 11 23:59:22 EDT 2022
PROG

(Python)

from itertools import count, islice, accumulate

def A030141_gen(startvalue=0): # generator of terms >= startvalue

return filter(lambda n:all(map(lambda n:n&1, islice(accumulate(int(d) for d in str(n)), 1, None))), count(max(startvalue, 0)))

A030141_list = list(islice(A030141_gen(), 30)) # Chai Wah Wu, Jul 11 2022

STATUS

proposed

editing