Skip to content

Instantly share code, notes, and snippets.

@sguzman
Created June 23, 2023 06:10
Show Gist options
  • Save sguzman/acafab506948bc4c62724dac38318eb7 to your computer and use it in GitHub Desktop.
Save sguzman/acafab506948bc4c62724dac38318eb7 to your computer and use it in GitHub Desktop.
My extension of the collatz conjecture to add fix point instead of a orbit
co[n_Integer /; EvenQ[n]] := co[n] = n / 2
co[n_Integer /; OddQ[n]] := co[n] = 3 n + 1
co[1] = 0
co[0] = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment