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.

A325597 a(n) is the least number not 2a(m) + a(m-1) for any m < n.

This page as a plain text file.
%I A325597 #8 May 11 2019 02:23:01
%S A325597 1,2,3,4,6,7,9,10,12,13,14,15,17,18,19,21,22,23,24,26,27,28,30,31,32,
%T A325597 33,35,36,37,39,40,42,43,45,46,47,48,50,51,52,54,55,57,58,59,60,62,63,
%U A325597 64,66,67,69,70,72,73,74,75,77,78,79,81,82,84,85,86,87
%N A325597 a(n) is the least number not 2a(m) + a(m-1) for any m < n.
%C A325597 Conjectures: Let d(n) = 3a(n) - 4n; then d(n) is bounded, and d(n) = 0 for infinitely many n.
%H A325597 Clark Kimberling, <a href="/A325597/b325597.txt">Table of n, a(n) for n = 1..10000</a>
%e A325597 Necessarily, a(1) = 1 and a(2) = 2.  Because of these values, 5 is the least number not in the sequence, so that a(3) = 3 and a(4) = 4.  Consequently, 8 and 11 are disallowed, so a(5) = 6 and a(6) = 7.
%t A325597 mex[list_, start_] := (NestWhile[# + 1 &, start, MemberQ[list, #] &]); a = {1}; Do[AppendTo[a, mex[Rest[2 a] + Most[a], Last[a] + 1]], {60}]; a  (* A325597 *)
%t A325597 c = Complement[Range[Last[a]], a]  (* A325598 *)
%t A325597 da = Differences[a] (* A325599 *)
%t A325597 Flatten[Position[da, 1]]  (* A325600 *)
%t A325597 Flatten[Position[da, 2]]  (* A325601 *)
%t A325597 (* _Peter J. C. Moses_, May 07 2019 *)
%Y A325597 Cf. A325598, A325599, A325417.
%K A325597 nonn,easy
%O A325597 1,2
%A A325597 _Clark Kimberling_, May 10 2019