[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A179674 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A179674 Number of binary sequences of length n having a conjugate at Hamming distance 2.
(history; published version)
#44 by Joerg Arndt at Tue Mar 15 02:59:42 EDT 2022
STATUS

reviewed

approved

#43 by Michel Marcus at Tue Mar 15 00:27:25 EDT 2022
STATUS

proposed

reviewed

#42 by Michael S. Branicky at Mon Mar 14 15:01:32 EDT 2022
STATUS

editing

proposed

#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
STATUS

reviewed

approved

#39 by Michel Marcus at Thu Nov 18 11:24:44 EST 2021
STATUS

proposed

reviewed

#38 by Jon Maiga at Thu Nov 18 09:28:10 EST 2021
STATUS

editing

proposed

#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
STATUS

editing

approved

#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

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 23:34 EDT 2024. Contains 375520 sequences. (Running on oeis4.)