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.

A325496 Difference sequence of A077477.

This page as a plain text file.
%I A325496 #6 May 06 2019 08:48:14
%S A325496 1,4,2,1,1,1,1,2,1,1,2,2,2,2,2,1,3,2,3,1,2,1,1,2,2,3,1,2,1,1,2,2,1,1,
%T A325496 1,1,2,1,1,2,2,1,1,2,2,1,1,2,2,3,1,2,1,1,2,2,1,1,2,2,1,1,2,2,3,1,2,1,
%U A325496 1,2,2,4,2,1,1,2,2,2,1,1,2,1,1,2,2,3
%N A325496 Difference sequence of A077477.
%C A325496 See A325417 for a guide to related sequences. Conjecture: every term is in {1,2,3,4}.
%H A325496 Clark Kimberling, <a href="/A325496/b325496.txt">Table of n, a(n) for n = 1..10000</a>
%e A325496 A077477 is given by A(n) = least number not 2*A(m)+1 or 3*A(m)+1 for any m < n, so that A = (1,2,6,8,9,10,11,12,14,...), with differences (1,4,2,1,1,1,1,2,...).
%t A325496 a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1,
%t A325496 Apply[Or, Map[MemberQ[a, #] &, Select[Flatten[{(#-1)/3, (# - 1)/2}],
%t A325496 IntegerQ]]] &]], {2000}]; a ;       (* A077477 *)
%t A325496 c = Complement[Range[Last[a]], a] ; (* A325422 *)
%t A325496 Differences[a]  (* A325496 *)
%t A325496 Differences[c]  (* A325497 *)
%t A325496 (* _Peter J. C. Moses_, Apr 23 2019 *)
%Y A325496 Cf. A325417, A077477.
%K A325496 nonn,easy
%O A325496 1,2
%A A325496 _Clark Kimberling_, May 05 2019