A177274 Periodic sequence: Repeat 1, 2, 3, 4, 5, 6, 7, 8, 9.
1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
Crossrefs
Programs
-
Magma
&cat[ [1, 2, 3, 4, 5, 6, 7, 8, 9]: k in [1..12] ];
-
Mathematica
PadRight[{},120,Range[9]] (* Paolo Xausa, Jan 08 2024 *)
Formula
a(n) = (n mod 9)+1.
a(n) = a(n-9) for n > 8; 1; a(n) = n+1 for n <= 8.
G.f.: (1+2*x+3*x^2+4*x^3+5*x^4+6*x^5+7*x^6+8*x^7+9*x^8)/(1-x^9). [corrected by Georg Fischer, May 11 2019]
Comments