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.

Showing 1-1 of 1 results.

A080353 a(1)=5; for n>1, a(n)=a(n-1)+1 if n is already in the sequence, a(n)=a(n-1)+2 otherwise.

Original entry on oeis.org

5, 7, 9, 11, 12, 14, 15, 17, 18, 20, 21, 22, 24, 25, 26, 28, 29, 30, 32, 33, 34, 35, 37, 38, 39, 40, 42, 43, 44, 45, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, 86, 87, 88, 89
Offset: 1

Views

Author

N. J. A. Sloane, Mar 20 2003

Keywords

Comments

Conjecture: This sequence is equivalent to N \ A008478. - Michael De Vlieger, Jul 02 2025

Crossrefs

Cf. A080036, A080037. Differences give A080354.

Programs

  • Mathematica
    a[1] = 5; a[n_] := a[n] = If[MemberQ[Array[a, n-1], n], a[n-1]+1, a[n-1]+2]; Array[a, 67] (* Jean-François Alcover, Oct 08 2018 *)

Formula

a(n) = n + floor(sqrt(6*n)) + O(1).
Showing 1-1 of 1 results.