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 A251557 #17 Aug 02 2018 11:54:57 %S A251557 2,4,4,6,6,10,10,16,16,16,16,16,16,18,18,18,18,22,22,24,24,24,24,24, %T A251557 28,28,30,30,34,34,34,34,34,34,36,36,38,38,38,38,40,40,40,44,44,46,46, %U A251557 46,46,52,52,52,52,54,54,54,54,58,58,64,64,64,64,64,66,66,70,70,70,70,70,70,70 %N A251557 a(n) = 2 more than the largest even number among {A098550(1), A098550(2), ..., A098550(n)}. %H A251557 Reinhard Zumkeller, <a href="/A251557/b251557.txt">Table of n, a(n) for n = 1..10000</a> %H A251557 David L. Applegate, Hans Havermann, Bob Selcoe, Vladimir Shevelev, N. J. A. Sloane, and Reinhard Zumkeller, <a href="http://arxiv.org/abs/1501.01669">The Yellowstone Permutation</a>, arXiv preprint arXiv:1501.01669 [math.NT], 2015 and <a href="https://cs.uwaterloo.ca/journals/JIS/VOL18/Sloane/sloane9.html">J. Int. Seq. 18 (2015) 15.6.7</a>. %t A251557 terms = 100; %t A251557 f[lst_] := Block[{k = 4}, While[GCD[lst[[-2]], k] == 1 || GCD[lst[[-1]], k] > 1 || MemberQ[lst, k], k++]; Append[lst, k]]; %t A251557 A098550 = Nest[f, {1, 2, 3}, terms - 3]; %t A251557 a[1] = 2; a[n_] := Max[Select[A098550[[1 ;; n]], EvenQ]] + 2; %t A251557 Array[a, terms] (* _Jean-François Alcover_, Aug 02 2018, after _Robert G. Wilson v_ *) %o A251557 (Haskell) %o A251557 a251557 n = a251557_list !! (n-1) %o A251557 a251557_list = map (+ 2) $ tail $ scanl maxEven 0 a098550_list %o A251557 where maxEven u v = if even v then max u v else u %o A251557 -- _Reinhard Zumkeller_, Mar 10 2015 %Y A251557 Cf. A098550, A251546, A251558, A251559. %K A251557 nonn %O A251557 1,1 %A A251557 _N. J. A. Sloane_, Dec 23 2014