1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Milikan's Experiment Lab - Euclidean Algorithm

  1. Feb 7, 2010 #1
    1. The problem statement, all variables and given/known data

    Hey guys I need help with a lab I'm doing that is similar to the Milikan's experiment. I am given 10 bags each holding the same item (Jellybean) of various quantities. Each bag has a different mass. What I'm trying to figure out is the mass of the individual item, so mass of 1 jellybean. This is similar to finding the elementary charges for milikan's experiment.

    2. Relevant equations
    I believe using the euclidean algorithm is the best method because all the bags should be a integer multiple of the mass of 1 jellybean.

    3. The attempt at a solution
    First i subtracted the mass of the bags from the mass of bag + jellybeans, to find the mass of the jellybeans only. Then i ordered the various masses in increasing order. Now my problem is, in doing Euclidean Algorithm to find GCD, since these numbers are real numbers, how do I know when to stop using the algorithm. I've made a Java program that does the algorithm recursively but I'm not sure when to stop because this algorithm can go on forever. Thanks in advance.
  2. jcsd
  3. Feb 8, 2010 #2


    User Avatar
    Homework Helper

    Do integer division with the smallest mass (m1) (result is Ni for the i-th mass) and replace all masses by the remainder mi-Ni*m1.Choose the smallest again and repeat till you get zero remainder for all but one. The last smallest mass still can include a few beans, but that is the best you can do.

    As an example: assume that here are 5 bags of mass 33, 16.83, 15.84, 5.94, 2.31. The smallest is 2.31, integer division gives 14, 7, 6, 2, and the remainders are 0.66, 0.66, 1.98, 1.32, Choose these values for mi and add also 2.31. The smallest is 0.66. Repeat the procedure, the remainders are 0, 0, 0, 0, 0.33. You have one non-zero remainder, that is the mass of one bean (or integer multiple of it).

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook