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 A355569 #14 Oct 14 2022 08:54:53 %S A355569 5,8,10,13,16,17,38,40,46,53,56,58,61,70,80,88,106,107,160,251,283, %T A355569 377,638,650,958,976,1367,1438,1822,2158,2429,2734,3238,4102,4616, %U A355569 4858,6154,7288,9232 %N A355569 Numbers k > 4 in a Collatz trajectory reaching k after starting at k+1. %H A355569 <a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a> %F A355569 a(n) = A070991(n+2) - 1. %e A355569 a(1) = 5 because the orbit started at 6 = a(1) + 1 reaches 5: %e A355569 6 -> 3 -> 10 -> 5; %e A355569 a(2) = 8 because the orbit started at 9 = a(2) + 1 reaches 8: %e A355569 9 -> 28 -> 14 -> 7 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8; %e A355569 a(3) = 10 because the orbit started at 11 = a(3) + 1 reaches 10: %e A355569 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10. %o A355569 (PARI) collatz(start, target) = {my(old=start, new=0); while (new!=target && new!=1, if(old%2==0, new=old/2, new=3*old+1); old=new); new>1}; %o A355569 for (k=5, 10000, if(collatz(k+1, k), print1(k, ", "))) %Y A355569 Cf. A006370, A006577, A070991, A070993, A355239, A355240, A355568. %K A355569 nonn,more %O A355569 1,1 %A A355569 _Hugo Pfoertner_, Jul 10 2022