"""
Extended mathematics
"""

def multiplication_table(number):
    """
    Creates a multiplication table up to the given number
    """

    result = ""
    current = 1

    while current <= number:
        inner = 1

        while inner <= current:
            result += str(current * inner)

            if inner < current:
                result += " "
        
            inner += 1

        current += 1
        result += "\n"
    
    return result
