• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login
Forum — Daily Challenge
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

Can someone please explain this problem.

Module 5 Day 3 Your Turn Part 3
6
9
137
Loading More Posts
  • 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.
  • I
    InTeReStInG M5
    last edited by debbie Jan 21, 2021, 10:12 PM Jan 14, 2021, 2:57 AM

    Module 5 Day 3 Your Turn Part 3 Mini-Question Solution

    It says that this number is odd, when it is even because 8^7^6^5 and so on can be expressed as 8^(7!), and we know that even*even=even.

    V 1 Reply Last reply Jan 20, 2021, 2:39 PM Reply Quote 5
    • V
      v4913 MOD M0 M1 M2 M3 M4 M5 @InTeReStInG
      last edited by Jan 20, 2021, 2:39 PM

      Very close! It would only be equal to 8^(7!) if there were parentheses around each term like this:
      Screenshot from 2021-01-20 09-37-40.png
      If there are no parentheses, the powers cannot be multiplied, and so it equals this:
      Screenshot from 2021-01-20 09-28-48.png
      Since the exponent on the 8 is a power of 7, which is odd, the answer is equal to 8^{1} mod 9.

      I A 2 Replies Last reply Jan 21, 2021, 3:10 PM Reply Quote 7
      • M
        mathnerd_101 M0 M3
        last edited by Jan 20, 2021, 7:16 PM

        @v4913 said in Can someone please explain this problem.:

        Very close! It would only be equal to 8^(7!) if there were parentheses around each term like this:
        Screenshot from 2021-01-20 09-37-40.png
        If there are no parentheses, the powers cannot be multiplied, and so it equals this:
        Screenshot from 2021-01-20 09-28-48.png
        Since the exponent on the 8 is a power of 7, which is odd, the answer is equal to 8^{1} mod 9.

        o pro v4913 post o

        If you see the text messages between two programmers, here are some common acronyms to know:
        imo: iteration may overload
        brb: bad recursion brb
        rofl: right-oriented frame layout

        1 Reply Last reply Reply Quote 4
        • I
          InTeReStInG M5 @v4913
          last edited by Jan 21, 2021, 3:10 PM

          @v4913 Ok, thanks! I also have another question about this problem. When it is odd, why is the answer -1 mod 9?

          D A V 3 Replies Last reply Jan 23, 2021, 5:09 PM Reply Quote 4
          • D
            debbie ADMIN M0★ M1 M5 @InTeReStInG
            last edited by Jan 23, 2021, 5:09 PM

            @neatlobster @v4913 Thank you 🙂

            1 Reply Last reply Reply Quote 3
            • A
              audrey MOD @InTeReStInG
              last edited by Jan 23, 2021, 5:33 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • V
                v4913 MOD M0 M1 M2 M3 M4 M5 @InTeReStInG
                last edited by Jan 24, 2021, 7:27 PM

                @neatlobster Good question! Since 8 = -1 mod 9, and the powers of -1 go -1, 1, -1, 1, etc, all (-1)^{even} = 1 mod 9 and all (-1)^{odd} = -1 mod 9. Since we are talking about modulos, and 8 is the same as -1 mod 9, this means (8)^{even} = 1 mod 9, and (8)^{odd} = -1 mod 9.

                1 Reply Last reply Reply Quote 3
                • A
                  amusingminnow M0 M1 M2 M3 M4 M5 @v4913
                  last edited by Jun 13, 2021, 2:41 PM

                  @v4913 Since there isn't any parentheses, what does this formula mean?
                  Screen Shot 2021-06-13 at 10.41.06.png

                  V 1 Reply Last reply Jun 13, 2021, 4:00 PM Reply Quote 1
                  • V
                    v4913 MOD M0 M1 M2 M3 M4 M5 @amusingminnow
                    last edited by v4913 Jun 13, 2021, 4:02 PM Jun 13, 2021, 4:00 PM

                    @amusingminnow Good question! It's highly non-obvious, but the rules of operations say that when there are stacked powers with no parentheses, we work from the top down, so for example, 2477c580-a159-4f31-9eae-6ee1887a5d7a-image.png
                    We can continue this pattern to evaluate the entire expression.

                    (Sorry for the bad formatting lol)

                    1 Reply Last reply Reply Quote 1

                    • 1 / 1
                    • First post
                      Last post
                    Daily Challenge | Terms | COPPA