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 A353092 #22 Jul 01 2025 23:33:37 %S A353092 0,1,0,3,1,0,5,2,0,6,3,1,0,8,4,2,1,0,10,5,3,1,0,12,7,3,2,0,13,11,3,2, %T A353092 0,14,14,5,2,0,15,16,6,2,1,0,17,18,7,3,1,0,19,21,8,4,1,0,21,21,11,4,1, %U A353092 0,23,23,12,5,1,0,25,25,14,5,1,0,27,26,16,6,2 %N A353092 Inventory sequence counting prime factors. (See comment.) %C A353092 0 and 1 are the only nonnegative integers which have no prime factors. The sequence uses this property as follows: Record the number of existing terms which have 0 prime factors, then the number having 1 prime factor, then 2, 3 and so on until reaching a number k such that there are no terms having k prime factors (counted with multiplicity). At this point record a 0 term, and restart the count. %H A353092 Michael De Vlieger, <a href="/A353092/b353092.txt">Table of n, a(n) for n = 0..11196</a> (as an irregular table, rows m = 0..2^10, flattened) %H A353092 Michael De Vlieger, <a href="/A353092/a353092.png">Scatterplot of a(n)</a>, n = 1..11185 (2^10 zeros), with a color code assigning black to 0, and color-coding trajectories, starting with red and ending with magenta, pertaining to omega(k), 1 <= k <= 15 respectively. %H A353092 Michael De Vlieger, <a href="/A353092/a353092_1.png">Log-log scatterplot of a(n)</a>, n = 1..11185 (2^10 zeros), color-coding trajectories, starting with red and ending with magenta, pertaining to omega(k), 1 <= k <= 15 respectively. %H A353092 <a href="/index/In#inventory">Index entries for sequences related to the inventory sequence</a> %e A353092 a(0) = 0 since at first there are no terms, hence 0 terms with 0 prime factors. The count now restarts because a 0 term has occurred. %e A353092 a(1) = 1 because now there is one term (a(0)) which has no prime factor. %e A353092 a(2) = 0 because there is no term with one factor. The count now restarts. %e A353092 a(3) = 3 because all three prior terms have no prime factor. %e A353092 a(4) = 1 since a(3) is prime, the first to occur in the sequence. %e A353092 a(5) = 0 since there are no terms with 2 prime divisors. The count now restarts... %e A353092 As an irregular table the sequence starts: %e A353092 0; %e A353092 1, 0; %e A353092 3, 1, 0; %e A353092 5, 2, 0; %e A353092 6, 3, 1, 0; %e A353092 8, 4, 2, 1, 0; %e A353092 10, 5, 3, 1, 0; %t A353092 Block[{a, c, j, k, m}, a[1] = c[_] = 0; j = c[-1] = c[0] = 1; Do[k = 0; While[c[k] > 0, j++; Set[m, c[k]]; Set[a[j], m]; c[If[m < 2, 0, PrimeOmega[m]]]++; k++]; j++; Set[a[j], 0]; c[0]++, 16]; Array[a, j] ] (* _Michael De Vlieger_, Apr 23 2022 *) %o A353092 (Python) %o A353092 from sympy import factorint %o A353092 from collections import Counter %o A353092 def f(n): return 0 if n < 2 else sum(e for p, e in factorint(n).items()) %o A353092 def aupton(nn): %o A353092 num, alst, inventory = 0, [0], Counter([0]) %o A353092 for n in range(1, nn+1): %o A353092 c = inventory[num] %o A353092 num = 0 if c == 0 else num + 1 %o A353092 alst.append(c) %o A353092 inventory.update([f(c)]) %o A353092 return alst %o A353092 print(aupton(78)) # _Michael S. Branicky_, Apr 22 2022 %Y A353092 Cf. A342585, A347791. %K A353092 nonn %O A353092 0,4 %A A353092 _David James Sycamore_, Apr 22 2022 %E A353092 a(50) and beyond from _Michael S. Branicky_, Apr 22 2022