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, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
You know the right answer?
The collatz conjecture: the collatz conjecture, also known as the 3n+1 conjecture (and other names),...
Questions
question
Mathematics, 20.01.2020 06:31
question
Mathematics, 20.01.2020 06:31
question
Mathematics, 20.01.2020 06:31
question
Business, 20.01.2020 06:31
question
Mathematics, 20.01.2020 06:31
Questions on the website: 13722362