I need to complete this.(adsbygoogle = window.adsbygoogle || []).push({});

Let's say I have 4 bits with 2 bits set as 1, 0011. The total number of permutations for this number is 0011, 0101, 0110, 1001, 1010, 1100, 6 cases. This can be computed using the calculation.

4! / ((2!)(4-2)!) = 6

Now I want to be able to find the nth sequence, for instance 1st number is 0011, second number is 0101. So if I say n=5, I want to be able to get the 5th permutation sequence 1010 from the initial 0011. How do I do this?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I How to find the nth binary permutation?

Tags:

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - find binary permutation | Date |
---|---|

B Find the missing energy value given a set of data (Hypothetical question) | Mar 3, 2018 |

I Find the height up a ladder where a dropped bottle will break, using only two bottles | Feb 6, 2018 |

B Using trig to find distance? | Jan 18, 2018 |

I Finding the explicit solution of a trig equation | Nov 21, 2017 |

I Asymptotics for finding the successors in a Binary Tree | Oct 22, 2016 |

**Physics Forums - The Fusion of Science and Community**