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 A331295 #11 Jan 10 2022 13:28:12 %S A331295 1,1,1,1,1,1,1,1,2,1,1,1,1,1,2,1,1,2,1,1,2,1,1,1,3,1,3,1,1,2,1,1,2,1, %T A331295 3,2,1,1,2,1,1,2,1,1,3,1,1,1,4,4,2,1,1,3,3,1,2,1,1,2,1,1,3,1,3,2,1,1, %U A331295 2,4,1,2,1,1,5,1,4,2,1,1,4,1,1,2,3,1,2,1,1,3,4,1,2,1,3,1,1,5,3,4,1,2,1,1,6 %N A331295 Number of values of k, 1 <= k <= n, with f(k) = f(n), where f(n) = [A001222(n), A061395(n)]. %C A331295 Ordinal transform of A331298, or equally, of the ordered pair [A001222(n), A061395(n)]. %H A331295 Antti Karttunen, <a href="/A331295/b331295.txt">Table of n, a(n) for n = 1..12000</a> %H A331295 Antti Karttunen, <a href="/A331295/a331295.txt">Data supplement: n, a(n) computed for n = 1..65537</a> %H A331295 <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a> %t A331295 f[n_] := f[n] = {PrimeOmega[n], PrimePi[FactorInteger[n]][[-1, 1]]}; %t A331295 a[n_] := Count[Array[f, n], f[n]]; %t A331295 Array[a, 105] (* _Jean-François Alcover_, Jan 10 2022 *) %o A331295 (PARI) %o A331295 up_to = 1001; %o A331295 ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om,invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om,invec[i],(1+pt))); outvec; }; %o A331295 A061395(n) = if(1==n, 0, primepi(vecmax(factor(n)[, 1]))); %o A331295 Aux331298(n) = [bigomega(n), A061395(n)]; %o A331295 v331295 = ordinal_transform(vector(up_to, n, Aux331298(n))); %o A331295 A331295(n) = v331295[n]; %Y A331295 Cf. A001222, A061395, A078899, A331296, A331297, A331298. %K A331295 nonn %O A331295 1,9 %A A331295 _Antti Karttunen_, Jan 19 2020