|
EXAMPLE
|
Start with
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,...
Remove all square-th elements, 1,4,9,16,... to get
2,3,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22,23,...
Return 2 is the first element in the sequence and remove it
3,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22,23,...
Remove the 1,4,9,16th,... elements
5,6,8,10,11,12,14,15,17,18,19,20,22,23,...
Return 5 as the next element in the sequence and remove it
6,8,10,11,12,14,15,17,18,19,20,22,23,...
Remove the 1,4,9,16th,... elements
8,10,12,14,15,17,19,20,22,23,...
Return 8 as the next element in the sequence and remove it
10,12,14,15,17,19,20,22,23,...
Remove the 1,4,9,16th,... elements
12,14,15,19,20,22,23,...
|