Generate the first n terms of a periodic sequence defined as

f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6, 7, 8, ...

Solution Stats

162 Solutions

81 Solvers

Last Solution submitted on Feb 26, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...