collatz conjecture Applies the Collatz algorithm. If n is even, return n/2. Otherwise, return 3n+1. The collatz conjecture is that no matter what value of n, the sequence will always reach 1. ⚛️ Example: collatz(8); // 4 ⚛️ References: https://www.youtube.com/watch?v=5mFpVDpKX70 https://en.wikipedia.org/wiki/Collatz_conjecture ➖➖➖ 🕉 Follow @the.unpaid.dev on #instagram for new JS, CSS, HTML, DevOps 🔥🔥 ➖➖➖ ♋ Comment below 📲📲 #math #mathematics #algorithm #collatzconjecture (at Nagpur) https://www.instagram.com/p/B1Y1Fb_H4gO/?igshid=1vtssrmurc96w















