login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A351625 a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest positive number that has not appeared that shares a factor with the largest previous term. 5
1, 2, 4, 6, 3, 8, 10, 5, 12, 9, 14, 7, 16, 18, 15, 20, 22, 11, 24, 21, 26, 13, 28, 30, 25, 27, 32, 34, 17, 36, 33, 38, 19, 40, 35, 42, 39, 44, 46, 23, 48, 45, 50, 52, 54, 51, 56, 49, 58, 29, 60, 55, 57, 62, 31, 64, 66, 63, 68, 70, 65, 72, 69, 74, 37, 76, 78, 75, 80, 82, 41, 84, 77, 81, 86, 43, 88 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The sequence differs from A352976 after twenty-six terms. See the examples below.
In the first 100000 terms the maximum run of even and odd terms is three and five respectively; it is unknown if these runs have a maximum number of terms or are unbounded. The fixed points beyond 2 are 15, 25, 35, and it is likely no more exist. The primes appear in their natural order, and it is conjectured that this is a permutation of the positive integers.
From Michael De Vlieger, May 08 2022: (Start)
Let u be the smallest missing number in a(1..n-1) and let record r = max(a(1..n-1)).
Theorem: For odd prime q, r = mq -> q. Proof: generally, q may either divide or be coprime to r, but since equality and coprimality are prohibited by definition, primes may only divide records. This implies q serves as local minima, hence u > 2 is always an odd prime and r > 1 is always even.
Since r is always even, r is nondecreasing and even numbers appear in natural order. Also, r = 2q -> q, similar to the Lagarias-Rains-Sloane chain in the EKG sequence but without the successor 3q.
Theorem: a(n) = k such that k is odd iff least prime factor q | k and q | r. Proof: sequence definition demands smallest missing number such that (r,k) > 1. Otherwise, a(n) = a(n-1) + 2, since (a(n-1), a(n-1) + 2) > 1, and all smaller even numbers have already appeared.
All even numbers and primes appear, and every odd composite k has a least prime factor that admits k into the sequence on the occasion of (r,k) > 1.
There are 3 trajectories in scatterplot for a(n) > 1. The trajectory with lowest apparent slope is that of the primes, i.e., local minima. The trajectory with highest slope is that of records, i.e., even numbers, and the remaining numbers are odd composites. (End)
LINKS
Michael De Vlieger, Annotated log-log scatterplot of a(n), n = 1..2^14, showing records (even numbers) in red, primes in green, and fixed points in gold.
Scott R. Shannon, Image of the first 100000 terms. The green line is y = n.
EXAMPLE
a(6) = 8 as the largest value of all previous terms is a(4) = 6, and 8 is the smallest unused number that shares a factor with 6.
a(27) = 32 as the largest value of all previous terms is a(24) = 30, and 32 is the smallest unused number that shares a factor with 30. Note that A352976(27) = 33 as it must share a factor with max(25,27) = 27.
MATHEMATICA
nn = 120; c[_] = 0; Array[Set[{a[#], c[#]}, {2^(# - 1), #}] &, 3]; u = 3; Do[k = u; While[Nand[c[k] == 0, ! CoprimeQ[k, r]], k++]; Set[{a[i], c[k]}, {k, i}]; If[k > r, r = k]; If[k == u, While[c[u] > 0, u++]], {i, L + 1, nn}]; Array[a, nn] (* Michael De Vlieger, May 08 2022 *)
CROSSREFS
Sequence in context: A073900 A361629 A350033 * A352976 A363956 A026200
KEYWORD
nonn
AUTHOR
Scott R. Shannon, May 04 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 28 03:36 EDT 2024. Contains 375477 sequences. (Running on oeis4.)