ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## B.3 Solving Recurrences by Substitution Sometimes a recurrence can be solved using a technique called ***substitution***. You can try this method if you cannot obtain a solution using the methods in the last two sections. The following examples illustrate the substitution method. Example B.21**![Start example](https://box.kancloud.cn/e95df9d604ab2d89febe370ae4d88fb1_1x1.gif)**We solve the recurrence ![](https://box.kancloud.cn/9dd4c1a27f169d9029cde2c931fdb2c7_239x69.jpg) In a sense, substitution is the opposite of induction. That is, we start at *n* and work backward: ![](https://box.kancloud.cn/0fd498de4cd37034ec09d88b3c3f5e8b_160x166.jpg) We then substitute each equality into the previous one, as follows: ![](https://box.kancloud.cn/21d9011216d687d2d7555375457e9a21_291x228.jpg) The last equality is the result in [Example A.1](LiB0095.html#1293) in [Appendix A](LiB0093.html#1281). **![End example](https://box.kancloud.cn/e95df9d604ab2d89febe370ae4d88fb1_1x1.gif)** The recurrence in [Example B.21](LiB0011.html#105) could be solved using the characteristic equation. The recurrence in the following example cannot. Example B.22**![Start example](https://box.kancloud.cn/e95df9d604ab2d89febe370ae4d88fb1_1x1.gif)**We solve the recurrence ![](https://box.kancloud.cn/6347740703ea2c4d4d971bbb579d5f38_224x86.jpg) First, work backward from *n*: ![](https://box.kancloud.cn/4627ca0ea73d09aad53091d90d4c2dfc_163x241.jpg) Then substitute each equation into the previous one: ![](https://box.kancloud.cn/974abf09e7d21d6bd2fa19ee4ec7e9dc_307x318.jpg) for *n* not small. The approximate equality is obtained from [Example A.9](LiB0097.html#1319) in [Appendix A](LiB0093.html#1281). **![End example](https://box.kancloud.cn/e95df9d604ab2d89febe370ae4d88fb1_1x1.gif)**