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.

A135668 a(n) = ceiling(n + sqrt(n)).

Original entry on oeis.org

2, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67
Offset: 1

Views

Author

Mohammad K. Azarian, Nov 25 2007

Keywords

Comments

Complement of A002061. - Kieren MacMillan, Dec 16 2007

Crossrefs

Programs

  • Magma
    [Ceiling(n + n^(1/2)): n in [1..100]]; // Vincenzo Librandi, Feb 16 2013
    
  • Mathematica
    Table[Ceiling[n + n^(1/2)], {n, 100}] (* Vincenzo Librandi, Feb 16 2013 *)
  • Python
    from sympy import integer_nthroot
    def A135668(n): return n+(a:=integer_nthroot(n,2))[0]+(not a[1]) # Chai Wah Wu, Aug 26 2024