{"id":21536692,"url":"https://github.com/kartmaan/collatz_conjecture","last_synced_at":"2025-08-03T13:12:21.240Z","repository":{"id":56174043,"uuid":"305994428","full_name":"Kartmaan/collatz_conjecture","owner":"Kartmaan","description":"Graphic representations of Collatz sequences","archived":false,"fork":false,"pushed_at":"2023-04-29T14:08:07.000Z","size":214,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T07:30:00.436Z","etag":null,"topics":["collatz","collatz-algorithm","collatz-conjecture","collatz-problem","collatz-sequences","collatzconjecture","conjecture","graphics","math","mathematics","pyqt5","pyqtgraph","syracuse","unsolved-problems"],"latest_commit_sha":null,"homepage":"","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/Kartmaan.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":"2020-10-21T10:55:16.000Z","updated_at":"2024-05-06T14:23:10.000Z","dependencies_parsed_at":"2025-01-24T07:38:06.128Z","dependency_job_id":null,"html_url":"https://github.com/Kartmaan/collatz_conjecture","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/Kartmaan%2Fcollatz_conjecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartmaan%2Fcollatz_conjecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartmaan%2Fcollatz_conjecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kartmaan%2Fcollatz_conjecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kartmaan","download_url":"https://codeload.github.com/Kartmaan/collatz_conjecture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244104827,"owners_count":20398742,"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":["collatz","collatz-algorithm","collatz-conjecture","collatz-problem","collatz-sequences","collatzconjecture","conjecture","graphics","math","mathematics","pyqt5","pyqtgraph","syracuse","unsolved-problems"],"created_at":"2024-11-24T03:21:10.656Z","updated_at":"2025-03-17T20:27:21.754Z","avatar_url":"https://github.com/Kartmaan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collatz_conjecture\n\n## What's Collatz conjecture ?\nThe Collatz conjecture is defined as follows:\n- The starting value n is a positive integer\n- If the previous term x is even, the next term = x/2\n- If the previous term x is odd, the next term = x*3 + 1\n\nThe conjecture is that whatever the value of n, the sequence will always reach 1 before oscillating indefinitely on the values 4,2,1,4,2,1,4,2,1, .... (in this program, the sequence generation process stops as soon as it encounters a 1). The Collatz conjecture is still an unsolved problem in mathematics, it has not yet been shown that all sequences reach 1 for an integer and positive initial value.\n\n## What does the program do?\nThe program designed with PyQt5 and PyQtGraph generate Collatz conjecture sequences. The program allows to:\n- Visualize graphically a sequence from a single input value\n- Compare the sequences of two input values in the form of two superimposed graphs\n- Display more detailed statistics (flight time, time on altitude \u003en, max altitude, average altitude, number of even/odd values)\n- Save graphics in .png format\n- Copy the sequence(s) generated to the clipboard\n- Randomly generate Collatz sequences\n\n## Screenshots\n### Interface\n![collatz](https://user-images.githubusercontent.com/11463619/96777644-df9fd100-13ea-11eb-8404-d04e714da630.png)\n### Sequences pasted from clipboard\n![paste](https://user-images.githubusercontent.com/11463619/96784908-5d191080-13ee-11eb-9933-d3088b0c9c99.png)\n### Graph saved as .png image\n![97-649](https://user-images.githubusercontent.com/11463619/96784880-54283f00-13ee-11eb-8851-f90d954f31a4.png)\n\n## Requirements\n- `numpy`\n- `PyQt5`\n- `pyqtgraph`\n- `pyperclip`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartmaan%2Fcollatz_conjecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkartmaan%2Fcollatz_conjecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartmaan%2Fcollatz_conjecture/lists"}