File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programming Diversions and the fly likes hmm.. figure this one out Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Reply Bookmark "hmm.. figure this one out" Watch "hmm.. figure this one out" New topic
Author

hmm.. figure this one out

Jan Liask
Greenhorn

Joined: Aug 31, 2003
Posts: 6
Supposing that eleven coins with round holes are worth 15 bits, while eleven square ones are worth 16 bits, and eleven of triangular shape are worth 17 bits, tell how many round, square or triangular pieces of cash would be required to purchase an item worth eleven bits.
a friend solved it easily (or so he claimed), but I stared at it for ten minutes. Struggled for 10 minutes. gave ut.


Read my diary<br />http://1981.diaryland.com<br />or go to my homepage (If you want some handy info on gaming):<br />http://www.angeltowns.com/members/casinoheaven
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8439
Ok -
I think I got it (~ 2 mins)
answer posted way below...
.
.
.
.
.
.
.
.
.
.
7 rounds and 1 square
[ August 31, 2003: Message edited by: Bert Bates ]

Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
Joe Pluta
Ranch Hand

Joined: Jun 23, 2003
Posts: 1376
Yup. Each coin is worth x/11 - round is 15/11, square is 16/11, triangle is 17/11. The elevenths make things a little mind-bending, so to get to units, figure out how many elevenths you need... 11 = 121/11. So the answer is equivalent to adding up multiples of 15, 16 and 17 to get to 121.
Well, eight round coins is eight times 15 is 120, one too few. Simply upgrade one round to a square and the answer is revealed.
About a minute. Took longer to type this.
Joe
 
 
subject: hmm.. figure this one out
 
Threads others viewed
How many hours do you travel?
Base64 encode decode jars
WA #1.....word association
Reward!
How to access Table cells content in Firefox
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture