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. General Programming
  3. Algorithms
  4. Impossible Numbers

Impossible Numbers

Scheduled Pinned Locked Moved Algorithms
questiongame-devalgorithmshelptutorial
6 Posts 3 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.
  • R Offline
    R Offline
    ricecake
    wrote on last edited by
    #1

    My friend posed the following question to me, that a friend of his was given in her math class: Suppose in a simplified game of (American) football that the only possible amount of points one can score at a time are 3 or 7. What is the highest score that is impossible to achieve? For example, 17 is a possible score (7 + 7 + 3) but 11 is not (there is no combination of 3's and 7's you can add together to get 11). Of course, since this is given in the context of a game, there can be no negative scores, so (7 + 7 - 3) doesn't work. I wrote a small program to brute-force the solution, and searching up to 1000 I found the maximum impossible score is 11. However, I am not able to prove it. This problem reminds me of some things we did in Number Theory class but it's been a while and I've hence forgotten a lot of it. Any pointers?

    -- Marcus Kwok

    K U 2 Replies Last reply
    0
    • R ricecake

      My friend posed the following question to me, that a friend of his was given in her math class: Suppose in a simplified game of (American) football that the only possible amount of points one can score at a time are 3 or 7. What is the highest score that is impossible to achieve? For example, 17 is a possible score (7 + 7 + 3) but 11 is not (there is no combination of 3's and 7's you can add together to get 11). Of course, since this is given in the context of a game, there can be no negative scores, so (7 + 7 - 3) doesn't work. I wrote a small program to brute-force the solution, and searching up to 1000 I found the maximum impossible score is 11. However, I am not able to prove it. This problem reminds me of some things we did in Number Theory class but it's been a while and I've hence forgotten a lot of it. Any pointers?

      -- Marcus Kwok

      K Offline
      K Offline
      Kacee Giger
      wrote on last edited by
      #2

      It's trivial to show that the score can never be 11, so you now just have to prove that all numbers greater than 11 can be scored. All numbers after 11 fall into one of 3 series: 12 + 3n + 0 = {12, 15, 18, ...} 12 + 3n + 1 = 13 + 3n = {13, 16, 19, ...} 12 + 3n + 2 = 14 + 3n = {14, 17, 20, ...} So, now just show that 12 (4 field goals), 13 (2 field goals and a touchdown), and 14 (2 touchdowns) can be scored, then all other numbers can be scored by tacking on more field goals (3n).

      R U 2 Replies Last reply
      0
      • K Kacee Giger

        It's trivial to show that the score can never be 11, so you now just have to prove that all numbers greater than 11 can be scored. All numbers after 11 fall into one of 3 series: 12 + 3n + 0 = {12, 15, 18, ...} 12 + 3n + 1 = 13 + 3n = {13, 16, 19, ...} 12 + 3n + 2 = 14 + 3n = {14, 17, 20, ...} So, now just show that 12 (4 field goals), 13 (2 field goals and a touchdown), and 14 (2 touchdowns) can be scored, then all other numbers can be scored by tacking on more field goals (3n).

        R Offline
        R Offline
        ricecake
        wrote on last edited by
        #3

        Fantastic! Thanks. Of course, now that I know the answer, it seems so obvious :badger:

        -- Marcus Kwok

        U 1 Reply Last reply
        0
        • R ricecake

          Fantastic! Thanks. Of course, now that I know the answer, it seems so obvious :badger:

          -- Marcus Kwok

          U Offline
          U Offline
          User 12346520
          wrote on last edited by
          #4

          thanks: https://movied.org

          1 Reply Last reply
          0
          • R ricecake

            My friend posed the following question to me, that a friend of his was given in her math class: Suppose in a simplified game of (American) football that the only possible amount of points one can score at a time are 3 or 7. What is the highest score that is impossible to achieve? For example, 17 is a possible score (7 + 7 + 3) but 11 is not (there is no combination of 3's and 7's you can add together to get 11). Of course, since this is given in the context of a game, there can be no negative scores, so (7 + 7 - 3) doesn't work. I wrote a small program to brute-force the solution, and searching up to 1000 I found the maximum impossible score is 11. However, I am not able to prove it. This problem reminds me of some things we did in Number Theory class but it's been a while and I've hence forgotten a lot of it. Any pointers?

            -- Marcus Kwok

            U Offline
            U Offline
            User 12346520
            wrote on last edited by
            #5

            thanks: https://movied.org

            1 Reply Last reply
            0
            • K Kacee Giger

              It's trivial to show that the score can never be 11, so you now just have to prove that all numbers greater than 11 can be scored. All numbers after 11 fall into one of 3 series: 12 + 3n + 0 = {12, 15, 18, ...} 12 + 3n + 1 = 13 + 3n = {13, 16, 19, ...} 12 + 3n + 2 = 14 + 3n = {14, 17, 20, ...} So, now just show that 12 (4 field goals), 13 (2 field goals and a touchdown), and 14 (2 touchdowns) can be scored, then all other numbers can be scored by tacking on more field goals (3n).

              U Offline
              U Offline
              User 12346520
              wrote on last edited by
              #6

              thanks: https://movied.org

              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