
    Given a student's personalized learning path with n milestones, calculate the cumulative learning impact score by summing the weighted contributions of each milestone, where the weight of the kth milestone is 1/k. This adaptive scoring system emphasizes earlier foundational concepts while still accounting for later achievements in the learning sequence.
    

    
def harmonic_sum(n):
    """
    Given a student's personalized learning path with n milestones, calculate the cumulative learning impact score by summing the weighted contributions of each milestone, where the weight of the kth milestone is 1/k. This adaptive scoring system emphasizes earlier foundational concepts while still accounting for later achievements in the learning sequence.
    

    """
def harmonic_sum(n):
    """
    Given a student's personalized learning path with n milestones, calculate the cumulative learning impact score by summing the weighted contributions of each milestone, where the weight of the kth milestone is 1/k. This adaptive scoring system emphasizes earlier foundational concepts while still accounting for later achievements in the learning sequence.
    

    """
    if n < 2:
        return 1
    else:
        return 1 / n + harmonic_sum(n - 1)