Jump to content
  • Advertisement
Sign in to follow this  
khuramktls

to find the power sets

This topic is 2829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A={1,2,3,...........50}


i want to find out the total possible power sets

some body tell me the total sets which are possible
i find that the quantity by this formula 2(n*n)
2(50*50)
2*2500
50,000
possible sets are 50,000
but i need only those pairs which containes only five elements

Share this post


Link to post
Share on other sites
Advertisement
The total number of sets in the power set of a set with n elements is 2n. Or in your case 250 or 1,125,899,906,842,624. The total number of subsets of a set with n elements with a given size r is (nCr) or n!/((n-r)!*r!) - in your case 2,118,760.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!