{"id":20957479,"url":"https://github.com/mrvideo/collatz-visualiser","last_synced_at":"2025-03-13T06:13:53.127Z","repository":{"id":152358449,"uuid":"426757658","full_name":"MrVideo/collatz-visualiser","owner":"MrVideo","description":"A Python script to plot the number sequence generated by a seed through the Collatz conjecture","archived":false,"fork":false,"pushed_at":"2021-11-11T14:43:40.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T00:48:31.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrVideo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-11-10T19:53:36.000Z","updated_at":"2023-04-14T23:46:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea4dfe42-1ed5-4359-bc99-bfa2e26fd53f","html_url":"https://github.com/MrVideo/collatz-visualiser","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/MrVideo%2Fcollatz-visualiser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrVideo%2Fcollatz-visualiser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrVideo%2Fcollatz-visualiser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrVideo%2Fcollatz-visualiser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrVideo","download_url":"https://codeload.github.com/MrVideo/collatz-visualiser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243352034,"owners_count":20276916,"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-11-19T01:33:57.497Z","updated_at":"2025-03-13T06:13:53.106Z","avatar_url":"https://github.com/MrVideo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collatz Conjecture Plot Visualiser\n\nA Python script to plot the number sequence generated by a seed through the Collatz conjecture. Inspired by [Veritasium's video](https://www.youtube.com/watch?v=094y1Z2wpJg).\n\n## What is the Collatz conjecture?\n\nFrom [Wikipedia](https://en.wikipedia.org/wiki/Collatz_conjecture):\n\u003e The Collatz conjecture is a conjecture in mathematics that concerns sequences defined as follows: start with any positive integer n. Then each term is obtained from the previous term as follows: if the previous term is even, the next term is one half of the previous term. If the previous term is odd, the next term is 3 times the previous term plus 1. The conjecture is that no matter what value of n, the sequence will always reach 1.\n\n## What does this script do?\n\nThis script takes a natural number greater or equal than one and follows the rules imposed by the conjecture to then gather an array of integers and plot them with ``matplotlib.pyplot``.\n\n### Known problems\n\nVery big integers converge to 0 instead of 1. I will try to solve this, but it might be caused by approximation errors, which are out of my control.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrvideo%2Fcollatz-visualiser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrvideo%2Fcollatz-visualiser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrvideo%2Fcollatz-visualiser/lists"}