https://github.com/oxy86/collatz-conjecture
Demonstration of Collatz Conjecture (3N+1) in React/Next.js
https://github.com/oxy86/collatz-conjecture
collatz-conjecture mathematics nextjs react tailwindcss
Last synced: 2 months ago
JSON representation
Demonstration of Collatz Conjecture (3N+1) in React/Next.js
- Host: GitHub
- URL: https://github.com/oxy86/collatz-conjecture
- Owner: oxy86
- License: gpl-3.0
- Created: 2022-02-23T21:06:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-23T21:02:42.000Z (over 1 year ago)
- Last Synced: 2025-03-15T09:28:18.629Z (over 1 year ago)
- Topics: collatz-conjecture, mathematics, nextjs, react, tailwindcss
- Language: JavaScript
- Homepage: https://collatz-conjecture-inky.vercel.app
- Size: 215 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a simple [Next.js](https://nextjs.org/) project to demonstrate/visualize the Collatz Conjecture (3N+1).
Also known as the Ulam Conjecture, Kakutani's Problem, Syracuse Problem or simply 3N+1, the Collatz Conjecture is the following:
- Take any positive integer number.
- If the number is odd, multiply it by three and add one. If the number is even, divide by two. Repeat with every new number.
The conjecture →
Every positive integer, if you apply these rules, will end up in a four → two → one loop.
It is called Collatz Conjecture after German mathematician Luther Collatz.
The app uses tailwindcss for CSS and Recharts for charts and visualizaiton.
## Getting Started
First, download the code, enter the new folder and install the node packages:
```bash
npm install
```
Then run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the app running.
Changelog:
2024/12/10 - Push to Vercel
2025/01/23 - NextJS 15