Post History
JavaScript, 29 bytes f=(n,x=0)=>n>0?f(n-1/++x,x):x Try it online!
Answer
#2: Post edited
# JavaScript, 30 bytes- <!-- language-all: lang-javascript -->
f=(n,x=0)=>n>0&&-~f(n-1/++x,x)[Try it online!](https://nodejs.org[TIO-kqchfily]: https://tio.run/##y0osSyxOLsosKNHNy09J/f8/zVYjT6fC1kDT1i7PzkBNTbcuTSNP11BfW7tCp0Lzf3J@XnF@TqpeTn66RpqGiabmfwA)
- # JavaScript, 29 bytes
- <!-- language-all: lang-javascript -->
- f=(n,x=0)=>n>0?f(n-1/++x,x):x
- [Try it online!](https://tio.run/##y0osSyxOLsosKNHNy09J/f8/zVYjT6fC1kDT1i7PzsA@TSNP11BfW7tCp0LTquJ/cn5ecX5Oql5OfrpGmoaJpuZ/AA)