OFFSET
1,1
COMMENTS
n-th term of limit-sequence is determined at the n-th iteration.
It is interesting to notice that 5 is moved from the fifth position to the 400th position and that the only triple is 2,3,4.
EXAMPLE
{2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}->
{2,3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}->
{2,3,4,5,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}->
{2,3,4,1,6,7,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}->
{2,3,4,1,7,5,8,9,10,11,6,12,13,14,15,16,17,18,19,20,21,22,23,24,25}->
{2,3,4,1,7,8,9,10,11,6,12,13,5,14,15,16,17,18,19,20,21,22,23,24,25}->
{2,3,4,1,7,8,10,11,6,12,13,5,14,15,16,17,9,18,19,20,21,22,23,24,25}->
{2,3,4,1,7,8,10,6,12,13,5,14,15,16,17,9,18,19,11,20,21,22,23,24,25}->...
MATHEMATICA
lst = Table[n, {n, 100}]; f[m_] := (lst = Drop[ Insert[ lst, lst[[m]], Prime[m] + 1], {m, m}]); Do[ f[n], {n, 25}]; Take[lst, 70] (* Robert G. Wilson v, Nov 18 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Oct 24 2004
EXTENSIONS
Edited by Robert G. Wilson v, Nov 19 2004
STATUS
approved