Python

#recursion

def triangular_number(n):
    if n == 1:
        return 1
    return n + triangular_number(n-1)

assert triangular_number(9) == 45