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!)
A351497 Lexicographically earliest infinite sequence of distinct positive numbers such that, for n>2, a(n) has a common factor with the second largest previous term but not with the largest previous term. 2
1, 2, 3, 4, 9, 8, 10, 21, 5, 16, 20, 22, 7, 15, 27, 11, 14, 26, 13, 28, 33, 32, 34, 39, 17, 38, 19, 40, 51, 25, 35, 44, 46, 23, 50, 52, 45, 57, 56, 49, 58, 63, 29, 62, 31, 64, 69, 68, 70, 81, 55, 65, 74, 37, 76, 80, 82, 75, 87, 41, 86, 43, 88, 93, 77, 92, 94, 99, 47, 98, 91, 100, 111, 85, 95, 104 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Similar to the Yellowstone permutation A098550 the next term can be chosen just by satisfying the conditions of sharing a factor with the second largest previous term and not with the largest previous term. When such a term is smaller than the second largest previous term then it can take any value not previously seen as it will not influence subsequent terms in the sequence. This means such terms can be prime or prime powers. If instead the term is larger than the second largest previous term then, as a result of the required factor sharing conditions, it will always have prime factors not in common with the current largest term. This means a following term can always be found and no other conditions on the prime factors of the term are required. This is in contrast to A351496 where additional restriction on the prime factors of the next term need to be enforced to ensure the sequence is infinite.
The primes occur in their natural order, and in general are not divisors of the previous or following term. The sequence is conjectured to be a permutation of the positive integers although it takes many terms for some values to appear, e.g., a(176478) = 42. In the first 200000 terms the fixed points beyond 4 are 7968 and 18552, although it is possible more exist.
LINKS
Scott R. Shannon, Image of the first 50000 terms. The green line is y = n.
Scott R. Shannon, Image of the first 200000 terms. The green line is y = n. The large drop in value occurs at a(176478) = 42.
EXAMPLE
a(6) = 8 as the largest and second largest previous terms are a(5) = 9 and a(4) = 4 respectively, and 8 is the smallest unused number that shares a factor with 4 and not with 9.
a(9) = 5 as the largest and second largest previous terms are a(8) = 21 and a(7) = 10 respectively, and 5 is the smallest unused number that shares a factor with 10 and not with 21.
CROSSREFS
Sequence in context: A115305 A210747 A353239 * A329425 A247942 A098550
KEYWORD
nonn,look
AUTHOR
Scott R. Shannon, May 03 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 April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)