Skip to content
#

collatz-conjecture

Here are 17 public repositories matching this topic...

Using recursion and java, I designed a simple method that takes in any positive integer N and performs two calculations. The method returns N/2 if N is even or it returns 3*N + 1 if N is odd. This recursive process is ran until N is 1. Using a separate method called collatzChecker, I used an iterative method to call the Collatz recursive method …

  • Updated Apr 9, 2022
  • Java

Improve this page

Add a description, image, and links to the collatz-conjecture topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the collatz-conjecture topic, visit your repo's landing page and select "manage topics."

Learn more