login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A379263
a(n) = n for 1 <= n <= 3. For n >3 a(n) is the smallest positive integer not already in the sequence which is prime to a(n-3) but not to a(n-2)*a(n-1).
1
1, 2, 3, 4, 9, 8, 15, 5, 21, 7, 6, 10, 12, 25, 27, 35, 14, 16, 18, 33, 11, 55, 20, 24, 26, 13, 65, 45, 30, 22, 28, 49, 63, 39, 36, 32, 34, 17, 51, 57, 19, 38, 40, 42, 69, 23, 115, 50, 44, 48, 77, 75, 85, 54, 46, 52, 91, 105, 81, 60, 58, 29, 203, 119, 56, 62, 31
OFFSET
1,2
COMMENTS
Let i,j,k,h be any 4 consecutive terms, then there must be a prime p; p|j*k but p!|i, for if not then for any prime q; q|j*k implies q|i. But then for any h such that gcd(h,j*k) > 1 we would have gcd(h,i) > 1; contradiction since h is a term. Any number of the form m = p*x where p|j*k, p!|i and x is any novel prime not dividing i must be a candidate for a(n) since then gcd(m,j*k) > 1 and gcd(m,i) = 1. Therefore the sequence is well defined and infinite. Similar to the Yellowstone sequence A098550, from which it diverges at a(8) = 5.
Conjecture: Sequence is a permutation of the positive integers, with primes in order.
LINKS
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^16.
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, with a color function showing primes in red, proper prime powers in gold, squarefree composites in green, and numbers neither squarefree nor prime powers in blue and purple, where purple additionally represents powerful numbers that are not prime powers.
Michael De Vlieger, Plot p^m | n at (x,y) = (n,pi(p)), n = 1..2048, showing multiplicity m = 1 in black, m = 2 in red, m = 3 in orange, ..., m = 10 in magenta.
EXAMPLE
Given a(1,2,3) = 1,2,3 a(4) = 4 since 4 it is the smallest novel number which shares a prime factor with 6 but not with 1. This forces a(5) = 9, the smallest number prime to 2 but not to 12.
a(21,22,23) = 11,55,20 so a(24) must be a multiple of either 2 or 5 since both divide 55*20 but not 11. Using 5 we would get a(24) = 30 or if using 2 we would have a(24) = 24. Thus a(24) = 24.
MATHEMATICA
nn = 120; c[_] := False;
Set[{h, i, j, u}, Range[4]];
{h, i, j}~Join~Reap[Do[
k = u; While[Or[c[k], CoprimeQ[i*j, k], ! CoprimeQ[h, k]], k++];
Set[{c[k], h, i, j}, {True, i, j, k}]; Sow[k];
If[k == u, While[c[u], u++]],
{n, 4, nn}] ][[-1, 1]] (* Michael De Vlieger, Dec 19 2024 *)
CROSSREFS
Cf. A098550.
Sequence in context: A353239 A351497 A329425 * A373390 A247942 A374612
KEYWORD
nonn
AUTHOR
STATUS
approved