As we have learned in various math courses, the n:th harmonic number
def kempner(n): As we have learned in various math courses, the n:th harmonic number is equal to the sum of the reciprocals of the first n integers, that is, Hn = 1/1 + 1/2 + 1/3 + … + 1/n. As n approaches infinity, so does the harmonic number Hn, although quite slowly, but with all kinds of useful properties. A whimsical variation known […]