A325444 Difference sequence of A325417.
2, 2, 2, 1, 1, 2, 1, 1, 2, 2, 2, 1, 1, 2, 4, 2, 2, 1, 1, 2, 1, 3, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 3, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 2, 1, 1, 2, 4, 2, 2, 1, 1, 2, 1, 3, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 1, 3, 2, 2, 1
Offset: 1
Examples
A325417 is given by A(n) = least number not 2*A(m) or 3*A(m)+1 for any m < n, so that A = (1,3,5,7,8,9,11, ...), with differences (2,2,2,1,1,2,...).
Links
- Clark Kimberling, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
a = {1}; Do[AppendTo[a, NestWhile[# + 1 &, Last[a] + 1, Apply[Or, Map[MemberQ[a, #] &, Select[Flatten[{#/2, (# - 1)/3}], IntegerQ]]] &]], {2000}]; a ; (* A325417 *) c = Complement[Range[Last[a]], a] ; (* A325418 *) Differences[a] (* A325444 *) Differences[c] (* A325445 *) (* Peter J. C. Moses, Apr 23 2019 *)
Comments