Re: Enigma 1396 - Magic planets



adremeaux@xxxxxxxxx wrote:
If only I remembered how to program in prolog :O

-andy
Would this help? the integers must be in the range 0-34.
there are 10^23 ways of assigning 17 variables each to one of 35
values.

The key must be that we only need the sum of "planets", but there isnt
much overlap of that with the other solar names.

BTW there is a slight ambiguity in phrasing here - I assume the sum is
done in the
obvious way, with duplicates counting double.

JJ

.



Relevant Pages

  • Re: Enigma 1396 - Magic planets
    ... John R Jones said: ... there are 10^23 ways of assigning 17 variables each to one of 35 ... The key must be that we only need the sum of "planets", ...
    (rec.puzzles)
  • Re: Array inject function problem
    ... .inject{|sum, element| sum + element} print sum ... You're confused with how variables work in Ruby ... so the block runs assigning the variable sum to be 1 ... now, inject calls: yield 4,5 ...
    (comp.lang.ruby)
  • Re: Summing Values/Outputs of IF formulae
    ... So, as previously instructed, drop the quotes around the numbers: ... SUM the results without any problem; unless you are assigning your ... On May 13, 4:24 pm, shadesoflife ... I now need to sum these scores. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Summing Values/Outputs of IF formulae
    ... SUM the results without any problem; unless you are assigning your ... On May 13, 4:24 pm, shadesoflife ... low, moderate, significant and high. ... I now need to sum these scores. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Summing Values/Outputs of IF formulae
    ... "Glenn" wrote: ... SUM the results without any problem; unless you are assigning your ... On May 13, 4:24 pm, shadesoflife ... I now need to sum these scores. ...
    (microsoft.public.excel.worksheet.functions)