Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: I need a good thinking trivia question for my Math club

  1. Mar 27, 2007 #1
    I'm doing this for extra credit for my teacher and I have NO IDEA where to get any problems.
    In the past, my friends did... something like a = b (long lines of equation) and we had to find what's wrong. It took a while, but the club got it.
    I want something like that. It can be at around prerecalculus level. I don't know what to think of .... :frown:

    Please help me....

    THANK YOU!!!

    EDIT:: (I'll need an answer with it also if possible, or the work, thank you so much)
     
    Last edited: Mar 28, 2007
  2. jcsd
  3. Mar 27, 2007 #2

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Here is a fun one:
    What does this code generate?

    c = y / 100
    n = y - 19 * ( y / 19 )
    k = ( c - 17 ) / 25
    i = c - c / 4 - ( c - k ) / 3 + 19 * n + 15
    i = i - 30 * ( i / 30 )
    i = i - ( i / 28 ) * ( 1 - ( i / 28 ) * ( 29 / ( i + 1 ) )
    * ( ( 21 - n ) / 11 ) )
    j = y + y / 4 + i + 2 - c + c / 4
    j = j - 7 * ( j / 7 )
    l = i - j
    m = 3 + ( l + 40 ) / 44
    d = l + 28 - 31 * ( m / 4 )
     
  4. Mar 28, 2007 #3
    is the answer zero ?

    crude, i forgot to say I'll need an answer also !! sorry for the trouble again. Thank you for the question thought, I'll probably use it.
     
  5. Mar 28, 2007 #4

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    :rofl: You want the answer! No, it is not zero.

    I was able to figure out this when it was presented to me. What got me on the right track was realizing that y must stand for year. Try starting with a year, go through the calculations...
     
  6. Apr 1, 2007 #5

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    It calculates the date of Easter.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook