Answer to Question #290524 in Python for raj

Question #290524

For what value of n would g(375,n) return 4?


def g(m,n):


res = 0


while m >= n:


(res,m) = (res+1,m/n)


return(res)

1
Expert's answer
2022-01-25T07:51:55-0500
def g(m,n):
    res = 0
    while m >= n:
        (res,m) = (res+1,m/n)
    return(res)
g(375,4)
#The value of n at which g(375,n) = 4 is n = 4

4

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS