Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Math quiz [solved]

Math quiz [solved]

Scheduled Pinned Locked Moved The Lounge
question
60 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Sandeep Mewara

    Mustafa Ismail Mustafa wrote:

    parenthesis are free to control the order of evaluation

    ((2(3+5))*(2/1)) - 4 :rolleyes: UPDATE: [(2){3*5+1}]-4 :mad: on self... UPDATE 2: This looks good.... (5+3)*(4-(1/2)) derived from 28=56/2=8*7/2.....

    modified on Friday, October 15, 2010 2:45 PM

    H Offline
    H Offline
    Henry Minute
    wrote on last edited by
    #35

    That is very cunning. We'll have to wait for the word from the East to see if it's within the rules. :) [Edit] Just noticed the double 2's, forget everything I said. Cheater. ;P [/Edit]

    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

    S 1 Reply Last reply
    0
    • A AspDotNetDev

      That was fun... thanks! :thumbsup:

      [Forum Guidelines]

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #36

      Giving up so soon?

      xacc.ide
      IronScheme - 1.0 RC 1 - out now!
      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

      M A 2 Replies Last reply
      0
      • H Henry Minute

        That is very cunning. We'll have to wait for the word from the East to see if it's within the rules. :) [Edit] Just noticed the double 2's, forget everything I said. Cheater. ;P [/Edit]

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #37

        I corrected it.. I still stand for approval as... ;)

        1 Reply Last reply
        0
        • S Sandeep Mewara

          Mustafa Ismail Mustafa wrote:

          parenthesis are free to control the order of evaluation

          ((2(3+5))*(2/1)) - 4 :rolleyes: UPDATE: [(2){3*5+1}]-4 :mad: on self... UPDATE 2: This looks good.... (5+3)*(4-(1/2)) derived from 28=56/2=8*7/2.....

          modified on Friday, October 15, 2010 2:45 PM

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #38

          Now you forgot the / and you have an extra *

          xacc.ide
          IronScheme - 1.0 RC 1 - out now!
          ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

          1 Reply Last reply
          0
          • A AspDotNetDev

            (4 - 1 / 2) * (5 + 3)

            [Forum Guidelines]

            M Offline
            M Offline
            Mustafa Ismail Mustafa
            wrote on last edited by
            #39

            There we go! :-D Congratulations man, you get the points for today.

            If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

            A 1 Reply Last reply
            0
            • I Ian Shlasko

              Ahhh, I was trying to avoid fractions... Didn't think of doing it that way... Well done.

              Proud to have finally moved to the A-Ark. Which one are you in?
              Author of the Guardians Saga (Sci-Fi/Fantasy novels)

              A Offline
              A Offline
              AspDotNetDev
              wrote on last edited by
              #40

              Yeah, I came to the conclusion that it was going to be some weird fraction like that. I decided that it was probably going to involve a divide by one (when I removed the divide and 1 from the possibilities, the subset didn't seem to be possible) or divide by 2, and since there is only one division, I figured it would probably be hard to balance that out with a multiply. Got my calculator out, divided 28 by 8, then tried to figure out ways to get to 3.5. I got lucky. :)

              [Forum Guidelines]

              1 Reply Last reply
              0
              • L leppie

                Giving up so soon?

                xacc.ide
                IronScheme - 1.0 RC 1 - out now!
                ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                A Offline
                A Offline
                AspDotNetDev
                wrote on last edited by
                #41

                Haha, no, I posted my solution above.

                [Forum Guidelines]

                1 Reply Last reply
                0
                • L leppie

                  Giving up so soon?

                  xacc.ide
                  IronScheme - 1.0 RC 1 - out now!
                  ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                  M Offline
                  M Offline
                  Mustafa Ismail Mustafa
                  wrote on last edited by
                  #42

                  He got it. (4 - (1/2)) * (5 + 3) = 28

                  If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                  A L 2 Replies Last reply
                  0
                  • S SinghUlarity

                    While we kill ourselves over this problem, Mustafa is out somewhere enjoying his weekend. This is all a set-up :suss:

                    I are n00b.

                    M Offline
                    M Offline
                    Mustafa Ismail Mustafa
                    wrote on last edited by
                    #43

                    :laugh: Not quite, but since I suck ass at DD's CCC, I thought I could do something I'm good at. Driving everyone else insane Giving everyone some good, clean, math based fun :)

                    If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                    1 Reply Last reply
                    0
                    • M Mustafa Ismail Mustafa

                      He got it. (4 - (1/2)) * (5 + 3) = 28

                      If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                      A Offline
                      A Offline
                      AspDotNetDev
                      wrote on last edited by
                      #44

                      Nice timing! When I posted my reply, it appeared before yours... but yours did indeed appear before I did a refresh! I think you posted only milliseconds after my post. :)

                      [Forum Guidelines]

                      1 Reply Last reply
                      0
                      • M Mustafa Ismail Mustafa

                        He got it. (4 - (1/2)) * (5 + 3) = 28

                        If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                        L Offline
                        L Offline
                        leppie
                        wrote on last edited by
                        #45

                        3 1/2 was an option but I didn't explore it, I thought for some reason it was not reachable... :(

                        xacc.ide
                        IronScheme - 1.0 RC 1 - out now!
                        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                        1 Reply Last reply
                        0
                        • M Mustafa Ismail Mustafa

                          There we go! :-D Congratulations man, you get the points for today.

                          If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                          A Offline
                          A Offline
                          AspDotNetDev
                          wrote on last edited by
                          #46

                          And I only had to be wrong 2 or 3 times before I finally got it right. ;P

                          [Forum Guidelines]

                          1 Reply Last reply
                          0
                          • L leppie

                            Practice on Fermat's Last Theorem then ;P

                            xacc.ide
                            IronScheme - 1.0 RC 1 - out now!
                            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                            A Offline
                            A Offline
                            AspDotNetDev
                            wrote on last edited by
                            #47

                            I already figured that one out. But I didn't have enough room on my notepad to write down the full proof. :((

                            [Forum Guidelines]

                            L 1 Reply Last reply
                            0
                            • A AspDotNetDev

                              I already figured that one out. But I didn't have enough room on my notepad to write down the full proof. :((

                              [Forum Guidelines]

                              L Offline
                              L Offline
                              leppie
                              wrote on last edited by
                              #48

                              Same here, was just too big for a Tweet :(

                              xacc.ide
                              IronScheme - 1.0 RC 1 - out now!
                              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                              1 Reply Last reply
                              0
                              • M Mustafa Ismail Mustafa

                                OK, let's see if you guys can work this one out :) The numbers: 1, 2, 3, 4, 5 and the operations +, -, *, / can be used in any order (parenthesis are free to control the order of evaluation) All the preceding mentioned numbers and operations can be used in any order once and only once to provide the result of 28. Remember, each of the operations can be used once only and each of the numbers can be used once only. You have to use them all to achieve your goal. You may begin :) [solution] Credited to aspdotnetdev (4 - (1/2)) * (5 + 3) = 28. Points awarded. Would you like me to make this a feature? Sorta like the CCC but for us more Mathematically as opposed to being "constantly high on peyote in order to be able to answer the CCC"?

                                If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                                modified on Friday, October 15, 2010 2:52 PM

                                N Offline
                                N Offline
                                NormDroid
                                wrote on last edited by
                                #49

                                Mustafa Ismail Mustafa wrote:

                                Would you like me to make this a feature? Sorta like the CCC but for us more Mathematically as opposed to being "constantly high on peyote in order to be able to answer the CCC"?

                                Yes please, we need a break from CCC.

                                Software Kinetics - Moving Software

                                1 Reply Last reply
                                0
                                • A AspDotNetDev

                                  (4 - 1 / 2) * (5 + 3)

                                  [Forum Guidelines]

                                  L Offline
                                  L Offline
                                  leonej_dt
                                  wrote on last edited by
                                  #50

                                  Nicely done. Thinking out of the box! --- I had correctly proved there was not a solution whose intermediate results were all integer. From that point, I made the wrong conclusion there was no solution at all.

                                  Eduardo León

                                  A 1 Reply Last reply
                                  0
                                  • M Mustafa Ismail Mustafa

                                    OK, let's see if you guys can work this one out :) The numbers: 1, 2, 3, 4, 5 and the operations +, -, *, / can be used in any order (parenthesis are free to control the order of evaluation) All the preceding mentioned numbers and operations can be used in any order once and only once to provide the result of 28. Remember, each of the operations can be used once only and each of the numbers can be used once only. You have to use them all to achieve your goal. You may begin :) [solution] Credited to aspdotnetdev (4 - (1/2)) * (5 + 3) = 28. Points awarded. Would you like me to make this a feature? Sorta like the CCC but for us more Mathematically as opposed to being "constantly high on peyote in order to be able to answer the CCC"?

                                    If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                                    modified on Friday, October 15, 2010 2:52 PM

                                    realJSOPR Offline
                                    realJSOPR Offline
                                    realJSOP
                                    wrote on last edited by
                                    #51

                                    42

                                    .45 ACP - because shooting twice is just silly
                                    -----
                                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                                    -----
                                    "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                                    1 Reply Last reply
                                    0
                                    • M Mustafa Ismail Mustafa

                                      OK, let's see if you guys can work this one out :) The numbers: 1, 2, 3, 4, 5 and the operations +, -, *, / can be used in any order (parenthesis are free to control the order of evaluation) All the preceding mentioned numbers and operations can be used in any order once and only once to provide the result of 28. Remember, each of the operations can be used once only and each of the numbers can be used once only. You have to use them all to achieve your goal. You may begin :) [solution] Credited to aspdotnetdev (4 - (1/2)) * (5 + 3) = 28. Points awarded. Would you like me to make this a feature? Sorta like the CCC but for us more Mathematically as opposed to being "constantly high on peyote in order to be able to answer the CCC"?

                                      If the post was helpful, please vote, eh! Current activities: Playing Star Craft II. Don't bother me, eh? Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                                      modified on Friday, October 15, 2010 2:52 PM

                                      H Offline
                                      H Offline
                                      HimanshuJoshi
                                      wrote on last edited by
                                      #52

                                      Mustafa Ismail Mustafa wrote:

                                      Would you like me to make this a feature? Sorta like the CCC but for us more Mathematically as opposed to being "constantly high on peyote in order to be able to answer the CCC"?

                                      Yes.:thumbsup:

                                      N 1 Reply Last reply
                                      0
                                      • H HimanshuJoshi

                                        Mustafa Ismail Mustafa wrote:

                                        Would you like me to make this a feature? Sorta like the CCC but for us more Mathematically as opposed to being "constantly high on peyote in order to be able to answer the CCC"?

                                        Yes.:thumbsup:

                                        N Offline
                                        N Offline
                                        NormDroid
                                        wrote on last edited by
                                        #53

                                        :thumbsup::thumbsup: x2

                                        Software Kinetics - Moving Software

                                        1 Reply Last reply
                                        0
                                        • L leonej_dt

                                          Nicely done. Thinking out of the box! --- I had correctly proved there was not a solution whose intermediate results were all integer. From that point, I made the wrong conclusion there was no solution at all.

                                          Eduardo León

                                          A Offline
                                          A Offline
                                          AspDotNetDev
                                          wrote on last edited by
                                          #54

                                          leonej_dt wrote:

                                          I made the wrong conclusion there was no solution at all

                                          I made that same conclusion myself before I was corrected. :-O

                                          [Forum Guidelines]

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups