MHB Combinations / Sets of objects

  • Thread starter Thread starter arno100
  • Start date Start date
  • Tags Tags
    Combinations Sets
AI Thread Summary
A solution is sought for generating unique combinations from a set of objects, such as {Apple, Pear, Orange}. The expected output includes all possible combinations without repetition, like Apple, Pear and Apple, Orange. The formula for calculating the total combinations is 2^n, where n is the number of elements in the set, although this also includes the empty set. Suggestions for online generators or resources to understand this concept better are requested. The discussion highlights the importance of ensuring combinations do not repeat in different orders.
arno100
Messages
1
Reaction score
0
Hi,

I am looking for a solution that generates combinations of objects from a series of objects in a set. For example, {Apple, Pear, Orange} should bring back
Apple
Pear
Orange
Apple, Pear
Apple, Pear, Orange,
Apple, Orange
...

Items in the series should not repeat (i.e. Apple, Orange / Orange, Apple should only appear once). Any online generators anybody can suggest? Or, material I can use to figure this out?

Many thanks
 
Mathematics news on Phys.org
You forgot "Pear, Orange", the formula is 2^n with n is the number of elements in the set. Beware that 2^n also includes an empty set.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Is it possible to arrange six pencils such that each one touches the other five? If so, how? This is an adaption of a Martin Gardner puzzle only I changed it from cigarettes to pencils and left out the clues because PF folks don’t need clues. From the book “My Best Mathematical and Logic Puzzles”. Dover, 1994.
Back
Top