• Scipitie@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      12 hours ago

      Edit: misread the prompt, below original post is wrong, I apologize!


      Noe start with three or any odd number :p 3 , 7, 15, 31, 33…

      I think only 2^x has the outcome you describe, please correct me if I’m mistaken.

      • addison@piefed.social
        link
        fedilink
        English
        arrow-up
        10
        ·
        18 hours ago

        Odd numbers cause double plus one additional passengers to board. So a cycle starting with 3 is a bit different.

        3 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1 -> 4 …

      • wonderingwanderer@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        13 hours ago

        7→22→11→34→17→52→26→13→40→20→10→5→16→8→4→2→1→4→2→1→4→2→1…

        Edit: also, 9→28→14→7…

        And, 15→46→23→70→35→106→53→160→80→40→20→10→5→16→8→4→2→1…

        Or even, 19→58→29→88→44→22→11→…

        And lest we forget, 3→10→5→16→8→4→2→1…

        That covers every odd number below 20. Want me to do 21 and 25, too? Perhaps 27?

        • Scipitie@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 hours ago

          The trick is to read the prompt. I had 2n+1 are the new number of passengers.

          Had to reconstruct it from your answer though.

          Anyway, thanks!