Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[QUIZ] Happy Numbers (#93)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jacob Fugal, post: 4525304"] And here's the "below" referred to (I forgot it earlier). :) Remember that i >= 4. Let's take i = 4 as a basis case. 81 * 4 = 324 < 1000 = 10^(4-1) Now, assume the hypothesis for some i >= 4. We will prove the hypothesis continues to hold for j = i + 1. Since 1/9 < i; 81 < 9 * 81 * i. Adding 81 * i to both sides of that inequality we get: 81 * j < 10 * 81 * i From the other side, we can start with the inequality for i (81 * i < 10^(i-1)) and multiply both sides by 10 to get: 10 * 81 * i < 10^(j-1) Combining those two inequalities, we have: 81 * j < 10^(j-1). Isn't induction great? :) Jacob Fugal [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[QUIZ] Happy Numbers (#93)
Top