# -*- coding: utf-8 -*-
# @Author: Admin
# @Date:   2020-01-10 01:32:22
# @Last Modified by:   Admin
# @Last Modified time: 2020-01-10 01:33:59
def harmonic(n=0):
    total = 0
    for x in range(1,n):
        total=total+1/i
    return total