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.
  • 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

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

    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

    A W H L 4 Replies 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

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

      Didn't bother evaluating that... you use 2 twice.

      [Forum Guidelines]

      1 Reply Last reply
      0
      • A AspDotNetDev

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

        [Forum Guidelines]

        W Offline
        W Offline
        William Winner
        wrote on last edited by
        #31

        nice!

        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

          W Offline
          W Offline
          William Winner
          wrote on last edited by
          #32

          you used 2 twice

          1 Reply Last reply
          0
          • A AspDotNetDev

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

            [Forum Guidelines]

            I Offline
            I Offline
            Ian Shlasko
            wrote on last edited by
            #33

            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 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

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

              That was fun... thanks! :thumbsup:

              [Forum Guidelines]

              L 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

                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
                  • 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
                    #37

                    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
                    • 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
                      #38

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

                      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
                        #39

                        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
                        • A AspDotNetDev

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

                          [Forum Guidelines]

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

                          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
                          • 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
                              • 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
                                #43

                                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
                                • 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
                                  #44

                                  :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[^]?

                                    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
                                          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