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.
%I A364611 #37 Sep 17 2023 01:36:11 %S A364611 1,2,4,8,5,3,6,12,16,10,9,18,24,32,20,27,36,48,64,40,54,72,96,128,25, %T A364611 7,14,28,56,15,21,42,84,112,30,63,126,168,224,60,81,108,144,192,80, %U A364611 162,216,288,256,50,49,98,196,392,45,147,294,252,336,90,189,378,504 %N A364611 For p = 5 and n > 0, write n = p^m + k, m >= 0, with maximal p^m <= n, with 0 <= k < p^(m+1) - p^m, then for n such that k=0, a(n)=n, and for n such that k > 0, a(n) is the smallest q*a(k), prime q != p, that is not already a term. %C A364611 This is sequence D(p), p = 5, where the Doudna sequence A005940 = D(2). %H A364611 Michael De Vlieger, <a href="/A364611/b364611.txt">Table of n, a(n) for n = 1..15625</a> %H A364611 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %t A364611 p = 5; nn = 125; c[_] = False; %t A364611 Do[Set[{m, k}, {1, n - p^Floor[Log[p, n]]}]; %t A364611 If[k == 0, %t A364611 Set[{a[n], c[n]}, {n, True}], %t A364611 While[Set[t, Prime[m] a[k]]; Or[m == i, c[t]], m++]; %t A364611 Set[{a[n], c[t]}, {t, True}]], {n, nn}]; %t A364611 Array[a, nn] %Y A364611 Cf. A005940 (D(2)), A356867 (D(3)), A364628 (D(7)). %K A364611 nonn %O A364611 1,2 %A A364611 _Michael De Vlieger_, Sep 16 2023