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 A109465 #14 Sep 29 2017 02:51:20 %S A109465 1,2,6,3,10,4,12,5,14,7,15,8,18,9,20,11,21,13,22,16,24,17,26,19,28,23, %T A109465 30,25,33,27,34,29,35,31,36,32,38,37,39,41,40,42,43,44,47,45,49,46,53, %U A109465 48,59,50,60,51,61,52,64,54,66,55,67,56,70,57,71,58,73,62,78,63,79,65 %N A109465 a(1)=1; for n>1, a(n) = smallest positive integer not among the earlier terms of the sequence that is divisible by a different number of distinct primes than a(n-1). %C A109465 Sequence is a permutation of the positive integers. %H A109465 Reinhard Zumkeller, <a href="/A109465/b109465.txt">Table of n, a(n) for n = 1..10000</a> %H A109465 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %e A109465 Of the positive integers (4,5,7,8,9,10,11,...) not among the first 4 terms of the sequence, 10 is the smallest which is divisible by a different number of distinct primes than a(4) = 3. So a(5) = 10. %t A109465 a = {1}; Do[k = 2; While[Nand[FreeQ[a, k], PrimeNu[k] != PrimeNu[a[[i - 1]]]], k++]; AppendTo[a, k], {i, 2, 72}]; a (* _Michael De Vlieger_, Sep 28 2017 *) %o A109465 (Haskell) %o A109465 import Data.List (delete) %o A109465 a109465 n = a109465_list !! (n-1) %o A109465 a109465_list = f 1 [1..] where %o A109465 f o xs = g xs where %o A109465 g (z:zs) = if o' == o then g zs else z : f o' (delete z xs) %o A109465 where o' = a001221 z %o A109465 -- _Reinhard Zumkeller_, Aug 07 2014 %Y A109465 Cf. A001221. %Y A109465 Cf. A241012 (inverse), A143691. %K A109465 nonn %O A109465 1,2 %A A109465 _Leroy Quet_, Aug 28 2005 %E A109465 Extended by _Ray Chandler_, Aug 28 2005