Periodicity means an entire output pattern returns after a fixed input shift. We’ll read the values in input order, compare matching blocks, and test whether the same shift preserves every displayed value. Then we’ll rule out shorter positive shifts, because a few repeated entries alone do not establish the least period.
Inside Gozunta
Turn the preview into practice.
More than a preview
Gozunta lets you study this problem—and more than 10,000 others.
Create targeted learning sessions, use hints, check your answer, read the walkthrough, watch the video, print the work, and track your progress.