Collatz Conjecture
Authors: Samrit Pramanik
Abstract: The Collatz Conjecture is indeed a fascinating mathematical problem, and showcasing it in an R Shiny app is an innovative way to visualize the behaviour of the algorithm. The conjecture operates as follows:
- Start with any positive integer 𝑛.
- If 𝑛 is even, divide it by 2.
- If 𝑛 is odd, multiply it by 3 and add 1.
- Repeat the process with the resulting value of 𝑛, eventually, the sequence will reach 1 (according to the conjecture).
An R Shiny app could bring this process to life by plotting the sequence of integers dynamically. Users could input a number, and the app would display how the sequence evolves until it reaches 1, potentially showing both the numerical results and a line graph that updates with each step.
Full Description:
Shiny app: Collatz Conjecture
Repo: GitHub - samrit2442/collatz-conjecture
Thumbnail:
Full image: