A104705 First terms in the rearrangements of integer numbers (see comments).
1, 2, 3, 1, 4, 2, 1, 5, 6, 1, 2, 3, 1, 7, 2, 1, 8, 4, 1, 2, 3, 1, 9, 2, 1, 10, 11, 1, 2, 3, 1, 12, 2, 1, 4, 5, 1, 2, 3, 1, 13, 2, 1, 14, 6, 1, 2, 3, 1, 4, 2, 1, 15, 16, 1, 2, 3, 1, 17, 2, 1, 18, 4, 1, 2, 3, 1, 5, 2, 1, 7, 19, 1, 2, 3, 1, 20, 2, 1, 4, 8, 1, 2, 3, 1, 6, 2, 1, 21, 22, 1, 2, 3, 1, 4, 2, 1, 5, 23
Offset: 1
Programs
-
Mathematica
s=Range[100];bb={1};Do[s=Drop[Insert[s, s[[1]], 2+Prime[s[[1]]]], 1];bb=Append[bb, s[[1]]], {i, 100}];bb
Comments