#K33107. Taco Series Generator
Taco Series Generator
Taco Series Generator
Given an integer N, generate a series of the first N terms where the first term is 1, and each subsequent term is the sum of all the previous terms plus 1. Formally, let the sequence be \(a_1, a_2, \dots, a_N\) with:
\(a_1 = 1\)
\(a_k = \left( \sum_{i=1}^{k-1} a_i \right) + 1\) for \(k > 1\).
Your task is to compute and output the series, printing the numbers separated by spaces on a single line.
inputFormat
The input consists of a single integer \(N\) (\(N \ge 1\)), which represents the number of terms to generate in the series.
outputFormat
Output the generated series as \(N\) space-separated integers on one line.
## sample1
1