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 A005242 M0971 #28 Feb 16 2025 08:32:28 %S A005242 1,2,4,5,8,10,12,14,15,16,19,20,21,24,25,27,28,32,33,34,37,38,40,42, %T A005242 43,44,46,47,48,51,53,54,56,57,58,59,61,62,63,64,66,68,69,72,73,74,77, %U A005242 79,81,83,84,86,88,89,91,92,94,96,97,98,100 %N A005242 A self-generating sequence. %C A005242 Presumably this is the lexicographically earliest sequence of distinct positive numbers with the property that sums of two or three consecutive earlier terms are excluded. - _N. J. A. Sloane_, Jan 07 2021 %D A005242 R. K. Guy, Unsolved Problems in Number Theory, E30. %D A005242 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %H A005242 Reinhard Zumkeller, <a href="/A005242/b005242.txt">Table of n, a(n) for n = 1..10000</a> %H A005242 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PrimeNumberofMeasurement.html">Prime Number of Measurement.</a> %o A005242 (Haskell) %o A005242 import Data.List ((\\)) %o A005242 a005242 n = a005242_list !! (n-1) %o A005242 a005242_list = f [1..] 0 0 where %o A005242 f (x:xs) y z = x : f (xs \\ [x + y, x + y + z]) x y %o A005242 -- _Reinhard Zumkeller_, May 23 2013 %Y A005242 Cf. A002048, A033627. %K A005242 nonn %O A005242 1,2 %A A005242 _N. J. A. Sloane_ %E A005242 More terms from _Jud McCranie_, Feb 15 1997