{"id":15014592,"url":"https://github.com/salamnocap/syracuse","last_synced_at":"2026-04-03T10:37:44.481Z","repository":{"id":173554853,"uuid":"569794770","full_name":"salamnocap/Syracuse","owner":"salamnocap","description":"The Syracuse Sequence","archived":false,"fork":false,"pushed_at":"2022-11-23T19:07:47.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T00:17:40.212Z","etag":null,"topics":["ipython","jupyter-notebook","matplotlib","plotext","python","seaborn","syracuse","vscode"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/salamnocap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-11-23T16:20:03.000Z","updated_at":"2022-11-23T18:53:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b588b05-24d4-4be6-b858-f4d75e995005","html_url":"https://github.com/salamnocap/Syracuse","commit_stats":null,"previous_names":["skuantaiuly/syracuse","salamnocap/syracuse"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamnocap%2FSyracuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamnocap%2FSyracuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamnocap%2FSyracuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salamnocap%2FSyracuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salamnocap","download_url":"https://codeload.github.com/salamnocap/Syracuse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243313409,"owners_count":20271178,"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":["ipython","jupyter-notebook","matplotlib","plotext","python","seaborn","syracuse","vscode"],"created_at":"2024-09-24T19:45:48.971Z","updated_at":"2025-12-26T10:58:48.306Z","avatar_url":"https://github.com/salamnocap.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syracuse\n## The Syracuse Sequence\n\nThe Syracuse (Collatz or Hailstone) conjecture concerns a sequence of integers defined as follows:\n\nStarts with any positive integer N \n\n\u0026nbsp;\u0026nbsp;And each term is formed from the previous one as follows:\n        \n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;if the previous term is odd:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;the next term is 3 times the previous term and plus 1 \n\n$$\n                3*N + 1\n$$\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;if the previous term is even:\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;the next term is half the previous term\n\n$$ \n                N / 2\n$$\n    \nThe sequence will always reach 1. 🏁\n\n## Solution\n\n+ Solution in IPython Notebook 8.5.0:\n[Syracuse.ipynb](https://github.com/skuantaiuly/Syracuse/blob/main/Syracuse.ipynb)\n\n+ Solution in Python 3.10.6:\n[Syracuse.py](https://github.com/skuantaiuly/Syracuse/blob/main/Syracuse.py)\n\n#### Additional libraries used for visualization:\n\nSeaborn\n\n```\npip install seaborn\n```\n\nMatplotlib\n\n```\npip install matplotlib\n```\n\nPlotext\n\n```\npip install plotext\n```\n\n## Clone this repository :\n\n```\n$ git clone https://github.com/skuantaiuly/Syracuse.git\n```\n\n## Author\n\nKuantaiuly Salamat\n\n11/2022, developed on IPython and Jupyter Notebook, Visual Studio Code\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalamnocap%2Fsyracuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalamnocap%2Fsyracuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalamnocap%2Fsyracuse/lists"}