From: Bill Sinclair on
Math question:

Given 2^n possible arrangements of N 0s and 1s,
how many of those are unique under cyclic permutations?

For example, with N=3, we have (111,000,100,110), so the answer is 4.

I'm not sure such a formula has ever been discovered. It certainly is NOT a trivial one.
From: Walter Roberson on
Bill Sinclair wrote:
> Math question:
>
> Given 2^n possible arrangements of N 0s and 1s,
> how many of those are unique under cyclic permutations?
>
> For example, with N=3, we have (111,000,100,110), so the answer is 4.
>
> I'm not sure such a formula has ever been discovered. It certainly is
> NOT a trivial one.

N+1 of them are unique -- 0 bits set, 1 bit set, 2 bits set ... N bits
set. The rest are reorderings of these.
From: Roger Stafford on
"Bill Sinclair" <billsincl(a)aol.com> wrote in message <ht92vp$j12$1(a)fred.mathworks.com>...
> Math question:
>
> Given 2^n possible arrangements of N 0s and 1s,
> how many of those are unique under cyclic permutations?
>
> For example, with N=3, we have (111,000,100,110), so the answer is 4.
>
> I'm not sure such a formula has ever been discovered. It certainly is NOT a trivial one.

There are several definitions floating around of "cyclic permutations". The only one I can think of that makes your posed problem non-trivial is one for which the word 'unique' is not quite the right word. Are you asking for the number of equivalence classes in the 2^n binary numbers in which two numbers are considered equivalent if and only if one can be changed to the other by a cyclic rotation of its binary digits, as for example, 1001 -> 1100 -> 0110 -> 0011? In that case there are indeed four such equivalence classes for n = 3. For n = 6 there are fourteen. Is that what you are asking?

Roger Stafford
From: Walter Roberson on
Roger Stafford wrote:
> "Bill Sinclair" <billsincl(a)aol.com> wrote in message
> <ht92vp$j12$1(a)fred.mathworks.com>...

>> Given 2^n possible arrangements of N 0s and 1s,
>> how many of those are unique under cyclic permutations?

> There are several definitions floating around of "cyclic
> permutations". The only one I can think of that makes your posed
> problem non-trivial is one for which the word 'unique' is not quite the
> right word. Are you asking for the number of equivalence classes in the
> 2^n binary numbers in which two numbers are considered equivalent if and
> only if one can be changed to the other by a cyclic rotation of its
> binary digits, as for example, 1001 -> 1100 -> 0110 -> 0011? In that
> case there are indeed four such equivalence classes for n = 3. For n =
> 6 there are fourteen.

Sounds like your cyclic rotations are pairwise, Roger. If you were to
use the more general definition of "cyclic permutations" that allows for
arbitrary permutations, then because any bit string can be permuted
directly into any other bit string of the same length and same number of
bits set, the only difference between the possibilities would be the
number of bits set.
From: Roger Stafford on
Walter Roberson <roberson(a)hushmail.com> wrote in message <ktXJn.2273$mj4.2101(a)newsfe08.iad>...
> Sounds like your cyclic rotations are pairwise, Roger. If you were to
> use the more general definition of "cyclic permutations" that allows for
> arbitrary permutations, then because any bit string can be permuted
> directly into any other bit string of the same length and same number of
> bits set, the only difference between the possibilities would be the
> number of bits set.

They aren't *my* cyclic permutations, Walter. I am aware of the several standard definitions. What I suggested was the only way I could make sense out of the request. Can you think of another way that is consistent with Bill's example and that is non-trivial? Anyway, let's wait and see what he has to say about it.

Roger Stafford