Happy Binning!

Probability Level pending

You have 24 balls labelled 1 through 24.

How many different ways can you separate them into four bins such that no two numbers in a bin multiply together to form a square number?

Assumption : The bins are indistinguishable and in no definite order, so, for example, if you put all the balls in one bin, and then took them all out and put them in a different bin, it wouldn't constitute a different arrangement.


Inspired by Brian Charlesworth


The answer is 173946175488.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Geoff Pilling
Nov 22, 2016

WLOG you can label the boxes 1, 4, 9 and 16 and put those respective numbers inside.

Now there are 11 numbers which appear to be able to go into any of the 4 bins, namely 7, 10, 11, 13, 14,15, 17, 19, 21, 22, and 23.

So the distribution of these 11 numbers yields 4 11 4^{11} = 4194304 possibilities.

And there are a few pairs of non squares which couldn't be put in the same bin, namely:

  • 2,8
  • 2,18
  • 3,12
  • 5,20
  • 6,24
  • 8,18

The 2-8-18 triad can be put in 4! ways.

Each of the other three pairs can be put in 4*3 ways.

So the total would be 4 11 4 ! 12 12 12 = 173946175488 4^{11}*4!*12*12*12 = 173946175488

Phew! Glad I didn't enumerate them all... :0)

Exactly the same method, but sometimes the limitations of a Casio fx350MS made me want to flung it away. Thank you for this question, Geoff!

Saya Suka - 4 years, 6 months ago

Log in to reply

Glad you liked it! But, @Brian Charlesworth was really the inspiration behind it! :0)

Geoff Pilling - 4 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...