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.

A141726 Sawtooth with period length 9: repeat 8, 7, 6, 5, 4, 3, 2, 1, 0.

Original entry on oeis.org

8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3
Offset: 1

Views

Author

Paul Curtz, Sep 13 2008

Keywords

Comments

Continued fraction expansion of (23342+5*sqrt(44403565))/6961.
Decimal expansion of 973936900/111111111.

Crossrefs

Cf. A010878.

Programs

  • Mathematica
    PadRight[{},120,Range[8,0,-1]] (* Harvey P. Dale, Dec 23 2020 *)
  • Python
    def A141726(n): return (0, 8, 7, 6, 5, 4, 3, 2, 1)[n%9] # Chai Wah Wu, Jan 10 2023

Formula

a(n) = a(n-9).
G.f.: -x*(8+7*x+6*x^2+5*x^3+4*x^4+3*x^5+2*x^6+x^7)/((x-1)*(1+x+x^2)*(x^6+x^3+1)).

Extensions

Index in c-sequence corrected by R. J. Mathar, Sep 11 2009