OFFSET
1,1
COMMENTS
Get Pi's decimal expansion: 3,1,4,1,5,9,2,6,5,3,5,8,9,7,9,3,2,3,8,4,6,2,6,4,3,3,8,3,... ...
10 For a=1 to infinity ...
20 Let b = the a-th non-erased digit ...
30 Jump b digit(s) and erase the digit on which you land ...
40 Next a
Erased digits are between brackets: 3,1,4,(1),(5),9,2,6,5,(3),(5),8,9,7,9,3,(2),(3),(8),4,6,2,(6),(4),3,(3),(8),3,...
Remaining digits build the sequence.
[Jumping 0 digit means "erase the closest non-erased digit on your right"]
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini and Alexandre Wajnberg, Jul 06 2005
STATUS
approved