立方根定义、正负性规律

📘 实数·
⭐⭐

讲解生成中,敬请期待...

💡 例题

1

定义一个函数h(x),h(x),,其中x,x,为正整数,规则如下:

h(x)={log2x if log2x is an integer1+h(x+1) otherwise.h(x) = \left\{\begin{aligned} \log_2 x & \quad \text{ if } \log_2 x \text{ is an integer} \\ 1 + h(x + 1) & \quad \text{ otherwise}. \end{aligned} \right.

h(100).h(100).的值。

  1. 先用定义的第二部分计算:
h(100)=1+h(101)=2+h(102)=3+h(103)==28+h(128).h(100) = 1 + h(101) = 2 + h(102) = 3 + h(103) = \dots = 28 + h(128).
  1. 因为128=27,128 = 2^7,,所以再用定义的第一部分:
h(100)=28+7=35.h(100) = 28 + 7 = \boxed{35}.