4

I remember some of my math related to combinations, and that if I have 6 objects and want to count the number of pairs that I can make from these it is 6 choose 2 which equals 15.

However, now I know that I have 15 pairs and I want to know how many unique objects I need to make these pairs?

Is there a formula for this?

thanks

user160254
  • 41
  • 1

1 Answers1

6

Yes, you're asking to solve

$$\binom{n}{2}=k$$

but

$$\binom{n}{2}=\frac{n(n-1)}{2}$$

so

$$n^2 -n-2k=0$$

and

$$n=\frac{1 + \sqrt{1+8k}}{2}$$

John Fernley
  • 1,218