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

    G Offline
    G Offline
    GrumbleDuke
    wrote on last edited by
    #23

    Using integer math: 4*(5+2)-1/3 = 28

    I 1 Reply Last reply
    0
    • G GrumbleDuke

      Using integer math: 4*(5+2)-1/3 = 28

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

      But he said numbers, not integers, so you can't just round it :)

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

      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

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

        or I downvote you! ;P This is not possible I think. I have run an exhaustive search over my brain, and now I am tired.

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

        A 1 Reply Last reply
        0
        • L leppie

          or I downvote you! ;P This is not possible I think. I have run an exhaustive search over my brain, and now I am tired.

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

          If there is a solution, I must find it. If there is not, I must prove that!

          [Forum Guidelines]

          L 1 Reply Last reply
          0
          • A AspDotNetDev

            If there is a solution, I must find it. If there is not, I must prove that!

            [Forum Guidelines]

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

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

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

              [Forum Guidelines]

              W I M L 4 Replies 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

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

                        That was fun... thanks! :thumbsup:

                        [Forum Guidelines]

                        L 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
                          #34

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