• What is the approved way to share programs here?

    From Ronald Hudson@21:1/5 to All on Thu Aug 31 08:29:41 2023
    Is anyone else interested in the 3n+1 problem?

    My first program after "hello world" is usually Colatz. It takes a positive integer as an input and runs the colatz (3n+1) process on it until it reaches 1. it watches to see what the maximum number reached is, when n drops below its initial value, the
    number of steps, count of even and odd steps, and anything else I can think of to help find some sort of pattern.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave McGuire@21:1/5 to Ronald Hudson on Thu Aug 31 11:53:51 2023
    On 8/31/23 11:29, Ronald Hudson wrote:
    Is anyone else interested in the 3n+1 problem?

    My first program after "hello world" is usually Colatz. It takes a positive integer as an input and runs the colatz (3n+1) process on it until it reaches 1. it watches to see what the maximum number reached is, when n drops below its initial value, the
    number of steps, count of even and odd steps, and anything else I can think of to help find some sort of pattern.

    "Approved"? In an unmoderated Usenet newsgroup? Heh. ;)

    Just post the source code as plain text.

    -Dave

    --
    Dave McGuire, President/Curator
    Large Scale Systems Museum
    New Kensington, PA

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)