cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A368108 a(1,2,3) = 1,2,3. For n > 3, a(n) is the smallest of the least novel multiples of all primes which divide an earlier term but do not divide a(n-1). If the prime divisors of all prior terms also divide a(n-1), a(n) is the least novel multiple of the smallest prime which does not divide a(n-1).

This page as a plain text file.
%I A368108 #14 Dec 25 2023 10:03:02
%S A368108 1,2,3,4,6,5,8,9,10,12,15,14,18,7,16,20,21,22,24,11,25,26,27,13,28,30,
%T A368108 33,32,35,34,36,17,38,39,19,40,42,44,45,46,48,23,49,50,51,52,54,55,56,
%U A368108 57,58,60,29,62,63,31,64,65,66,68,69,70,72,75,74,76,37,77
%N A368108 a(1,2,3) = 1,2,3. For n > 3, a(n) is the smallest of the least novel multiples of all primes which divide an earlier term but do not divide a(n-1). If the prime divisors of all prior terms also divide a(n-1), a(n) is the least novel multiple of the smallest prime which does not divide a(n-1).
%C A368108 Conjectured to be a permutation of the positive integers with primes in order.
%C A368108 Same as A351495 for the first 13 terms; diverges thereafter.
%H A368108 Michael De Vlieger, <a href="/A368108/b368108.txt">Table of n, a(n) for n = 1..10000</a>
%H A368108 Michael De Vlieger, <a href="/A368108/a368108.png">Log log scatterplot of a(n)</a>, n = 1..2^14, showing primes in red.
%F A368108 If a(m) = 2*p where p is a prime > 5 which is not already a term, then a(m+2) = p.
%e A368108 a(4) = 4, least novel multiple of 2, the smallest prime which does not divide 3.
%e A368108 a(5) = 6, least novel multiple of 3, the smallest prime which does not divide 4.
%e A368108 There is only one occasion where the second condition of the definition applies, namely a(5) = 6, where 2 and 3 have already occurred; therefore a(6) = 5, the smallest prime which does not divide 6.
%e A368108 a(7) = 8 since 2 and 3 do not divide 5, and their least novel multiples are 8, and 9 respectively.
%e A368108 Since a(7) = 8, a(8) is the least novel multiple of 3 (9) or 5 (10), so a(8) = 9.
%e A368108 a(13) = 18 and 5, 7 are the primes which divide prior terms but don't divide 18. The least novel multiple of 5 is 20, and the least novel multiple of 7 is 7, therefore a(14) = 7.
%t A368108 nn = 120; c[_] := False; m[_] := 1;
%t A368108 Array[Set[{a[#], c[#], m[#]}, {#, True, 2}] &, 3];
%t A368108 j = 3; s = {2}; r = Max[s]; c[3] = False;
%t A368108 Do[(If[Length[#] == 0, Set[k, NextPrime[r]],
%t A368108         Set[k, Min[#]]] &@
%t A368108       DeleteCases[Map[(While[c[# m[#]], m[#]++]; # m[#]) &, s], j];
%t A368108      s = Union[s, #];
%t A368108      If[Last[#] > r, r = Last[#]]) &@ FactorInteger[j][[All, 1]];
%t A368108   Set[{a[n], c[j], j}, {k, True, k}], {n, 4, nn}];
%t A368108 Array[a, nn] (* _Michael De Vlieger_, Dec 12 2023 *)
%Y A368108 Cf. A351495.
%K A368108 nonn
%O A368108 1,2
%A A368108 _David James Sycamore_, Dec 12 2023
%E A368108 More terms from _Michael De Vlieger_, Dec 12 2023