subject
Engineering, 26.10.2019 00:43 ParallelUniverse

The collatz conjecture: the collatz conjecture, also known as the 3n+1 conjecture (and other names), deals with the following operation to produce a sequence of numbers. given a number, n, if n is even then the next number is n divided by 2. if n is odd, then the next number is 3n+1. the collatz conjecture is that this sequence of numbers always eventually reaches 1. as simple as this seems, it is unproven (and considered extremely hard to prove) by mathematicians. as an example of a sequence, if you start with the number 6, then the terms of the sequence will be: 6, 3, 10, 5, 16, 8, 4, 2, 1.write a program that takes in a positive integer from a user, and computes the collatz sequence, printing out all the numbers in the sequence, followed by a line stating how many iterations it took to reach the value 1.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
You know the right answer?
The collatz conjecture: the collatz conjecture, also known as the 3n+1 conjecture (and other names),...
Questions
question
Mathematics, 03.12.2020 08:20
question
Mathematics, 03.12.2020 08:20
Questions on the website: 13722362