#C13855. Evol Sequence Generator
Evol Sequence Generator
Evol Sequence Generator
Given a starting integer and a positive integer length, generate a sequence where each term is obtained from the previous term using the rule: \(a_{n+1} = 4a_n - 3\). The sequence starts with the given integer, and each subsequent element is computed accordingly.
For example, if the starting number is 2 and the length is 3, the sequence is: 2, 5, 17.
inputFormat
The input is provided via standard input (stdin) as two space-separated integers: the starting integer and the length of the sequence.
outputFormat
Output the generated sequence on a single line. The numbers should be separated by a single space and printed to standard output (stdout).
## sample1 5
1 1 1 1 1