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. TWCP OTD (The Who Cares Puzzle Of The Day) - 14th of February, 2017

TWCP OTD (The Who Cares Puzzle Of The Day) - 14th of February, 2017

Scheduled Pinned Locked Moved The Lounge
helpquestion
18 Posts 9 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.
  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

    EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

    7, assuming eggs are not divisible. If they are, 0.

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

    "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

    Kornfeld Eliyahu PeterK L 2 Replies Last reply
    0
    • OriginalGriffO OriginalGriff

      7, assuming eggs are not divisible. If they are, 0.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #3

      Actually eggs are divisible very easily... but I don't think you can give them away after that...

      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?

        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

        P Offline
        P Offline
        PeejayAdams
        wrote on last edited by
        #4

        How many people are in the families?

        Slogans aren't solutions.

        Kornfeld Eliyahu PeterK 1 Reply Last reply
        0
        • P PeejayAdams

          How many people are in the families?

          Slogans aren't solutions.

          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu Peter
          wrote on last edited by
          #5

          An average of six each... Why?

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            7, assuming eggs are not divisible. If they are, 0.

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            I would say the same, it's only this sentence that is vague enough to lead us into a trap[^]:

            Quote:

            After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg.

            The 'otherwise' is not as clear as we are led to believe.

            The language is JavaScript. that of Mordor, which I will not utter here
            This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
            "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • L Lost User

              I would say the same, it's only this sentence that is vague enough to lead us into a trap[^]:

              Quote:

              After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg.

              The 'otherwise' is not as clear as we are led to believe.

              The language is JavaScript. that of Mordor, which I will not utter here
              This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
              "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu PeterK Offline
              Kornfeld Eliyahu Peter
              wrote on last edited by
              #7

              CDP1802 wrote:

              The 'otherwise' is not as clear as we are led to believe.

              I hope so :-)

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?

                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                K Offline
                K Offline
                kakan
                wrote on last edited by
                #8

                African or European chickens?

                Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

                Kornfeld Eliyahu PeterK Richard DeemingR 2 Replies Last reply
                0
                • K kakan

                  African or European chickens?

                  Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu PeterK Offline
                  Kornfeld Eliyahu Peter
                  wrote on last edited by
                  #9

                  I'm not sure... This kind: chickens[^]... Do you recognize?

                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                  D 1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?

                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

                    If the number of recipients is greater than 1, then 301. 301 mod 2 = 1 301 mod 3 = 1 301 mod 4 = 1 301 mod 5 = 1 301 mod 6 = 1 301 mod 7 = 1

                    If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                    Kornfeld Eliyahu PeterK J 2 Replies Last reply
                    0
                    • D Daniel Pfeffer

                      If the number of recipients is greater than 1, then 301. 301 mod 2 = 1 301 mod 3 = 1 301 mod 4 = 1 301 mod 5 = 1 301 mod 6 = 1 301 mod 7 = 1

                      If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu Peter
                      wrote on last edited by
                      #11

                      Daniel Pfeffer wrote:

                      301 mod 7 = 0 1

                      FTFY... Nothing like Copy-Paste :-)

                      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                      D L 2 Replies Last reply
                      0
                      • D Daniel Pfeffer

                        If the number of recipients is greater than 1, then 301. 301 mod 2 = 1 301 mod 3 = 1 301 mod 4 = 1 301 mod 5 = 1 301 mod 6 = 1 301 mod 7 = 1

                        If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                        J Offline
                        J Offline
                        Jochen Arndt
                        wrote on last edited by
                        #12

                        :thumbsup: Perfect except

                        Quote:

                        301 mod 7 = 1

                        D 1 Reply Last reply
                        0
                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                          Daniel Pfeffer wrote:

                          301 mod 7 = 0 1

                          FTFY... Nothing like Copy-Paste :-)

                          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

                          :sigh: :-O

                          If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                          1 Reply Last reply
                          0
                          • J Jochen Arndt

                            :thumbsup: Perfect except

                            Quote:

                            301 mod 7 = 1

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

                            Copy-paste strikes again... :sigh: :-O

                            If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                            1 Reply Last reply
                            0
                            • K kakan

                              African or European chickens?

                              Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

                              Richard DeemingR Offline
                              Richard DeemingR Offline
                              Richard Deeming
                              wrote on last edited by
                              #15

                              No, he said "eggs", not "coconuts". :laugh:


                              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                              1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                I'm not sure... This kind: chickens[^]... Do you recognize?

                                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

                                :confused: Do grilled chickens lay eggs? Perhaps they lay fried eggs... :)

                                If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                                1 Reply Last reply
                                0
                                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                  Daniel Pfeffer wrote:

                                  301 mod 7 = 0 1

                                  FTFY... Nothing like Copy-Paste :-)

                                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #17

                                  Kornfeld Eliyahu Peter wrote:

                                  Nothing Exactly like Copy-Paste

                                  FTFYC

                                  1 Reply Last reply
                                  0
                                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                    EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?

                                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                    R Offline
                                    R Offline
                                    Rage
                                    wrote on last edited by
                                    #18

                                    The result is the smallest multiple of 7 which satisfies the rule : This result minus one is also a multiple of 2,3,4,5 and 6. So a=(2*3*5*k)+1=n*7, with n and k integers >= 1, and k a product of 2, 3, and/or 5 only. In increasing possible values of k: k=2 : a=61, which is prime. k=2x2 : a=121 = 11x11. k=5 : a=151 which is prime. k=2x3 : a=181 which is prime. k=2x5 : a=301 = 7x43, n=43, and we have a winner.

                                    Do not escape reality : improve reality !

                                    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