login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A331296 Number of values of k, 1 <= k <= n, with A263297(k) = A263297(n), where A263297(n) = max(A001222(n), A061395(n)). 3

%I #10 Jan 10 2022 07:19:53

%S 1,1,1,2,1,3,1,2,4,3,1,4,1,2,5,3,1,6,1,7,4,2,1,5,8,2,9,6,1,10,1,3,4,2,

%T 7,8,1,2,3,9,1,10,1,5,11,2,1,6,11,12,3,4,1,12,7,13,3,2,1,14,1,2,15,5,

%U 6,8,1,4,3,16,1,9,1,2,13,4,10,7,1,11,17,2,1,18,5,2,3,12,1,19,8,4,3,2,5,9,1,20,13,21,1,6,1,10,22

%N Number of values of k, 1 <= k <= n, with A263297(k) = A263297(n), where A263297(n) = max(A001222(n), A061395(n)).

%C Ordinal transform of A263297.

%H Antti Karttunen, <a href="/A331296/b331296.txt">Table of n, a(n) for n = 1..65537</a>

%H <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a>

%t A263297[n_] := If[n == 1, 0, With[{f = FactorInteger[n]}, Max[PrimePi[Max[f[[All, 1]]]], Total[f[[All, 2]]]]]];

%t b[_] = 0;

%t a[n_] := With[{t = A263297[n]}, b[t] = b[t] + 1];

%t Array[a, 105] (* _Jean-François Alcover_, Jan 10 2022 *)

%o (PARI)

%o up_to = 65537;

%o 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 A263297(n) = if(n<2, 0, my(f=factor(n)); max(vecsum(f[, 2]), primepi(f[#f~, 1]))); \\ From A263297

%o v331296 = ordinal_transform(vector(up_to, n, A263297(n)));

%o A331296(n) = v331296[n];

%Y Cf. A001222, A061395, A263297.

%Y Cf. also A078899.

%K nonn

%O 1,4

%A _Antti Karttunen_, Jan 18 2020

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 07:57 EDT 2024. Contains 371905 sequences. (Running on oeis4.)