![]() |
![]() |
#1 |
Aug 2002
100001100010002 Posts |
![]() |
![]() |
![]() |
![]() |
#3 | ||
Romulan Interpreter
"name field"
Jun 2011
Thailand
5×112×17 Posts |
![]() Quote:
![]() Quote:
Programming an algorithm for higher N, however, may turn out to be... interesting... I will go for it this month. edit: OTOH, I agree with Serge, formulation is silly, they could say "weighting coins", or everything else (we just had a similar problem recently), eventually it comes to that: having 27 coins and being allowed 4 weightings with a "non weight-marked" balance scale, tell if all coins have the same weight.. Last fiddled with by LaurV on 2016-12-02 at 03:16 |
||
![]() |
![]() |
![]() |
#4 |
Aug 2002
218816 Posts |
![]() |
![]() |
![]() |
![]() |
#5 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
100111011100012 Posts |
![]()
Believe it or not, I've been waiting for the solution, because I expected it to be illuminating - and it certainly was. This is not in OEIS {2,4, ?, 30,114, ...}
I am now playing with this technique to see that this non-trivial (i.e. not a power of 2) set of solutions only arises at n>=4. I spent a few weekends tinkering with n=3, and it would explain why this was a dead end. Is a(3) = 8? |
![]() |
![]() |
![]() |
#6 | |
"Robert Gerbicz"
Oct 2005
Hungary
1,621 Posts |
![]() Quote:
BCDE;FGIJ GIJ;AFH BCDEF;AGHIJ it was found very quickly with my code that used simply random permutations on each side. Not solved this puzzle, but I wasn't that far: for the first contest and for N=30 there are only 15 different cases, up to symmetry, for the 2nd contest there is still not that many cases, but if you want only a few cases to check then you can arrive to the solution's group idea (use very few groups). |
|
![]() |
![]() |
![]() |
#7 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
23·439 Posts |
![]()
Brilliant!
|
![]() |
![]() |
![]() |
#8 |
Jan 2017
2·34 Posts |
![]()
Optimal answers to the original problem are a(1) = 2, a(2) = 4, a(3) = 10.
Optimal values for the "linear algebra with contest_count+1 groups" approach should be a(1) = 2, a(2) = 4, a(3) = 10, a(4) = 30, a(5) = 114, a(6) = 454. I haven't given much thought to how plausible it is that there could be a better solution which does not divide into contests+1 groups that way. |
![]() |
![]() |
![]() |
#10 |
"Robert Gerbicz"
Oct 2005
Hungary
1,621 Posts |
![]()
a(0)=1 and it is optimal.
|
![]() |
![]() |
![]() |
#11 |
Jan 2017
2×34 Posts |
![]()
If you want the 6-contest solutions for the sequence, here are the two ways to get 454:
Code:
group sizes 108, 90, 80, 58, 44, 39, 35 -1 -1 1 0 1 1 1 -1 0 1 1 1 -1 -1 -1 1 -1 1 1 -1 1 -1 1 0 1 -1 1 -1 -1 1 1 -1 0 -1 1 0 -1 1 1 -1 -1 1 group sizes 130, 85, 76, 62, 42, 35, 24 -1 -1 1 1 1 1 0 -1 1 -1 1 0 1 1 -1 1 0 1 1 -1 -1 -1 1 1 -1 1 -1 1 -1 1 1 0 -1 1 -1 0 -1 1 1 -1 -1 1 |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
December 2017 | Batalov | Puzzles | 4 | 2018-01-04 04:33 |
December 2015 | Xyzzy | Puzzles | 15 | 2016-01-06 10:23 |
December 2014 | Xyzzy | Puzzles | 13 | 2015-01-02 19:41 |
Conference in Amsterdam 1-2 December | fivemack | Information & Answers | 6 | 2011-12-12 13:13 |
Server update in December | ltd | Prime Sierpinski Project | 4 | 2010-12-17 13:14 |