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.

A325498 Difference sequence of A036668.

This page as a plain text file.
%I A325498 #11 Nov 26 2020 03:18:00
%S A325498 3,1,1,1,2,2,2,3,1,2,1,3,1,1,3,1,1,1,4,1,1,4,1,1,1,1,2,2,3,1,1,1,4,2,
%T A325498 2,1,1,1,1,1,3,2,3,1,1,1,1,1,2,2,4,2,1,3,1,1,2,1,1,1,1,4,2,3,1,1,1,1,
%U A325498 1,2,1,1,3,1,2,4,2,4,1,1,1,3,1,1,3,1
%N A325498 Difference sequence of A036668.
%C A325498 See A325417 for a guide to related sequences.
%C A325498 Conjecture: every term is in {1,2,3,4}.
%H A325498 Clark Kimberling, <a href="/A325498/b325498.txt">Table of n, a(n) for n = 1..10000</a>
%F A325498 Asymptotic mean: lim_{n->oo} (1/n) * Sum_{k=1..n} a(k) = 12/7. - _Amiram Eldar_, Nov 26 2020
%e A325498 A036668 is given by A(n) = least number not 2*A(m) or 3*A(m) for any m < n, so that A = (1,4,5,6,7,9,11,...), with differences (3,1,1,1,2,2,...).
%t A325498 a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1,
%t A325498 Apply[Or, Map[MemberQ[a, #] &, Select[Flatten[{#/3, #/2}],
%t A325498 IntegerQ]]] &]], {2000}]; a ;       (* A036668 *)
%t A325498 c = Complement[Range[Last[a]], a] ; (* A325424 *)
%t A325498 Differences[a]  (* A325498 *)
%t A325498 Differences[c]  (* A325499 *)
%t A325498 (* _Peter J. C. Moses_, Apr 23 2019 *)
%Y A325498 Cf. A325417, A036668, A325499.
%K A325498 nonn,easy
%O A325498 1,1
%A A325498 _Clark Kimberling_, May 05 2019