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!)
A333534 a(n) is the number of log(n)-smooth numbers <= n. 2

%I #36 May 17 2020 07:29:16

%S 0,1,1,1,1,1,4,4,4,4,4,4,4,4,5,5,5,5,5,10,10,10,11,11,11,12,12,12,12,

%T 12,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,

%U 16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19

%N a(n) is the number of log(n)-smooth numbers <= n.

%C Number of k <= n such that the greatest prime factor of k is <= log(n).

%H Alois P. Heinz, <a href="/A333534/b333534.txt">Table of n, a(n) for n = 2..65536</a>

%F a(n) = A096300(n), n>2. - _R. J. Mathar_, Apr 27 2020

%p A333534 := n -> nops(select(k -> A006530(k) <= ilog(n), [$1..n])):

%p seq(A333534(n), n=2..86); # _Peter Luschny_, Apr 09 2020

%p # second Maple program:

%p b:= proc(n) option remember; max(1, map(i-> i[1], ifactors(n)[2])) end:

%p a:= n-> (t-> add(`if`(b(i)<= t, 1, 0), i=1..n))(ilog(n)):

%p seq(a(n), n=2..100); # _Alois P. Heinz_, Apr 09 2020

%t a[n_] := Select[Range[n], FactorInteger[#][[-1, 1]] <= Log[n]&] // Length;

%t a /@ Range[2, 100] (* _Jean-François Alcover_, May 17 2020 *)

%o (PARI) gpf(j)={if(j==1,1,my(f=factor(j));f[#f[,2],1])};

%o for(n=2,80,my(L=log(n));print1(sum(k=1,n,gpf(k)<=L),", ")) \\ _Hugo Pfoertner_, Apr 09 2020

%o (PARI) sm(lim, p)=if(p==2, return(logint(lim\1, 2)+1)); my(s=0, q=precprime(p-1), t=1); for(e=0, logint(lim\=1, p), s+=sm(lim\t, q); t*=p); s

%o a(n)=if(n<8,return(n>2)); sm(n, precprime(log(n))) \\ _Charles R Greathouse IV_, Apr 16 2020

%Y Cf. A001671, A006530, A051102, A137845, A295084.

%K nonn

%O 2,7

%A _N. J. A. Sloane_, Apr 08 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 18 03:33 EDT 2024. Contains 371767 sequences. (Running on oeis4.)