Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. Puzzle time - slicing the pie

Puzzle time - slicing the pie

Scheduled Pinned Locked Moved General Discussion
16 Posts 2 Posters 102 Views
  • 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.
  • jon-nycJ Online
    jon-nycJ Online
    jon-nyc
    wrote on last edited by
    #7

    It’s not. Still the wrong series.

    The whole reason we call them illegal aliens is because they’re subject to our laws.

    1 Reply Last reply
    • KlausK Offline
      KlausK Offline
      Klaus
      wrote on last edited by Klaus
      #8

      OK, here's what all other sequences that start with 1,2,4,6,10,14,19 stored at that nice website say about it's 10th/11th element:

      A023115 - 45
      A076101 - 52
      A094281 - 51
      A323623 - 43
      A023536 - 46
      A047808 - 44
      A076268 - 42
      A024536 - 49
      A117237 - 52

      It must be one of those 😁

      jon-nycJ 1 Reply Last reply
      • jon-nycJ Online
        jon-nycJ Online
        jon-nyc
        wrote on last edited by jon-nyc
        #9

        Hint:

        ||Thinking of the cuts as lines on a circle, what’s the largest number of lines the nth cut can intersect?||

        The whole reason we call them illegal aliens is because they’re subject to our laws.

        KlausK 1 Reply Last reply
        • KlausK Klaus

          OK, here's what all other sequences that start with 1,2,4,6,10,14,19 stored at that nice website say about it's 10th/11th element:

          A023115 - 45
          A076101 - 52
          A094281 - 51
          A323623 - 43
          A023536 - 46
          A047808 - 44
          A076268 - 42
          A024536 - 49
          A117237 - 52

          It must be one of those 😁

          jon-nycJ Online
          jon-nycJ Online
          jon-nyc
          wrote on last edited by
          #10

          @Klaus said in Puzzle time - slicing the pie:

          OK, here's what all other sequences that start with 1,2,4,6,10,14,19 stored at that nice website say about it's 10th/11th element:

          A023115 - 45
          A076101 - 52
          A094281 - 51
          A323623 - 43
          A023536 - 46
          A047808 - 44
          A076268 - 42
          A024536 - 49
          A117237 - 52

          It must be one of those 😁

          And it’s none of those!

          The whole reason we call them illegal aliens is because they’re subject to our laws.

          1 Reply Last reply
          • jon-nycJ jon-nyc

            Hint:

            ||Thinking of the cuts as lines on a circle, what’s the largest number of lines the nth cut can intersect?||

            KlausK Offline
            KlausK Offline
            Klaus
            wrote on last edited by
            #11

            @jon-nyc said in Puzzle time - slicing the pie:

            Hint:

            ||Thinking of the cuts as lines on a circle, what’s the largest number of lines the nth cut can intersect?||

            Hey, I'm in a Zoom meeting right now. I can only do this as a low-priority background task that doesn't require me to think 🙂

            1 Reply Last reply
            • KlausK Offline
              KlausK Offline
              Klaus
              wrote on last edited by Klaus
              #12

              ||
              Oh, I see, my problem was that I screwed up on the start of the sequence. It's 1,2,4,7,11,16.

              The first answer I get from OEIS is A000124, which has the promising subtitle "maximal number of pieces formed when slicing a pancake with n cuts.".

              So the answer seems to be 56.

              I refer to the references given at OEIS for the rationale 😀
              ||

              1 Reply Last reply
              • jon-nycJ Online
                jon-nycJ Online
                jon-nyc
                wrote on last edited by jon-nyc
                #13

                Cheater.

                ||How about noticing, based on my hint, that the nth cut can, at most, intersect the other n-1 cuts just once. That forms n new line segments (considering the edges of the pizza as end points as well). Each new line segment corresponds to a new slice of pie.

                So f(n)=f(n-1)+n
                And we know f(0) is 1

                So:
                f(1) = 2
                f(2) = 4
                f(3) = 7
                f(4) = 11
                f(5) = 16
                f(6) = 22
                f(7) = 29
                f(8) = 37
                f(9) = 46
                f(10) = 56

                So to get the nth number:

                1+1+2+3+4+5+6..+n

                Note that's just 1 plus the sum of the natural numbers to n.

                So 1 + n(n+1)/2 or

                (n^2 + n + 2)/2||

                The whole reason we call them illegal aliens is because they’re subject to our laws.

                1 Reply Last reply
                • KlausK Offline
                  KlausK Offline
                  Klaus
                  wrote on last edited by Klaus
                  #14

                  Hey, I didn't google for the task or something; I merely tried out a few cuts and searched for known sequences based on that. For a 5% CPU usage background task I'm happy with my performance 🙂

                  1 Reply Last reply
                  • KlausK Offline
                    KlausK Offline
                    Klaus
                    wrote on last edited by
                    #15

                    @jon-nyc said in Puzzle time - slicing the pie:

                    How about noticing, based on my hint, that the nth cut can, at most, intersect the other n-1 cuts just once.

                    That makes sense, but how do you know that this is not merely an upper bound but that you can always find a line that intersects n-1 cuts?

                    1 Reply Last reply
                    • jon-nycJ Online
                      jon-nycJ Online
                      jon-nyc
                      wrote on last edited by
                      #16

                      The short answer I can give you on my phone is “because there are infinite points on a circle”.

                      If you want a longer explanation I can do that later.

                      The whole reason we call them illegal aliens is because they’re subject to our laws.

                      1 Reply Last reply

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      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
                      • Users
                      • Groups