Skip to main content
3 of 3
Commonmark migration

JavaScript, 30 bytes

A recursive function so it'll crap out pretty early.

f=(n,x=0)=>n>0?f(n-.5/++x,x):x

Try it online

Shaggy
  • 43.5k
  • 4
  • 36
  • 94