login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A141726
Sawtooth with period length 9: repeat 8, 7, 6, 5, 4, 3, 2, 1, 0.
3
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,1
COMMENTS
Continued fraction expansion of (23342+5*sqrt(44403565))/6961.
Decimal expansion of 973936900/111111111.
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)).
MATHEMATICA
PadRight[{}, 120, Range[8, 0, -1]] (* Harvey P. Dale, Dec 23 2020 *)
PROG
(Python)
def A141726(n): return (0, 8, 7, 6, 5, 4, 3, 2, 1)[n%9] # Chai Wah Wu, Jan 10 2023
CROSSREFS
Cf. A010878.
Sequence in context: A138472 A022964 A023450 * A307339 A031310 A161813
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Sep 13 2008
EXTENSIONS
Index in c-sequence corrected by R. J. Mathar, Sep 11 2009
STATUS
approved