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.

A065482 a(n) = round( 2^n/n ).

Original entry on oeis.org

2, 2, 3, 4, 6, 11, 18, 32, 57, 102, 186, 341, 630, 1170, 2185, 4096, 7710, 14564, 27594, 52429, 99864, 190650, 364722, 699051, 1342177, 2581110, 4971027, 9586981, 18512790, 35791394, 69273666, 134217728, 260301048, 505290270, 981706811, 1908874354, 3714566310
Offset: 1

Views

Author

N. J. A. Sloane, Dec 03 2001

Keywords

Crossrefs

Programs

  • Magma
    [Round(2^n/n): n in [1..30]]; // G. C. Greubel, Jan 18 2018
    
  • Mathematica
    Table[Floor[(Floor[n/2]+2^n)/n], {n, 1, 100}]
  • PARI
    a(n) = { round(2^n/n) } \\ Harry J. Smith, Oct 20 2009
    
  • Python
    def A065482(n): return ((1<>1))//n # Chai Wah Wu, Apr 23 2025

Formula

a(n) = A082894(n)/n.
a(n) = floor((2^n + floor(n/2))/n).