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!)
A096067 Number of 3-smooth numbers between successive numbers that are powers of 2 or of 3. 1

%I #19 Dec 17 2021 09:50:23

%S 0,0,0,1,0,1,2,0,3,1,2,4,0,5,2,3,6,0,6,5,2,8,2,6,8,1,10,4,6,11,0,11,8,

%T 4,13,3,10,12,2,15,6,9,16,0,17,9,8,18,2,16,14,5,20,6,14,19,2,22,10,12,

%U 23,1,22,16,8,25,6,19,22,4,27,11,16,28,0,29,16,13,30,4

%N Number of 3-smooth numbers between successive numbers that are powers of 2 or of 3.

%C a(n) = {k: A006899(n) < A003586(k) < A006899(n+1)}.

%H Andrew Howroyd, <a href="/A096067/b096067.txt">Table of n, a(n) for n = 1..10000</a>

%e n=16: there are three 3-smooth numbers between A006899(16)=3^6=729 and A006899(17)=2^10=1024: A003586(38)=2^8*3=768, A003586(39)=2^5*3^3=864 and A003586(40)=2^2*3^5=972, therefore a(16)=3.

%t spi[n_] := Sum[Floor@Log[2, n/3^k] + 1, {k, 0, Floor@Log[3, n]}];

%t seq[n_] := Module[{a = Table[0, {n}], p = 1, s = 1}, For[i = 1, i <= Length[a], i++, p = Min[2^(1 + Floor@Log[2, p]), 3^(1 + Floor@Log[3, p])]; With[{t = spi[p]}, a[[i]] = t - s - 1; s = t]]; a];

%t seq[100] (* _Jean-François Alcover_, Dec 17 2021, after _Andrew Howroyd_'s PARI code *)

%o (PARI) \\ here spi(n) is A071521(n).

%o spi(n)={sum(k=0, logint(n, 3), logint(n\3^k, 2)+1)}

%o seq(n)={my(a=vector(n), p=1, s=1); for(i=1, #a, p=min(2^(1+logint(p,2)), 3^(1+logint(p,3))); my(t=spi(p)); a[i]=t-s-1; s=t); a} \\ _Andrew Howroyd_, Jan 07 2020

%Y Cf. A003586, A006899, A071521.

%K nonn,look

%O 1,7

%A _Reinhard Zumkeller_, Jul 21 2004

%E Terms a(40) and beyond from _Andrew Howroyd_, Jan 06 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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)