Hi, what I meant in the title was:(adsbygoogle = window.adsbygoogle || []).push({});

Let's say that I have two variables in a game and I would like to know how many combination of numbers there is... For example if I have to calculate it for 3 times the possible combinations would be:

a,a,a

a,a,b

a,b,a

b,a,a

b,b,b

b,b,a

b,a,b

a,b,b

Is there a formula to calculate how many it would let's say for 13 times...or for 50 times.

Thanks in advance!

Rafael

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

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

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

# Is there a formula to find a combination of numbers

**Physics Forums | Science Articles, Homework Help, Discussion**