Thread: A little maths problem for you

  1. #61
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    No, all four values are expressed to the cent.

  2. #62
    Unregistered
    Guest
    Is one of the numbers over $7.11? And for those of you who think this is impossible, it isn't. You can have a negative number to bring down the number above $ 7.11-
    ex: $10+($-5)=$5
    However this creates a problem- when you multiply, no matter what you will come out a negative number ( a negative number times a positve comes out negative, negative * positive * positive * positve is still negative ) To solve the problem we just add another number.

  3. #63
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    Dope, that was me, forgot to log in.

  4. #64
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    A couple of things:

    First, I want to make sure that this is not one of those wording problems, where there is some hidden thing like: He multiplied the name of the story by ... Is it right to assume that if the 4 items are priced a, b, c, and d then a + b + c + d = 7.11 and a * b * c * d = 7.11?

    Now, if that is the correct case, I seriously don't see any other solution to this... except for one: negative values. I'm not sure if it's possible to achieve the result that way, but you can try by having 2 of the numbers be negative [negative goes away that way].

    Can anyone who knows the answer at least hint as to what I'm doing wrong in my guess at the top of page 4?
    This is my signature. Remind me to change it.

  5. #65
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    There are no negitive values. No value is over $7.11
    $7.11 = a + b + c + d
    $7.11 = a * b * c * d

  6. #66
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    there is no solution, apart from the clerk is on crack.
    as dbarry said
    to go futher
    sqrt(711) < 27
    if more than one one object is priced at greater than 0.27 then the product will be greater than 711 ie 0.27 * 0.27 * 0.01 * 0.01 = 7.29

    so no two values can be greater than 0.27

    The largest factor of 7.11 is 2.37 so this is the largest value possible. (0.01*0.01*0.03*2.37=7.11)

    but if 2.37 is one value

    7.11 - 2.37 = a+b+c
    4.74 = a+b+c

    as we have proved only one value can be above 0.27 there is no possible integer solution.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  7. #67
    Registered User OxYgEn-22's Avatar
    Join Date
    Apr 2002
    Posts
    36
    damnit, i'm gone for one day and i thought you people wouldn't know my problem.. heh, figures the first person to read it would get it
    Last edited by OxYgEn-22; 05-21-2002 at 07:25 AM.
    Is that air you're breathing?

  8. #68
    Registered User Jet_Master's Avatar
    Join Date
    May 2002
    Posts
    291
    I worked my ASS off.

    Yesterday, i worked for 1.5 hours on paper and these are the results i got.

    bcd=2.
    so a=(7.11/2) but that gives 355.5 cents. so i guess that is not possible.

    also i managed to eliminate a. but the equation i got further afterthat resembles this: (everything is in cents)
    3555+2(b+c+d)=bcd=2
    .: 3555+2(b+c+d)=2
    .: 2(b+c+d)=(-3553)
    .: b+c+d=(-1776.5)
    .: a=711+1776.5=355.5
    .: 1065.5=355.5 ?!?!

    quite illogical isn't it???
    does that prove my theory that 0=infinity??
    c'mon, accept it. my theory is CORRECT!!!

    YES!!!
    0=infinty

    Ha ha ha!!!
    I am the Alpha and the Omega!!!

  9. #69
    Registered User Jet_Master's Avatar
    Join Date
    May 2002
    Posts
    291
    I simply LOVE this post. its the greatest. MATH rules!!!
    I am the Alpha and the Omega!!!

  10. #70
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Apparently everyone thinks its impossible... Well, it's not, and I shall show you.
    $3.16 $1.20 $1.25 $1.50 seem to work out to $7.11
    http://mathforum.org/library/drmath/view/55897.html
    http://www.mozart-oz.org/documentation/fdt/node21.html#section.elimination.grocery

    There are many ways to do it... I used the now non-existant program.
    Last edited by Dual-Catfish; 05-21-2002 at 08:51 AM.

  11. #71
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    Originally posted by OxYgEn-22
    damnit, i'm gone for one day and i thought you people wouldn't know my problem.. heh, figures the first person to read it would get it
    O2, if you are talking about thee 3-lightbulb problem, that one is a bit overused and I think evewryone knows it by now
    This is my signature. Remind me to change it.

  12. #72
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    >>0.27 * 0.27 * 0.01 * 0.01 = 7.29
    I'm not sure that this is correct

    Now, for Jet_Master: where did you come up with the fact that one of the values is 2? Is that a random guess?

    One thing I'm sticking to is that the values have to be either $0.01, $0.03, $0.09, $0.79 or $2.37... those are the only integer factors of 711. I simply don't see any other way.

    Now, about my reasoning a couple of pages back, I made a mistake in one of the assumptions, but this above does stay true, as far as I know.
    Now, the integer factors of 711 are: 1, 3, 9, 79 and 237.

    This is the same as:

    $0.01, $0.03, $0.09, $0.79 or $2.37

    Let's theorize that all items are priced below $2.37, that is either $0.01, $0.03, $0.09 or $0.79. This would mean that you must be able to get a sum of $7.11 out of 4 items that are $0.79 or below, which is impossible. If only 1 item is $2.37, then the other 3 must add to 7.11 = 2.37 = 4.74 >> impossible again with 3 items below $1. So, at least 2 items must be priced at $2.37 each, leaving other 2 to be: 7.11 - (2 * 2.37) = 2.37

    As you can see, it's impossible to have 2 items priced $0.01, $0.03, $0.09, $0.79 or $2.37 to add to $2.37 without them being $0 and $2.37. Now, this again is impossible, because the product must be a non-zero value.

    I see no solution for this probem.
    This is what I said, and I thinkit's correct. See if anything is wrong with this reasoning.
    This is my signature. Remind me to change it.

  13. #73
    Unregistered
    Guest
    Anyone know why the code before with the floats didn't work? I converted the code to cents so all 4 items were multiplied by 100. So when multiplying the four items I just compared it with
    $7.11 *100 ^ 4

    Here's the code and it surprisingly works:

    Code:
    #include <stdio.h>
    
    int main()
    {
       int a,b,c,d;
    
       for(a = 0; a <= 711; a++)
       {
          for(b = 0; b <= 711; b++)
          {
             if(a + b > 711)
                break;
             for(c = 0; c <= 711; c++)
             {
                if(a + b + c > 711)
                   break;
                d = 711 - a - b - c;
                if(a * b * c * d == 711000000)
                {
                   printf("a = %d\nb = %d\nc = %d\nd = %d\n", a, b, c, d);
                   return 0;
                }
             }
          }
       }
    
       printf("No such answer\n");
    
       return 0;
    }

  14. #74
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    Here's a possibility, there is an answer:
    all numbers are null set. In math, null set doesn't equal zero, it means no real numbers. Therefore, I say all four values are null set

  15. #75
    Dual-catfish already showed us the answer, and will be revealed only to smart people...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  4. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  5. Maths problem
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-13-2002, 02:34 PM