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.

A168093 a(n) = number of natural numbers m such that n - 3 <= m <= n + 3.

Original entry on oeis.org

3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
Offset: 0

Views

Author

Jaroslav Krizek, Nov 18 2009

Keywords

Comments

Generalization: If a(n,k) = number of natural numbers m such that n - k <= m <= n + k (k >= 1) then a(n,k) = a(n-1,k) + 1 = n + k for 0 <= n <= k, a(n,k) = a(n-1,k) = 2k + 1 for n >= k + 1 (see, e.g., A158799).

Crossrefs

Cf. A000027.

Programs

  • Mathematica
    CoefficientList[Series[(3 - 2*x - x^5)/(1 - x)^2, {x, 0, 25}], x] (* G. C. Greubel, Jul 11 2016 *)

Formula

a(n) = 3 + n for 0 <= n <= 3, a(n) = 7 for n >= 4.
G.f.: (3 - 2*x - x^5)/(1-x)^2. - G. C. Greubel, Jul 11 2016