|
|
|
|
#44 by Joerg Arndt at Tue Mar 15 02:59:42 EDT 2022
|
|
|
|
#43 by Michel Marcus at Tue Mar 15 00:27:25 EDT 2022
|
|
|
|
#42 by Michael S. Branicky at Mon Mar 14 15:01:32 EDT 2022
|
|
|
|
#41 by Michael S. Branicky at Mon Mar 14 15:01:30 EDT 2022
|
| PROG
|
(Python)
from itertools import product
def h(w, x): return sum(1 for wi, xi in zip(w, x) if wi != xi)
def ok(w):
return any(h(w, w[s:]+w[:s]) == 2 for s in range(1, len(w)))
def a(n):
return 2*sum(1 for p in product("01", repeat=n-1) if ok("0"+"".join(p)))
print([a(n) for n in range(1, 19)]) # Michael S. Branicky, Mar 14 2022
|
| STATUS
|
approved
editing
|
|
|
|
#40 by Peter Luschny at Thu Nov 18 12:45:23 EST 2021
|
|
|
|
#39 by Michel Marcus at Thu Nov 18 11:24:44 EST 2021
|
|
|
|
#38 by Jon Maiga at Thu Nov 18 09:28:10 EST 2021
|
|
|
|
#37 by Jon Maiga at Thu Nov 18 09:21:41 EST 2021
|
| LINKS
|
Jon Maiga's Sequence Database, <a href="http://sequencedb.net/s/A179674">Computer-generated formulas for A179674</a>.>, Sequence Machine.
|
| STATUS
|
approved
editing
|
|
|
Discussion
|
Thu Nov 18
| 09:28
| Jon Maiga: Name change, see A347957.
|
|
|
|
#36 by N. J. A. Sloane at Sun Nov 14 00:57:22 EST 2021
|
|
|
|
#35 by N. J. A. Sloane at Sun Nov 14 00:57:20 EST 2021
|
| LINKS
|
Jon Maiga's Sequence Database, <a href="http://sequencedb.net/s/A179674">A179674</a>.
|
| STATUS
|
approved
editing
|
|
|
|