Chocolates tells your age

Discussion in 'The Lounge' started by Maverick, Mar 12, 2007.

  1. gameofiso

    gameofiso Active Member

    28
    26
    0
    wow..this is interesting, thx
     
  2. kapo123

    kapo123 Member

    19
    26
    0
    it said i'm aged 6!! when i'm 17!! haha!
     
  3. xiaojia

    xiaojia Well-Known Member

    haha.. it worked. Here is the maths (spoilers, do not read b4 u have tried the qn!):

    let a be the no. of chocolates, given 1<a<10

    If bday passed,
    Age = 2007 - year born
    2007 - year born = Age
    2007 - year born + 100a - 250 = Age + 100a - 250
    1757 - year born + 100a = Age + 100a - 250
    1757 - year born + 100a + 250 = Age + 100a
    50(2a + 50) + 1757 - year born = Age + 100a

    Left hand side is what the qn ask you to do. Right hand side is your (age + 100a).
    Assuming that your age is 2 digits, and given 1<a<10, 100a will be 3 digits.
    Hence, the first digit will be 'a', while the last 2 digits will be your age.

    For those who bdays not passed
    Age = 2006 - year born
    2006 - year born = Age
    2006 - year born + 100a - 250 = Age + 100a - 250
    1756 - year born + 100a = Age + 100a - 250
    1756 - year born + 100a + 250 = Age + 100a
    50(2a + 50) + 1756 - year born = Age + 100a

    Haha.. therefore this qn only works this year! :D