A206543 Period 10: repeat 1, 3, 5, 7, 9, 9, 7, 5, 3, 1.
1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1
Offset: 1
Examples
Residue Modd 11 of the positive odd numbers not divisible by 11: A204454: 1, 3, 5, 7, 9, 13, 15, 17, 19, 21, 23, 25, 27, ... Modd 11: 1, 3, 5, 7, 9, 9, 7, 5, 3, 1, 1, 3, 5, ...
Links
- Index entries for linear recurrences with constant coefficients, signature (2,-2,2,-2,1).
Programs
-
Mathematica
PadRight[{},120,{1,3,5,7,9,9,7,5,3,1}] (* or *) LinearRecurrence[{2,-2,2,-2,1},{1,3,5,7,9},120] (* Harvey P. Dale, Oct 15 2017 *)
-
PARI
a(n)=[1, 3, 5, 7, 9, 9, 7, 5, 3, 1][n%10+1] \\ Charles R Greathouse IV, Jul 17 2016
Comments