Well,
duh. After running my Perl program to find the maximum number of cards in which no set can be found, I came to the stunning conclusion: I should've known.
There are 4 traits, and the maximum number of cards that can exist and not produce a set is 2**4, 16.
Here's the proof. Here, the numbers 1, 2, and 4 are octal bits that represent one of the three possible values for each trait.
Set-> ABCDEFGHIJKLMNOP
count 1111111122222222
color 1111222211112222
shade 1122112211221122
shape 1212121212121212
Read them in columns. Here we have 16 cards (A through P) and there's not a set among them. However, as soon as I introduce a card with any number of 4's anywhere in it, we have a set.
japhy --
Perl and Regex Hacker
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.