cp's OEIS Frontend

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.

A003664 a(n) is smallest number larger than a(n-1) and not = a(j) + a(k), j < k.

This page as a plain text file.
%I A003664 M1320 #45 Jul 16 2025 13:36:50
%S A003664 2,5,6,9,10,13,17,20,21,24,28,32,35,36,39,43,47,50,51,54,58,62,65,66,
%T A003664 69,73,77,80,81,84,88,92,95,96,99,103,107,110,111,114,118,122,125,126,
%U A003664 129,133,137,140,141,144,148,152,155,156,159,163,167,170,171,174,178,182
%N A003664 a(n) is smallest number larger than a(n-1) and not = a(j) + a(k), j < k.
%D A003664 R. K. Guy, "s-Additive sequences", preprint, 1994.
%D A003664 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%D A003664 James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 117.
%H A003664 Vincenzo Librandi, <a href="/A003664/b003664.txt">Table of n, a(n) for n = 1..1000</a>
%H A003664 Steven R. Finch, <a href="http://dx.doi.org/10.2307/2325001">Are 0-Additive Sequences Always Regular?</a>, Am. Math. Monthly 99 (7) (1992) 671-673.
%H A003664 R. K. Guy, <a href="/A007300/a007300.pdf">s-Additive sequences</a>, Preprint, 1994. (Annotated scanned copy)
%H A003664 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,0,1,-1).
%F A003664 The numbers 2, 5, 6, 9, 13 mod 15, plus the number 10. - _Ralf Stephan_, Mar 28 2004
%F A003664 G.f.: x*(x^10 +2*x^9 -2*x^8 +2*x^7 +x^6 +x^5 +x^4 +3*x^3 +x^2 +3*x +2) / ((x -1)^2*(x^4 +x^3 +x^2 +x +1)). - _Colin Barker_, Jul 09 2014
%t A003664 Sort[Join[{10},Flatten[Table[15*n+{2,5,6,9,13},{n,0,12}]]]] (* _Harvey P. Dale_, Jul 12 2012 *)
%t A003664 CoefficientList[Series[x(x^10 + 2*x^9 - 2 x^8 + 2 x^7 + x^6 + x^5 + x^4 + 3 x^3 + x^2 + 3 x + 2)/((x - 1)^2 (x^4 + x^3 + x^2 + x + 1)), {x, 0, 50}], x] (* _Vincenzo Librandi_, Jul 10 2014 *)
%o A003664 (PARI) Vec(x*(x^10+2*x^9-2*x^8+2*x^7+x^6+x^5+x^4+3*x^3+x^2+3*x+2)/((x-1)^2*(x^4+x^3+x^2+x+1)) + O(x^100)) \\ _Colin Barker_, Jul 09 2014
%o A003664 (Magma) I:=[2, 5, 6, 9, 10, 13, 17, 20, 21, 24, 28]; [n le 11 select I[n] else Self(n-1)+Self(n-5)-Self(n-6): n in [1..60]]; // _Vincenzo Librandi_, Jul 10 2014
%Y A003664 Cf. A007300.
%K A003664 nonn,easy
%O A003664 1,1
%A A003664 _N. J. A. Sloane_, _Mira Bernstein_