The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A349529 Number of permutations of the base-2 representations of 1, 2, ..., n that are unambiguous when written without delimiters. 1

%I #16 Nov 23 2021 03:39:07

%S 1,2,2,12,48,164,348,6000,56202,529434,4378410,50607424,465231342,

%T 4414360152,28075191592

%N Number of permutations of the base-2 representations of 1, 2, ..., n that are unambiguous when written without delimiters.

%e For n = 3 the base-2 representations of 1, 2, 3 are the words 1, 10, 11. Of the 6 permutations of these words, the a(3) = 2 permutations 1,10,11 and 11,10,1 are unambiguous when the commas are removed, since 11011 and 11101 each arise from a unique permutation. On the other hand, the permutations 1,11,10 and 11,1,10 are ambiguous when the commas are removed because they become the same word; similarly, 10,1,11 and 10,11,1 become the same word.

%t Table[Count[Counts[Join @@@ Permutations[(IntegerDigits[#, 2] &) /@ Range[1, n]]], 1], {n, 1, 8}]

%o (Python)

%o from collections import Counter

%o from itertools import permutations

%o def A349529(n): return len(list(filter(lambda x: x == 1, Counter(''.join(d) for d in permutations(bin(i)[2:] for i in range(1,n+1))).values()))) # _Chai Wah Wu_, Nov 22 2021

%K nonn,base,more

%O 1,2

%A _Eric Rowland_, Nov 20 2021

%E a(13)-a(15) from _Martin Ehrenstein_, Nov 23 2021

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 June 7 16:42 EDT 2024. Contains 373203 sequences. (Running on oeis4.)