The nondecreasing sequence of positive integers beginning with in which the integer occurs exactly times. Its first terms are . The prefix sum gives the last position occupied by .
The Golomb sequence is a non-decreasing integer sequence where each positive integer \( n \) appears exactly \( G(n) \) times in the sequence.
New to topics? Read the docs here!