# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a022921 Showing 1-1 of 1 %I A022921 #53 Mar 01 2024 06:23:02 %S A022921 1,2,1,2,1,2,2,1,2,1,2,2,1,2,1,2,1,2,2,1,2,1,2,2,1,2,1,2,1,2,2,1,2,1, %T A022921 2,2,1,2,1,2,1,2,2,1,2,1,2,2,1,2,1,2,2,1,2,1,2,1,2,2,1,2,1,2,2,1,2,1, %U A022921 2,1,2,2,1,2,1,2,2,1,2,1,2,1,2,2,1,2,1,2,2,1,2,1,2,1,2,2,1,2,1 %N A022921 Number of integers m such that 3^n < 2^m < 3^(n+1). %C A022921 Represents increments between successive terms of allowable dropping times in the Collatz (3x+1) problem. That is, a(n) = A020914(n+1) - A020914(n). - _K. Spage_, Oct 23 2009 %H A022921 T. D. Noe, Table of n, a(n) for n = 0..1000 %H A022921 Mike Winkler, The algorithmic structure of the finite stopping time behavior of the 3x + 1 function, arXiv:1709.03385 [math.GM], 2017. %F A022921 a(n) = floor((n+1)*log_2(3)) - floor(n*log_2(3)). %F A022921 a(n) = A122437(n+2) - A122437(n+1) - 1. - _K. Spage_, Oct 23 2009 %F A022921 First differences of A020914. - _Robert G. Wilson v_, May 25 2014 %F A022921 First differences of A056576. - _L. Edson Jeffery_, Dec 12 2014 %F A022921 Asymptotic mean: lim_{m->oo} (1/m) * Sum_{k=1..m} a(k) = log_2(3) (A020857). - _Amiram Eldar_, Mar 01 2024 %e A022921 From _Amiram Eldar_, Mar 01 2024: (Start) %e A022921 a(0) = 1 because 3^0 = 1 < 2^1 = 2 < 3^1 = 3. %e A022921 a(1) = 2 because 3^1 = 3 < 2^2 = 4 < 2^3 = 8 < 3^2 = 9. %e A022921 a(2) = 1 because 3^2 = 9 < 2^4 = 16 < 3^3 = 27. (End) %p A022921 Digits := 100: c1 := log(3.)/log(2.): A022921 := n->floor((n+1)*c1)-floor(n*c1); %p A022921 seq(ilog2(3^(n+1)) - ilog2(3^n), n=0 .. 1000); # _Robert Israel_, Dec 11 2014 %t A022921 i2 = 1; Table[p = i2; While[i2++; 2^i2 < 3^(n + 1)]; i2 - p, {n, 0, 98}] (* _T. D. Noe_, Feb 28 2014 *) %t A022921 f[n_] := Floor[ Log2[ 3^n] + 1]; Differences@ Array[f, 106, 0] (* _Robert G. Wilson v_, May 25 2014 *) %o A022921 (PARI) a(n) = logint(3^(n+1),2) - logint(3^n,2) \\ _Ruud H.G. van Tol_, Dec 28 2022 %o A022921 (PARI) Vec(matreduce([logint(2^i,3)|i<-[1..158]])[,2])[1..-2] \\ _Ruud H.G. van Tol_, Dec 29 2022 %Y A022921 Cf. A020914, A056576, A076227, A100982, A122437. %Y A022921 See also A020857 (decimal expansion of log_2(3)). %K A022921 nonn,easy %O A022921 0,2 %A A022921 _Clark Kimberling_ # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE