{"id":16104964,"url":"https://github.com/dbc2201/collatzconjecture","last_synced_at":"2025-07-05T03:34:56.207Z","repository":{"id":133011552,"uuid":"506444442","full_name":"dbc2201/CollatzConjecture","owner":"dbc2201","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-23T00:16:36.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T08:39:36.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbc2201.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-23T00:16:32.000Z","updated_at":"2022-08-21T02:29:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b4e5e47-3cd2-4aee-ae3e-a5919b8d96b3","html_url":"https://github.com/dbc2201/CollatzConjecture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FCollatzConjecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FCollatzConjecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FCollatzConjecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FCollatzConjecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbc2201","download_url":"https://codeload.github.com/dbc2201/CollatzConjecture/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247425653,"owners_count":20936994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T19:07:28.002Z","updated_at":"2025-04-06T02:29:50.825Z","avatar_url":"https://github.com/dbc2201.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collatz Conjecture\n\n## Java Programming Course\n\n---\n\n**Course 1**: Problem-Solving and Computational Thinking in Java\n\n**Sprint 5**: Working with Looping Constructs\n\n---\n\nProblem Statement\n---\n\nCalculate the number of steps required to reach 1 from a given number `n` by following the Collatz sequence.\n\n```math\nf(n) = \\begin{cases}\\frac{3n+1}{2}\u0026\\text{ if $n$ is odd,}\\\\\\frac{n}{2}\u0026\\text{ if $n$ is even.}\\end{cases}\n```\n\n\n\n---\n\nTask\n---\n\n1. Open the [source code file](src/main/java/io/github/dbc/CollatzStepsCounter.java) and complete the code.\n2. Open the [test case file](src/test/java/io/github/dbc/CollatzStepsCounterTest.java) and run the test cases to\n   check your code.\n\n---\n\nFun Resources\n---\n\n1. [List of number of steps to reach 1 for Collatz Conjecture from OEIS](https://oeis.org/A006577/b006577.txt)\n2. [Collatz Conjecture on OEIS (One-Line Encyclopedia for Integer Sequences)](https://oeis.org/A006577)\n3. [Collatz Conjecture on Wikipedia](https://en.wikipedia.org/wiki/Collatz_conjecture)\n4. [UNCRACKABLE? The Collatz Conjecture - Numberphile](https://youtu.be/5mFpVDpKX70)\n5. [Collatz Conjecture in Color - Numberphile](https://youtu.be/LqKpkdRRLZw)\n6. [Conjecture meaning in the Cambridge English Dictionary](https://dictionary.cambridge.org/dictionary/english/conjecture)\n7. [What is the Collatz Conjecture? - CollatzResearch.org](https://www.collatzresearch.org/chapter1-what-is-the-collatz-conjec)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbc2201%2Fcollatzconjecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbc2201%2Fcollatzconjecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbc2201%2Fcollatzconjecture/lists"}