
    Design a function for a content moderation system that calculates the weighted importance score for a multi-stage review pipeline with n stages, where each subsequent stage's weight is the reciprocal of its position in the pipeline (1/1 for first stage, 1/2 for second stage, etc.), and returns the sum of weights for n-1 stages. The resulting score helps determine how review effort should be distributed across different moderation stages, from initial text analysis through final human verification.
    

    
def harmonic_sum(n):
    """
    Design a function for a content moderation system that calculates the weighted importance score for a multi-stage review pipeline with n stages, where each subsequent stage's weight is the reciprocal of its position in the pipeline (1/1 for first stage, 1/2 for second stage, etc.), and returns the sum of weights for n-1 stages. The resulting score helps determine how review effort should be distributed across different moderation stages, from initial text analysis through final human verification.
    

    """
def harmonic_sum(n):
    """
    Design a function for a content moderation system that calculates the weighted importance score for a multi-stage review pipeline with n stages, where each subsequent stage's weight is the reciprocal of its position in the pipeline (1/1 for first stage, 1/2 for second stage, etc.), and returns the sum of weights for n-1 stages. The resulting score helps determine how review effort should be distributed across different moderation stages, from initial text analysis through final human verification.
    

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