BrainDen.com - Brain Teasers

# Quantum.Mechanic

Members

92

## Community Reputation

0

• Rank
Junior Member

3. ## Who can go the lowest?

Since the integer requirement, there haven't been any replies, so I'll go with an obvious, and not-likely-to-be-optimal one.

5. ## Probability of selecting two blue discs back to back

OK, I thought that would be a good little puzzle program to write. I'm sure there's an easier way to figure this on paper though, waiting for y'all to clue me in. The first few elements led me to the following:
6. ## Half as old as my brother

Are we assuming a mammalian birth process? Then splitting is in utero, and age origin is time of birth. When in Thailand...
7. ## Relatively prime

Just for fun, I programmed up a little script. Using a suitable underlying GMP library for Euler's totient function, it checked up to 10 million in 13 seconds, with a result of 60.793% distinct pairs relatively prime.
8. ## dice problem

Maximum sum, or highest numbered side?

11. ## The army of ants

I saw this puzzle in the same Peter Winkler book I mentioned elsewhere.

Testing a few targets other than 99,

I wrote a program to check.
14. ## optimal game strat

Are you sure? Because starting at line 193, it has: # This result might already exist. Keep the new one if the path is shorter. if (not exists(\$m->{\$result}) or (scalar keys %\$new_path < scalar keys %{\$m->{\$result}})) { # print STDERR "\tAdded \$expression = \$result\n"; \$m->{\$result} = \$new_path; ++\$results_added; }
15. ## Prisoners sorting cards - this puzzle is not for the faint of heart

I just read an equivalent puzzle in a puzzle book, so I'll sit this one out...
×