| 
October 30th, 2009, 10:36 AM
| | Newbie | | Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
| | nxn grid problem. Hello.
I asked about this a while ago, but I'm still unsure. Imagine you have a nxn grid (3x3 for argument). I want to know how I can work out the total number of patterns I can make with 2 colours, say black and white. An example would be:
x = black o = white
ooo xoo xxo
ooo ooo oxx
ooo ooo oxo
So, pattern one is all white, patter two has one bit black etc. I was told for this it would be 2 to the 9th, giving me 512, which can't be correct! Is it 9 squared, giving me 81? What if I had a 6x8 grid, or 17x31 grid?
I did try to host a nicer picture than my x and o, but sadly I can't get imageshack to work.
Many thanks.
N. | 
October 30th, 2009, 11:18 AM
| | Super Member | | Join Date: Dec 2008 Location: Scotland
Posts: 863
Country: Thanks: 6
Thanked 341 Times in 319 Posts
| | Quote:
Originally Posted by theNoodler Hello.
I asked about this a while ago, but I'm still unsure. Imagine you have a nxn grid (3x3 for argument). I want to know how I can work out the total number of patterns I can make with 2 colours, say black and white. An example would be:
x = black o = white
ooo xoo xxo
ooo ooo oxx
ooo ooo oxo
So, pattern one is all white, patter two has one bit black etc. I was told for this it would be 2 to the 9th, giving me 512, which can't be correct! Is it 9 squared, giving me 81? What if I had a 6x8 grid, or 17x31 grid?
I did try to host a nicer picture than my x and o, but sadly I can't get imageshack to work.
Many thanks.
N. | An n x n grid with m possible colours has  possible combinations. | 
October 30th, 2009, 11:36 AM
| | MHF Contributor | | Join Date: Aug 2006
Posts: 6,718
Thanks: 69
Thanked 2,485 Times in 2,279 Posts
| | Quote:
Originally Posted by theNoodler Imagine you have a nxn grid (3x3 for argument). I want to know how I can work out the total number of patterns I can make with 2 colours, say black and white. An example would be:
So, pattern one is all white, patter two has one bit black etc. I was told for this it would be 2 to the 9th, giving me 512, which can't be correct! | But that is correct.
Look at that attached graph. There are two  grids.
Are they different colorings?
Maybe not. Rotate I  counter-clockwise. We get II.
Now are they different?
If I & II are different then there are  possible colorings.
If I & II are not different then you must tell us why? | 
October 30th, 2009, 11:42 AM
| | Super Member | | Join Date: May 2006 Location: Lexington, MA (USA)
Posts: 7,282
Thanks: 555
Thanked 4,645 Times in 3,708 Posts
| | Hello, theNoodler!
For each of the 9 cells, you have two choices: place a Black or place a White.
So you have 9 decisions with 2 options each. . . There will be: . possible choices you can make. Quote: | What if I had a 6x8 grid grid? |
You have 48 cells to fill with 2 options each.
There will be: . possible choices. | 
October 31st, 2009, 09:00 AM
| | Newbie | | Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
| | Hello.
Thanks for the help. I guess it just doesn't look like there could be that many combinations.  So for a 6x8 grid, there would be 281,474,976,710,656 combinations. That's just nuts. | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 05:09 PM. | | |