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.

A047353 Numbers that are congruent to {1, 2} mod 7.

Original entry on oeis.org

1, 2, 8, 9, 15, 16, 22, 23, 29, 30, 36, 37, 43, 44, 50, 51, 57, 58, 64, 65, 71, 72, 78, 79, 85, 86, 92, 93, 99, 100, 106, 107, 113, 114, 120, 121, 127, 128, 134, 135, 141, 142, 148, 149, 155, 156, 162, 163, 169, 170
Offset: 1

Views

Author

Keywords

Programs

  • Mathematica
    LinearRecurrence[{1,1,-1},{1,2,8},50] (* Harvey P. Dale, Nov 29 2014 *)
  • PARI
    a(n) = (14*n - 15 - 5*(-1)^n)/4 \\ David Lovler, Sep 11 2022

Formula

From R. J. Mathar, Oct 08 2011: (Start)
a(n) = 7*n/2 - 15/4 - 5*(-1)^n/4.
G.f.: x*(1 + x + 5*x^2) / ( (1+x)*(x-1)^2 ). (End)
E.g.f.: 5 + ((14*x -15)*exp(x) - 5*exp(-x))/4. - David Lovler, Sep 11 2022