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.

A080036 a(n) = n + round(sqrt(2*n)) + 1.

Original entry on oeis.org

1, 3, 5, 6, 8, 9, 10, 12, 13, 14, 15, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 80, 81, 82, 83, 84, 85, 86
Offset: 0

Views

Author

N. J. A. Sloane, Mar 14 2003

Keywords

Comments

Sequence (without first term) is the complement of A000124 (central polygonal numbers). - Jaroslav Krizek, Jun 16 2009
a(n) is the Ramsey core number rc(2,n). The Ramsey core number rc(s,t) is the smallest n such that for all edge 2-colorings of K_n, either the factor induced by the first color contains an s-core or the second factor contains a t-core. (A k-core is a subgraph with minimum degree at least k.) - Allan Bickle, Mar 29 2023

Examples

			For order 5, one of the two factors has at least 5 edges, and so contains a cycle.   For order 4, K_4  decomposes into two paths.  Thus rc(2,2)=5.
		

References

  • R. Klein and J. Schönheim, Decomposition of K_{n} into degenerate graphs, In Combinatorics and Graph Theory Hefei 6-27, April 1992. World Scientific. Singapore, New Jersey, London, Hong Kong, 141-1

Crossrefs

Equals A014132 + 1. Cf. A080037.
Different from A105206.
Cf. A361261 (array of rc(s,t)), A361684 (rc(n,n)).

Programs

  • Magma
    [n + Round(Sqrt(2*n)) + 1: n in [0..80]]; // Vincenzo Librandi, Jan 20 2015
    
  • Mathematica
    Table[(n + Round[Sqrt[2 n]] + 1), {n, 0, 80}] (* Vincenzo Librandi, Jan 20 2015 *)
  • PARI
    A080036(n)=n+round(sqrt(2*n))+1 \\ M. F. Hasler, Jan 13 2015
    
  • Python
    from math import isqrt
    def A080036(n): return (k:=isqrt(m:=n<<1))+int((m<<2)>(k<<2)*(k+1)+1)+n+1 # Chai Wah Wu, Jul 26 2022

Formula

a(0)=1, a(1)=3; for n>1, a(n)=a(n-1)+1 if n is already in the sequence, a(n)=a(n-1)+2 otherwise.
a(n) = A003057(n+1) + n. - Jaroslav Krizek, Jun 16 2009
a(n) = ceiling(n + 1/2 + sqrt(2*(n-1)+9/4)). - Allan Bickle, Mar 29 2023