harmonic_series
Computes the partial sum of the harmonic series H(n) = 1 + 1/2 + ... + 1/n for a specified number of terms up to 100,000.
Instructions
Calculate partial sum of the harmonic series H(n) = 1 + 1/2 + 1/3 + ... + 1/n.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Number of terms (1-100000). |