If a sequence is generated like so:
- start with the odd numbers
$1,3,5,7,...$ - start at $n=1$
- take the next number $n$ from the sequence. So at the start of the first pass:
sequence is $1,3,5,7,...$ and $n = 3$ - remove every $n\mathrm{th}$ number from the list.
- repeat from 3.
so the sequence would look like this after each of the first few passes:
$1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, ...$
$1, 3, 7, 9, 13, 15, 19, 21, 25, 27, 31, ...$
$1, 3, 7, 9, 13, 15, 21, 25, 27, 31, ...$
$1, 3, 7, 9, 13, 15, 21, 25, 31, ...$
The final sequence would be the sequence created after this process is gone through infinitely many times.
How could I define a relationship to get the $n\mathrm{th}$ term of the sequence, e.g.
$u_n =\ ...$