Laran Evans
I develop software people love to use.
  • Home
  • About
  • Contact
  • Resume
  • Testimonials
Skip to content
  • Entrepreneurship
    • Leadership
    • Project Management
    • Team Development
    • Time Management
  • Motorcycles
    • Restoration Projects
  • Puzzles
  • Software Architecture
    • Cloud Computing
  • Software Development
    • Algorithms
    • CSS
    • Java
    • Javascript
    • MySQL
    • PHP
    • Python
    • Ruby and Rails
    • System Administration
« 50/50 Marbles
Bridge Crossing »

Four Jars of Pills

By laran | Published: 2007/10/31

The Problem

You have 4 jars of pills. Each pill is a certain weight, except for contaminated pills contained in one jar, where each pill is weight + 1. How could you tell which jar had the contaminated pills in just one measurement?

The Solution

We have to assume a unit weight of one for uncontaminated pills to solve this. Take one pill from the first jar, two pills from the second, three pills from the third and four pills from the fourth. You now have ten pills. Put all ten pills on a scale. Subtract ten from the weight and you have the number of the jar with poison pills.

This entry was posted in Puzzles and tagged Puzzles. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
« 50/50 Marbles
Bridge Crossing »

Post a Comment

Click here to cancel reply.

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • About Me

    I've got a masters degree in computer science and over 10 years of experience building web-based systems using Java/J2EE, Ruby, Rails and PHP. I'm a strong believer in the effectiveness of Agile Methods. Read more »

  • Subscribe

  • Table of Contents
    • The Problem
    • The Solution
  • Similar Posts
    • 100 Bright Ideas
    • The Manhole Cover
    • Seven Days of Gold
    • Spinning Disc
    • Analog Clock
Hello world
  • From Around the Web

      Shared Items
    • Recent Posts

      • The carbs are clean!
      • 80 pages of Ruby on Rails Performance Optimization Tips
      • Ruby Garbage Collection In-Depth
      • Binary Logic Basics
      • Kuali in Nacubo Magazine
    • Older Posts By Month

      Let's Talk

      Ask a question below. You'll be prompted for your name and email after you click the "Ask" button.

    Know more. Accomplish more. Succeed.