Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Recall in class that we discussed the hailstone numbers where In = 3.xn-1+1 if In-1 is odd and In = In-1/2 if In-1 is even.

image text in transcribed

Recall in class that we discussed the hailstone numbers where In = 3.xn-1+1 if In-1 is odd and In = In-1/2 if In-1 is even. The hailstone numbers converge to a sort of holding pattern 4+2+1+4+2+1+ 4+2 +1. We call this kind of pattern a convergence because it repeats. Write a program to test generalized hailstone numbers where In = azn-1 + b if In-1 is odd and In = In-1/2 if In-1 is even where a and b are positive integers. For each of the a, b pairs less than or equal to 10, find whether or not the sequence seems to converge. Once you can do that, tell me how many different holding patterns the sequence converges to. For instance, when a = 3 and b = 5 then 1 +8+ 4 + 2 + 1 this is holding pattern. However, if we start with a different number, say 5 we get a different holding pattern 5 + 20 + 10 + 5. Recall in class that we discussed the hailstone numbers where In = 3.xn-1+1 if In-1 is odd and In = In-1/2 if In-1 is even. The hailstone numbers converge to a sort of holding pattern 4+2+1+4+2+1+ 4+2 +1. We call this kind of pattern a convergence because it repeats. Write a program to test generalized hailstone numbers where In = azn-1 + b if In-1 is odd and In = In-1/2 if In-1 is even where a and b are positive integers. For each of the a, b pairs less than or equal to 10, find whether or not the sequence seems to converge. Once you can do that, tell me how many different holding patterns the sequence converges to. For instance, when a = 3 and b = 5 then 1 +8+ 4 + 2 + 1 this is holding pattern. However, if we start with a different number, say 5 we get a different holding pattern 5 + 20 + 10 + 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Design a health and safety policy.

Answered: 1 week ago