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.

A047276 Numbers that are congruent to {2, 6} mod 7.

Original entry on oeis.org

2, 6, 9, 13, 16, 20, 23, 27, 30, 34, 37, 41, 44, 48, 51, 55, 58, 62, 65, 69, 72, 76, 79, 83, 86, 90, 93, 97, 100, 104, 107, 111, 114, 118, 121, 125, 128, 132, 135, 139, 142, 146, 149, 153, 156, 160, 163, 167, 170, 174, 177, 181, 184, 188, 191, 195, 198, 202, 205
Offset: 1

Views

Author

Keywords

Programs

  • Mathematica
    Table[3*n + Floor[n/2] - 1, {n, 100}] (* Paolo Xausa, Sep 02 2024 *)
  • PARI
    a(n) = 3*n + floor(n/2) - 1 \\ David Lovler, Sep 12 2022

Formula

a(n) = 7*n - a(n-1) - 6 (with a(1)=2). - Vincenzo Librandi, Aug 05 2010
G.f.: x*(2 + 4*x + x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Oct 25 2011
a(n) = 3*n + floor(n/2) - 1. - Arkadiusz Wesolowski, Sep 19 2012
E.g.f.: 1 + ((14*x - 5)*exp(x) + exp(-x))/4. - David Lovler, Sep 12 2022