Problem 3
Let be a sequence with all its terms positive integers. The -th positive integer which doesn't belong to the sequence is . Find .
Step 2 of 5: Derive the counting recursion
In plain words
One known value supplies two new entries by counting the terms and gaps below it.
Detailed analysis
Let . The -th missing integer is , so among the integers through there are missing integers and sequence terms. Hence , giving . Therefore the -th missing integer is , so the next integer belongs to the sequence and equals .