Collatz Conjecture

버전 1.0.0.0 (1.55 KB) 작성자: Reza Ahmadzadeh
Test the Collatz Conjecture (a.k.a 3x+1 conjecture)
다운로드 수: 281
업데이트 날짜: 2016/8/8

라이선스 보기

The conjecture can be summarized as follows. Take any positive integer n. If n is even, divide it by 2 to get n / 2. If n is odd, multiply it by 3 and add 1 to obtain 3n + 1. Repeat the process (which has been called "Half Or Triple Plus One", or HOTPO) indefinitely. The conjecture is that no matter what number you start with, you will always eventually reach 1.

인용 양식

Reza Ahmadzadeh (2024). Collatz Conjecture (https://www.mathworks.com/matlabcentral/fileexchange/58606-collatz-conjecture), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Biomedical Imaging에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0