Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 837209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:06:36+00:00 2026-05-15T05:06:36+00:00

I have four objects – for the sake of arguments, let say that they

  • 0

I have four objects – for the sake of arguments, let say that they are the following letters:
A B C D

I need to calculate the number of variations that can be made for these under the following two conditions:

  1. No repetition
  2. Objects are position agnostic

Taking the above, this means that with a four object sequence, I can have only one sequence that matches the criteria (since order is not considered for being unique):

  • ABCD

There are four variations for a three object combination from the four object pool:

  • ABC, ABD, ACD, and BCD

There are six variations for a two object combination from the four object pool:

  • AB, AC, AD, BC, BD, and CD

And the most simple one, if taken on at a time:

  • A, B, C, and D

I swear that this was something covered in school, many, many years ago – and probably forgotten since I didn’t think I would use it. 🙂 I am anticipating that factorials will come into play, but just trying to force an equation is not working.

Any advice would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:06:36+00:00Added an answer on May 15, 2026 at 5:06 am

    There are 2^n combinations of n objects, where each object can either be (in the set) or (not in the set). So you can think of each combination in the set of combinations as one integer in the range (0, (2^n-1)).

    To get every combination, just iterate over this range and treat each integer as a bitmask. For every 1 bit in the integer, the corresponding element belongs in the set.

    Aside: this is called a power set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have an unsorted list of four objects: [B, C, A, D]
Let me explain my problem: I have four tables created as objects using Entity
Let's say you have a class called Customer, which contains the following fields: UserName
I have four DateTime objects. A1, A2 and B1, B2. I need to know
I have several java objects with four string properties as below: For e.g. say
I have four TSpeedButton objects, each with a BMP file assigned as a glyph
i have four tables user-question contains two columns: questionID, userID, the questions that the
I have four tables. Three of them are tables with one key and they
i have four imageviews in a linear layout in such a manner that only
I have four different Business objects and each calls its corresponding FillBusinessObject method to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.