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 - binaries

Puzzle time - binaries

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 54 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.
  • KlausK Offline
    KlausK Offline
    Klaus
    wrote on last edited by Klaus
    #1

    Consider a string of binary numbers s, such as s = 1011.

    Now consider a machine that works on s. It performs the following three steps:

    1. Append 1 to the right end of s.
    2. Add the new s from step 1 to the old s with binary addition
    3. Remove all trailing 0s.

    The machine iterates these steps and stops only when s = 1.

    For instance, for s = 1011 we have s = 10111 after step 1, s = 10111+1011 = 100010 after step 2, s = 10001 after step 3.

    After the next iteration we get s = 01101, then 0101, then 1. The machine stops.

    Can you find an s such that the machine doesn't stop? Or conversely, can you make an argument why the machine will always stop for any s?

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

      I think it will always Collatz to 1 in the end. But that's just a conjecture.

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

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

        Kind of a dick move, by the way

        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
          #4

          Damn, my superficial masquerade of the problem failed.

          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