There is no formula for the exact sum of the first n terms of this particular series (called a harmonic series). Your best bet is to write a simple program to sum the terms and to terminate after reaching the required sum. The output would be how many terms were summed.