A361606 Lexicographically earliest infinite sequence of distinct positive numbers such that, for n > 3, a(n) shares a factor with a(n-1) and a(n-2) but not with a(n-1) + a(n-2).
1, 6, 10, 15, 12, 20, 45, 18, 40, 75, 24, 50, 105, 14, 30, 21, 28, 36, 63, 56, 48, 147, 98, 54, 189, 70, 60, 231, 22, 42, 33, 44, 72, 99, 88, 78, 143, 66, 26, 39, 84, 52, 91, 112, 104, 455, 80, 126, 35, 90, 154, 55, 100, 132, 135, 110, 96, 165, 130, 102, 85, 120, 34, 51, 108, 68, 153, 114
Offset: 1
Keywords
Examples
a(8) = 18 = 2*3*3 as a(6) = 20 = 2*2*5 and a(7) = 45 = 3*3*5 and a(6) + a(7) = 20 + 45 = 65 = 5*13. As the sum contains 5 as a factor a(8) cannot, but it must contain both 2 and 3 while containing a factor not in 45 = 3*3*5. The smallest unused number satisfying these conditions is 18.
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..10000
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, showing squarefree composites in blue, numbers neither squarefree nor prime powers in red and gold, with gold representing numbers whose prime factors have multiplicity exceeding 1.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, accentuating even terms in red.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, with a color function showing least prime factor of a(n), where red = 2, yellow = 3, green = 5, blue = 7, violet = 11, and p | a(n) such that prime p > 11 uncolored, thus, black and tiny.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, with a color function showing the number of distinct prime factors of a(n), where red = 2, yellow = 3, green = 4, and blue = 5.
- Scott R. Shannon, Image of the first 50000 terms. The green line is a(n) = n.
Crossrefs
Programs
-
Mathematica
nn = 120; u = s = 3; c[] = False; MapIndexed[Set[{a[First[#2]], c[#1]}, {#1, True}] &, {1, 6, 10}]; Set[{i, j}, {a[s - 1], a[s]}]; While[Or[c[u], PrimePowerQ[u]], u++]; Do[k = u; While[Or[c[k], CoprimeQ[i, k], CoprimeQ[j, k], ! CoprimeQ[i + j, k]], k++]; Set[{a[n], c[k], i, j}, {k, True, j, k}]; If[a[n] == u, While[Or[c[u], PrimePowerQ[u]], u++]], {n, s + 1, nn}]; Array[a, nn] (* _Michael De Vlieger, Mar 17 2023 *)
Comments