首页 > 其他分享 >x

x

时间:2024-10-27 17:33:28浏览次数:3  
标签: Project option number 2024 program numbers

Computation and Programming2024Project – Playing with Hailstone NumbersThe project has two parts:

  • Building a program that allows the user to explore some features of the number sequencesrelated to the Collatz Conjecture.
  • The implementation of a simple game related to the Collatz conjecture.The Collatz ConjectureThe Collatz Conjecture (named after Lothar Collatz, who introduced it in 1937), also known as the 3x+1 problem, states that, starting with any positive integer, x,andapplying two simple operations (if thenumber is even, divide it by 2; if the number is odd, multiply it by 3 and add 1), number 1 will eventuallybe reached.In a more rigorous way, we can define the Collatz function, C, as:

标签:,Project,option,number,2024,program,numbers
From: https://www.cnblogs.com/goodlunn/p/18508364

相关文章