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.

A003138 Nearest integer to 24*(2^n - 1)/n.

Original entry on oeis.org

24, 36, 56, 90, 149, 252, 435, 765, 1363, 2455, 4466, 8190, 15122, 28085, 52427, 98303, 185041, 349524, 662257, 1258290, 2396744, 4575603, 8753329, 16777215, 32212254, 61946643, 119304646, 230087533
Offset: 1

Views

Author

Keywords

Comments

In case of a tie, round up. - N. J. A. Sloane, Nov 06 2022

Crossrefs

Programs

  • Magma
    [Round(24*(2^n -1)/n): n in [1..70]]; // G. C. Greubel, Nov 04 2022
    
  • Mathematica
    A003138[n_]:= With[{m=24*(2^n-1)/n}, If[Floor[m+1/2] -Floor[m]>=1/2, Ceiling[m], Floor[m]]];
    Table[A003138[n], {n,70}] (* G. C. Greubel, Nov 04 2022 *)
  • PARI
    a(n) = round(24*(2^n - 1)/n); \\ Michel Marcus, Nov 05 2022
  • SageMath
    [round(24*(2^n -1)/n) for n in range(1,71)] # G. C. Greubel, Nov 04 2022