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 A339511 #17 Feb 16 2025 08:34:01 %S A339511 1,2,3,5,6,10,12,20,21,25,33,49,51,83,99,131,132,196,200,328,336,400, %T A339511 528,784,786,1042,1554,1570,1602,2114,2178,3202,3203,4227,6275,10371, %U A339511 10375,12423,20615,36999,37007,41103,41231,49423,49679,50191,82959,99343,99345,164881,165905,296977,299025,331793,331809,593953,593985,1118273,2166849,2232385 %N A339511 Number of subsets of {1..n} whose elements have the same number of prime factors, counted with multiplicity. %H A339511 Sebastian Karlsson, <a href="/A339511/b339511.txt">Table of n, a(n) for n = 0..10000</a> %H A339511 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PrimeFactor.html">Prime Factor</a> %F A339511 a(n) = 1 + Sum_{k=1..n} 2^A335097(k). - _Sebastian Karlsson_, Feb 23 2021 %e A339511 a(6) = 12 subsets: {}, {1}, {2}, {3}, {4}, {5}, {6}, {2, 3}, {2, 5}, {3, 5}, {4, 6} and {2, 3, 5}. %t A339511 Array[Count[Subsets@ Range[#], _?(SameQ @@ PrimeOmega[#] &)] &, 16, 0] (* _Michael De Vlieger_, Feb 24 2021 *) %o A339511 (Python) %o A339511 from sympy import primeomega %o A339511 def test(n): %o A339511 if n<2: return n-1 %o A339511 return primeomega(n) %o A339511 def a(n): %o A339511 tests = [test(i) for i in range(n+1)] %o A339511 return sum(2**tests.count(v)-1 for v in set(tests)) %o A339511 print([a(n) for n in range(60)]) # _Michael S. Branicky_, Dec 07 2020 %Y A339511 Cf. A001222, A319169, A339512, A339514. %K A339511 nonn %O A339511 0,2 %A A339511 _Ilya Gutkovskiy_, Dec 07 2020 %E A339511 a(25)-a(48) from _Michael S. Branicky_, Dec 07 2020