subject

Write a function solution that, given two integers a and b, returns the maximum number of repeated square root operations that can be performed using the numbers from the interval [a..b](both ends included) as starting points. square root operations can be performed as long as the result is still an integer.
for example, given a = 10, b = 20, the function should return 2. starting with the integer 16, two square root operations can be performed: sqrt(16) = 4 and then sqrt(4) = 2.
given a = 6000 and b = 7000, the function should return 3. starting with integer 6561, three square root operations can be performed: sqrt(6561) = 81, sqrt(81) = 9 and sqrt(9) = 3.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
question
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
You know the right answer?
Write a function solution that, given two integers a and b, returns the maximum number of repeated s...
Questions
question
Mathematics, 03.02.2021 02:20
question
Spanish, 03.02.2021 02:20
question
History, 03.02.2021 02:20
question
Mathematics, 03.02.2021 02:20