OFFSET
1,2
COMMENTS
The sequence is a permutation of the integers > 0.
LINKS
Eric Angelini, A chain reaction producing primes, personal blog of the author, Feb. 2022.
EXAMPLE
1 is expelled from a(1) = 1 and hits the 2 of a(2) = 2, turning this integer into 1, a square number;
2 is expelled from a(2) = 2 and hits the 1 of a(3) = 15, turning this integer into 25, a square number;
1 is expelled from a(3) = 15 and hits the 3 of a(4) = 3, turning this integer into 1, a square number;
3 is expelled from a(4) = 3 and hits the 1 of a(5) = 16, turning this integer into 36, a square number;
1 is expelled from a(5) = 16 and hits the 4 of a(6) = 4, turning this integer into 1, a square number;
4 is expelled from a(6) = 4 and hits the 5 of a(7) = 5, turning this integer into 4, a square number;
5 is expelled from a(7) = 5 and hits the 0 of a(8) = 20, turning this integer into 25, a square number;
0 is expelled from a(8) = 20 and hits a 0 of a(9) = 100, "turning" this integer into 100, a square number;
0 is expelled from a(9) = 100 and hits the rightmost 1 of a(10) = 101, turning this integer into 100, a square number; etc.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Feb 27 2022
STATUS
approved