def numbers_by_recursion(n):
    """
    Print numbers from 1 to the largest number with N digits by recursion.

    :param n: given number
    :type n: int
    :return: numbers from 1 to the largest number with N digits
    :rtype: list[int]
    """
    result = []
    if n > 0:
        result = numbers_by_recursion(n - 1)
        for i in range(10 ** (n - 1) , 10 ** n):
            result.append(i)
    return result