OFFSET
1,2
COMMENTS
For the terms studied, the primes appear in their natural order, and except for a(8) = 3, all other prime terms p are preceded by 3*p and followed by 4*p. The primes p and the terms 4*p form the lower and upper lines of the graph.
In the first 100000 terms the only fixed points are 1, 2, 9; it is likely no more exist. The sequence is conjectured to be a permutation of the positive integers.
An alternate definition of this sequence is 'a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest unused positive number that shares a factor with a(n-1) while a(n) does not equal a(n-1)/2'. Surprisingly this definition appears to lead to exactly the same sequence. Scott R. Shannon, Mar 01 2026
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
EXAMPLE
a(8) = 3 as a(7) = 12 and a(4) = 6, and 3 shares a factor with 12, the previous term, and also with 6.
MATHEMATICA
nn = 1000; c[_] := False; q = 2; j = 2; c[1] = c[2] = True; u = 3;
rad[x_] := Times @@ FactorInteger[x][[;; , 1]];
{1, 2}~Join~Reap[Do[k = u;
While[Or[c[k], CoprimeQ[j, k], CoprimeQ[k, q]], k++];
Sow[k]; Set[{c[k], q, j}, {True, rad[q*j], k}];
If[k == u, While[c[u], u++]], nn - 2] ][[-1, 1]] (* Michael De Vlieger, May 24 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, May 24 2025
STATUS
approved
