Create a Python function to generate the first 'n' numbers in the Tribonacci sequence, where each number is the sum of the preceding three.
Write a function, `generate_tribonacci(n)`, to generate the first `n` numbers of the Tribonacci sequence, which begins with three 1's and each subsequent number is the sum of the previous three. The sequence starts as follows: `1, 1, 1, 3, 5, 9, 17, 31, 57, 105, ...`. ### Parameters - `n` (int): An integer indicating the number of Tribonacci numbers to generate. ### Return Value - Return a list of integers (`list[int]`) containing the first `n` numbers of the Tribonacci sequence. ### Example ```python # Since the first item of the Tribonacci sequence is always 1 generate_tribonacci(1) # Returns [1] # When requesting the first 5 items of the Tribonacci sequence generate_tribonacci(5) # Returns [1, 1, 1, 3, 5] # The first 10 items of the Tribonacci sequence generate_tribonacci(10) # Returns [1, 1, 1, 3, 5, 9, 17, 31, 57, 105] ```