A206544 Period 12: repeat 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1.
1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1
Offset: 1
Examples
Residue Modd 13 of the positive odd numbers not divisible by 13: A204457: 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, ... Modd 13: 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, ...
Links
- Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, -1, 1).
Programs
-
Mathematica
LinearRecurrence[{1, 0, 0, 0, 0, -1, 1},{1, 3, 5, 7, 9, 11, 11},72] (* Ray Chandler, Aug 08 2015 *)
-
PARI
a(n)=[1, 1, 3, 5, 7, 9, 11, 11, 9, 7, 5, 3][n%12+1] \\ Charles R Greathouse IV, Jul 17 2016
Comments