A141726 Sawtooth with period length 9: repeat 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, 2, 1, 0, 8, 7, 6, 5, 4, 3
Offset: 1
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
Comments