Computation Workshop Solution Checker

Inverse Harmonic Function

The Harmonic Series \(H(n)\) is defined to be the sum of the reciprocals of the first \(n\) positive integers. \( H(n) = 1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \cdots + \frac{1}{n} \). The Inverse Harmonic Function \(I(x)\) is defined to be the smallest positive integer \(n\) such that \(H(n) \geq x\). So for example \(I(2.0) = 4\) because \(H(4) > 2.0\) but \(H(3) < 2.0\).

Part A What is \(I(4)\)?
Part B What is \(I(18)\)?