What is the technique for creating all combinations from three pots of balls?

  • Context: High School 
  • Thread starter Thread starter martine
  • Start date Start date
  • Tags Tags
    Combination
Click For Summary
SUMMARY

The discussion focuses on generating all combinations from three pots of balls, each containing 20 distinct balls. The technique used is known as the Cartesian product, which allows for the systematic combination of elements from multiple sets. The user seeks methods to output these combinations into spreadsheet software like Excel or LibreOffice Calc. The conversation highlights the importance of understanding the distinctiveness of the balls, which influences the counting method applied.

PREREQUISITES
  • Understanding of Cartesian products in combinatorial mathematics
  • Basic knowledge of Excel functions and LibreOffice Calc
  • Familiarity with programming concepts for generating combinations
  • Awareness of distinct and indistinct elements in combinatorial problems
NEXT STEPS
  • Research how to implement Cartesian products in Python using libraries like itertools
  • Learn how to use Excel's CONCATENATE function to combine cell values
  • Explore online combination generators and their algorithms
  • Investigate the use of macros in LibreOffice Calc for automating combination generation
USEFUL FOR

This discussion is beneficial for mathematicians, data analysts, software developers, and anyone interested in combinatorial mathematics or needing to generate combinations for data analysis tasks.

martine
Messages
27
Reaction score
1
Hello,

I'm trying to solve a combination problem and am uncertain what kind of combination exercise this is. It's not school work, but something I came across in my free time, and I'm somewhat stuck...

I have three pots, each with 20 balls.
I want to create all combinations possible by always taking one ball out of each pot and always using all three pots which remain in the same order, resulting in
pot1_a pot2_A pot3_1
pot1_a pot2_A pot3_2
pot1_a pot2_A pot3_3
...
pot1_t pot2_T pot3_20
(_a to _t is the 20 balls in pot1, etc)

What kind of combination technique is this
Is there an easy way to output all combinations into Excel or libre office calc, or an online solver that really gives all combinations? If I know the exact name of this calculation and know what represents what in the equation I could search myself, but at the moment I'm at a loss
 
Physics news on Phys.org
Is there something distinguishing the balls?
i.e. are each of the balls numbered?

If so, then it's just normal counting.
You can see how it goes if you imagine that the balls in pot 1 are red, pot 2 are white, and the ones in pot 3 are blue.
 

Similar threads

Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 41 ·
2
Replies
41
Views
6K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K