[go: up one dir, main page]

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

Showing entries 1-10 | older changes
Strobogrammatic numbers: numbers that are the same upside down (using calculator-style numerals).
(history; published version)
#21 by OEIS Server at Sat Jul 09 11:06:13 EDT 2022
LINKS

Michael S. Branicky, <a href="/A018846/b018846_1.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..1000 from T. D. Noe)

#20 by Michael De Vlieger at Sat Jul 09 11:06:13 EDT 2022
STATUS

reviewed

approved

Discussion
Sat Jul 09
11:06
OEIS Server: Installed new b-file as b018846.txt.  Old b-file is now b018846_1.txt.
#19 by Michel Marcus at Sat Jul 09 10:55:16 EDT 2022
STATUS

proposed

reviewed

#18 by Michel Marcus at Sat Jul 09 10:54:57 EDT 2022
STATUS

editing

proposed

#17 by Michel Marcus at Sat Jul 09 10:54:54 EDT 2022
PROG

(PARI) is_A018846(n, t=Vec("012..59.86"))={ apply(x->t[eval(x)+1], n=Vec(Str(n)))==vecextract(n, "-1..1") } \\ - __M. F. Hasler_, May 05 2012

STATUS

proposed

editing

#16 by Michael S. Branicky at Sat Jul 09 09:17:49 EDT 2022
STATUS

editing

proposed

#15 by Michael S. Branicky at Sat Jul 09 09:13:29 EDT 2022
LINKS

T. DMichael S. Noe, Branicky, <a href="/A018846/b018846_1.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..1000</a> from T. D. Noe)

PROG

(Python)

from itertools import count, islice, product

def ud(s): return s[::-1].translate({ord('6'):ord('9'), ord('9'):ord('6')})

def A018846gen(): # generator of terms

yield from [0, 1, 2, 5, 8]

for d in count(2):

for first in "125689":

for rest in product("0125689", repeat=d//2-1):

left = first + "".join(rest)

for mid in [[""], ["0", "1", "2", "5", "8"]][d%2]:

yield int(left + mid + ud(left))

print(list(islice(A018846gen(), 54))) # Michael S. Branicky, Jul 09 2022

STATUS

approved

editing

#14 by Joerg Arndt at Sat May 05 04:15:18 EDT 2012
STATUS

proposed

approved

#13 by M. F. Hasler at Sat May 05 03:52:16 EDT 2012
STATUS

editing

proposed

#12 by M. F. Hasler at Sat May 05 03:52:02 EDT 2012
PROG

(PARI) is_A018847A018846(n, t=Vec("012..59.86"))={ isprime(n) & apply(x->t[eval(x)+1], n=Vec(Str(n)))==vecextract(n, "-1..1") } \\ - M. F. Hasler, May 05 2012