login
Difference sequence of A325429.
3

%I #7 May 06 2019 21:23:09

%S 1,2,1,3,1,1,1,3,3,1,1,1,2,1,3,3,2,1,3,1,1,1,2,1,3,1,2,2,1,3,3,2,1,3,

%T 1,1,1,3,3,1,2,2,1,3,1,1,1,2,1,3,1,1,1,3,3,1,1,1,2,1,3,2,1,2,1,3,1,1,

%U 1,3,3,1,2,2,1,3,3,2,1,3,1,1,1,3,3,1

%N Difference sequence of A325429.

%C See A325417 for a guide to related sequences. Conjecture: every term is in {1,2,3}.

%H Clark Kimberling, <a href="/A325522/b325522.txt">Table of n, a(n) for n = 1..10000</a>

%t a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1, Apply[Or,

%t Map[MemberQ[a, #] &, Select[Flatten[{#/3,

%t If[Mod[#, 3] == 0, (2 #)/3, 0] + If[Mod[#, 3] == 1, 1/3 (1 + 2 #), 0]}],

%t IntegerQ || # == 0]]] &]], {20000}]; a ; (* A325429 *)

%t c = Complement[Range[Last[a]], a] ; (* A325430 *)

%t Differences[a] (* A325522 *)

%t Differences[c] (* A325523 *)

%t (* _Peter J. C. Moses_, Apr 23 2019 *)

%Y Cf. A325417, A325429, A325523.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 06 2019