cp's OEIS Frontend

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.

Previous Showing 21-22 of 22 results.

A153725 Least number m such that floor((3^n-m)/(2^n-m)) > floor(3^n/2^n).

Original entry on oeis.org

1, 2, 2, 3, 2, 4, 7, 4, 8, 7, 12, 9, 17, 4, 8, 16, 99, 20, 39, 235, 49, 97, 194, 885, 1106, 439, 2059, 968, 4034, 5268, 3070, 1163, 2325, 4649, 9297, 18593, 16210, 4452, 8903, 67524, 68757, 49124, 98248, 39360, 288234, 17763, 35526, 567677, 1135354
Offset: 1

Views

Author

Hieronymus Fischer, Jan 06 2009

Keywords

Comments

Provided A002379(n) = floor((3^n-1)/(2^n-1)) holds (which is proved only for 1 < n <= 305000), then a(n) > 1.

Examples

			a(5)=2, since floor((3^5-1)/(2^5-1)) = floor(242/31) = 7 = floor(243/32) = floor(3^5/2^5), but floor((3^5-2)/(2^5-2)) = floor(241/30) = 8 > 7.
		

Crossrefs

Programs

  • Mathematica
    Table[n3 = 3^n; n2 = 2^n; m = 1;
    While[Floor[(n3 - m)/(n2 - m)] <= Floor[n3/n2], m++]; m, {n,1,50}] (* Robert Price, Mar 27 2019 *)
  • PARI
    a(n) = my(f = floor(3^n/2^n)); ceil(((f + 1)*(2^n) - 3^n)/f) \\ David A. Corneth, Mar 27 2019

Formula

a(n) = ceiling(((f + 1)*(2^n) - 3^n)/f) where f = floor(3^n/2^n). - David A. Corneth, Mar 27 2019

A334264 Numbers k > 1 such that (3/2)^k sets a new record for closest fractional part to 1/2.

Original entry on oeis.org

2, 3, 5, 9, 11, 69, 420, 2361, 12432, 21565, 28226, 128389, 274555, 497269, 836000, 1151341, 1973112, 2202332, 2458844, 5402520
Offset: 1

Views

Author

Ben Paul Thurston, Apr 20 2020

Keywords

Crossrefs

A081464 is also related to (3/2) to a power being a record distance from a value of an integer.

Programs

  • Maple
    off := 1; for i from 2 to 1000 do t := (1+1/2)^i-floor((1+1/2)^i); d := abs(1/2-t); if d < off then off := d; print(i) end if end do
  • Mathematica
    dm = 1; r = 3/2; s = {}; Do[r *= 3/2; If[(d = Abs[r - Floor[r] - 1/2]) < dm, dm = d; AppendTo[s, n + 1]], {n, 1, 10^7}]; s (* Amiram Eldar, Jun 08 2020 *)

Extensions

a(8)-a(13) from Amiram Eldar, Jun 08 2020
a(14)-a(16) from Chai Wah Wu, Jul 02 2020
a(17)-a(20) from Bert Dobbelaere, Apr 25 2021
Previous Showing 21-22 of 22 results.