This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A304232 #10 Jun 03 2018 16:48:05 %S A304232 1,2,3,4,5,6,7,8,9,10,11,12,11,21,13,12,11,21,22,20,13,12,11,21,22,14, %T A304232 40,20,13,12,11,21,22,14,15,50,40,20,13,12,11,21,22,14,15,16,60,50,40, %U A304232 20,13,12,11,21,22,14,15,16,17,70,60,50,40,20,13,12,11,21,22,14,15,16,17,18,80 %N A304232 A fractal-like sequence: erasing all pairs of consecutive terms a(n) and a(n+1) having the property that the last digit of a(n) is the same as the first digit of a(n+1) leaves the sequence unchanged. %C A304232 The sequence is fractal-like as it contains an infinite number of copies of itself. %C A304232 The sequence was built according to these rules (see, in the Example section, the parenthesization technique): %C A304232 1) no overlapping pairs of parentheses; %C A304232 2) always start the content inside a pair of parentheses with the smallest integer S > 10 not yet present inside another pair of parentheses; %C A304232 3) always end the content inside a pair of parentheses with the smallest integer T > 10 not yet present inside another pair of parentheses such that the integer S ends with a digit d and the integer T starts with the same digit d; %C A304232 4) after a(1) = 1, a(2) = 2, a(3) = 3, a(4) = 4, a(5) = 5, a(6) = 6, a(7) = 7, a(8) = 8, a(9) = 9, a(10) = 10, always try to extend the sequence with a duplicate > 10 of the oldest term of the sequence not yet duplicated; if this leads to a contradiction, open a new pair of parentheses. %H A304232 Eric Angelini, <a href="/A304232/b304232.txt">Table of n, a(n) for n = 1..585</a> %e A304232 Parentheses are added around each pair of terms such that the last digit of a(n) is the same as the first digit of a(n+1): %e A304232 1,2,3,4,5,6,7,8,9,10,(11,12),11,(21,13),12,11,21,(22,20),13,12,11,21,22,(14,40),20,13,12,11,21,22,14,(15,50),40,20, %e A304232 Erasing all the parenthesized contents yields %e A304232 1,2,3,4,5,6,7,8,9,10,(.....),11,(.....),12,11,21,(.....),13,12,11,21,22,(.....),20,13,12,11,21,22,14,(.....),40,20, %e A304232 We see that the remaining terms slowly rebuild the starting sequence. %Y A304232 Cf. A303845 or A303948 (where the erasure techniques are different). %K A304232 nonn,base %O A304232 1,2 %A A304232 _Eric Angelini_, May 08 2018