A325497 Difference sequence of A325422.
1, 1, 2, 6, 4, 2, 2, 2, 2, 3, 1, 2, 2, 1, 3, 4, 2, 2, 1, 3, 4, 2, 6, 4, 2, 4, 2, 4, 2, 2, 1, 3, 4, 2, 4, 2, 4, 2, 2, 1, 3, 4, 2, 2, 1, 1, 2, 4, 2, 2, 4, 4, 2, 2, 1, 3, 4, 2, 2, 1, 3, 4, 2, 4, 2, 3, 1, 2, 2, 1, 3, 4, 2, 2, 1, 3, 4, 2, 2, 4, 3, 1, 2, 4, 2, 4
Offset: 1
Examples
A325422 is given by A(n) = least number not 2*A(m)+1 or 3*A(m)+1 for any m < n, so that A = (3,4,5,7,13,17,19,...), with differences (1,1,2,6,4,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[{(#-1)/3, (# - 1)/2}], IntegerQ]]] &]], {2000}]; a ; (* A077477 *) c = Complement[Range[Last[a]], a] ; (* A325422 *) Differences[a] (* A325496 *) Differences[c] (* A325497 *) (* Peter J. C. Moses, Apr 23 2019 *)
Comments