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(s) problem - puzzle

Math(s) problem - puzzle

Scheduled Pinned Locked Moved The Lounge
helpquestion
59 Posts 33 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.
  • D dbrenth

    My teacher asked me to write a program on the board and solve it. I wrote:

    230 - 220 x 0.5

    and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

    Brent

    B Offline
    B Offline
    Bob Beechey
    wrote on last edited by
    #32

    The teacher was not embarrassed but shocked that any student could be so wrong. The division MUST be carried out before the subtraction. 230 – 220 × 0.5 = 230 – 110 = 120. Try it in any scientific calculator or programming language. You are alone (I hope) in thinking the answer is 5. Are you perhaps joking?

    D 1 Reply Last reply
    0
    • D Daniel Pfeffer

      You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

      A Offline
      A Offline
      AnthonyLondon
      wrote on last edited by
      #33

      You write "the answer to which is obviously not 5". Nobody ever said that. The OP sais that he "announced that the answer was 5!". Do you see the difference? The exclamation mark. The answer is 5! (five factorial) and 5!=5*4*3*2*1=120 so 5! is the correct answer :-)

      1 Reply Last reply
      0
      • Greg UtasG Greg Utas

        Yeah, you're both on the AR page. :-D

        Robust Services Core | Software Techniques for Lemmings | Articles
        The fox knows many things, but the hedgehog knows one big thing.

        D Offline
        D Offline
        Daniel Pfeffer
        wrote on last edited by
        #34

        Hey, I resemble that! :mad: :)

        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

        1 Reply Last reply
        0
        • D Daniel Pfeffer

          You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

          Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

          M Offline
          M Offline
          Member 14174460
          wrote on last edited by
          #35

          In the UK they teach BODMAS as the order of precedence Brackets Operations Division MMultiplication AAddition SSubtraction see Order of operations - Year 6 - P7 - Maths - Home Learning with BBC Bitesize - BBC Bitesize[^]

          OriginalGriffO 1 Reply Last reply
          0
          • D Daniel Pfeffer

            You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            M Offline
            M Offline
            Member 14174460
            wrote on last edited by
            #36

            In the UK they teach BODMAS as the order of precedence Brackets Operations Division MMultiplication AAddition SSubtraction see Order of operations - Year 6 - P7 - Maths - Home Learning with BBC Bitesize - BBC Bitesize[^]

            1 Reply Last reply
            0
            • M Member 14174460

              In the UK they teach BODMAS as the order of precedence Brackets Operations Division MMultiplication AAddition SSubtraction see Order of operations - Year 6 - P7 - Maths - Home Learning with BBC Bitesize - BBC Bitesize[^]

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #37

              Please don't repost if your comment does not appear immediately: both of these went to moderation and required a human being to review them for publication. In order to prevent you being kicked off as a spammer, both had to be accepted, and then I have to clean up the spares. Have a little patience, please! I've deleted the other version.

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              1 Reply Last reply
              0
              • D dbrenth

                My teacher asked me to write a program on the board and solve it. I wrote:

                230 - 220 x 0.5

                and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                Brent

                M Offline
                M Offline
                maze3
                wrote on last edited by
                #38

                this is excellent! :doh:

                1 Reply Last reply
                0
                • D dandy72

                  I thought about that...but who provides answers as a factorial?

                  R Offline
                  R Offline
                  rob tillaart
                  wrote on last edited by
                  #39

                  A statisticus / mathematician will provide answers as factorial as often numbers are too big to write down. E.g. 5! is quite easy but 7000000000! is huge. Assuming the world population is 7000000000, 7000000000! is approximately the number of ways you can put their names in a list. As there are people with the same name the number is actually less but still huge. There are even statistic problems where numbers like n!! (n factorial factorial *) are used which can be even "bigger than huge". *) besides "n factorial factorial", there exist "n double factorial" which is n x (n-2) x (n-4) ... x 1)

                  D 1 Reply Last reply
                  0
                  • K Keith Barrow

                    3! - 1 I think you'll find :) It's curious - nearly everyone I know was taught BODMAS - its the same as PEDMAS, but B=Brackets, O="of". PEDMAS is probably better. Also the great Indian chief "SOH-CAH-TOA". I wonder if they still teach the latter in schools.

                    KeithBarrow.net[^] - It might not be very good, but at least it is free!

                    P Offline
                    P Offline
                    Prune etna
                    wrote on last edited by
                    #40

                    Rather than the Indian chief, we were taught the great Welsh anthem: Sons of Harlech Come and Harken To our Anthem A geographic thing, I suppose. We were 50 miles from Wales but several thousand from the Indians.

                    1 Reply Last reply
                    0
                    • D Daniel Pfeffer

                      You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                      P Offline
                      P Offline
                      Peter Kelley 2021
                      wrote on last edited by
                      #41

                      Note that he said "5!", not "5".
                      He might have given it away too big a clue if he had ended his sentence properly with a period like "...I said the answer is 5!."
                      Good nerdy riddle.

                      1 Reply Last reply
                      0
                      • R Rick York

                        If you solve it left-to-right, ignoring precedence order, then the answer is 5. An old TI calculator would give you that answer. Today's windows calculator will not: it says 120 because the multiplication is done first.

                        "They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

                        P Offline
                        P Offline
                        Peter Kelley 2021
                        wrote on last edited by
                        #42

                        "5!" = 120
                        It's a clever nerdy riddle. I like it!
                        I wonder if I'd have been hassled after math class for giving such an answer? and I just noticed that Microsoft Excel doesn't recognize factorials.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          And today you learn that nobody likes a smartarse ... :laugh:

                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                          D Offline
                          D Offline
                          dbrenth
                          wrote on last edited by
                          #43

                          Quote:

                          smartarse

                          I'm owning that.

                          Brent

                          1 Reply Last reply
                          0
                          • B Bob Beechey

                            The teacher was not embarrassed but shocked that any student could be so wrong. The division MUST be carried out before the subtraction. 230 – 220 × 0.5 = 230 – 110 = 120. Try it in any scientific calculator or programming language. You are alone (I hope) in thinking the answer is 5. Are you perhaps joking?

                            D Offline
                            D Offline
                            dbrenth
                            wrote on last edited by
                            #44

                            As with a few readers, you missed the ! after the 5.

                            Brent

                            1 Reply Last reply
                            0
                            • D Daniel Pfeffer

                              You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

                              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                              D Offline
                              D Offline
                              dbrenth
                              wrote on last edited by
                              #45

                              Daniel Pfeffer wrote:

                              PEMDAS

                              I was taught "Please excuse my dear aunt sally". Or "Pizza everyone!, my diet already started."

                              Brent

                              1 Reply Last reply
                              0
                              • D dbrenth

                                My teacher asked me to write a program on the board and solve it. I wrote:

                                230 - 220 x 0.5

                                and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                                Brent

                                K Offline
                                K Offline
                                Keefer S
                                wrote on last edited by
                                #46

                                That pesky little exclamation mark...

                                1 Reply Last reply
                                0
                                • D Daniel Pfeffer

                                  You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

                                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                  K Offline
                                  K Offline
                                  Keefer S
                                  wrote on last edited by
                                  #47

                                  He is not wrong. You just didn't see the entire answer in your brain. The exclamation point is there for a reason.

                                  1 Reply Last reply
                                  0
                                  • D dbrenth

                                    My teacher asked me to write a program on the board and solve it. I wrote:

                                    230 - 220 x 0.5

                                    and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                                    Brent

                                    D Offline
                                    D Offline
                                    Dimitrios Kalemis
                                    wrote on last edited by
                                    #48

                                    Oh, come on! I immediately saw that: 5!=120

                                    1 Reply Last reply
                                    0
                                    • D Dougy83

                                      I hadn't heard of PEDMAS before; I'm guessing it's some kind of Hollywood holiday.

                                      R Offline
                                      R Offline
                                      Rusty Bullet
                                      wrote on last edited by
                                      #49

                                      More likely New Orleans!

                                      1 Reply Last reply
                                      0
                                      • R rob tillaart

                                        A statisticus / mathematician will provide answers as factorial as often numbers are too big to write down. E.g. 5! is quite easy but 7000000000! is huge. Assuming the world population is 7000000000, 7000000000! is approximately the number of ways you can put their names in a list. As there are people with the same name the number is actually less but still huge. There are even statistic problems where numbers like n!! (n factorial factorial *) are used which can be even "bigger than huge". *) besides "n factorial factorial", there exist "n double factorial" which is n x (n-2) x (n-4) ... x 1)

                                        D Offline
                                        D Offline
                                        dandy72
                                        wrote on last edited by
                                        #50

                                        Interesting. Never knew that anyone ever used factorials other than as, shall I say, a "mathematically interesting" thing and then moving on. When it comes to extremely large (or small) numbers, I always understood that the standard was to use powers of 10, for example, googling for the weight of the earth, the result is expressed as 5.972x10^24 kg.

                                        R 1 Reply Last reply
                                        0
                                        • D dbrenth

                                          My teacher asked me to write a program on the board and solve it. I wrote:

                                          230 - 220 x 0.5

                                          and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                                          Brent

                                          E Offline
                                          E Offline
                                          Ed Member 1767792
                                          wrote on last edited by
                                          #51

                                          Is it because you are saying 5! (factorial). 230 - 220 x 0.5 = 230 - 110 = 120 which is == 5x4x3x2x1 or 5!.

                                          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