A206548 Period 12: repeat 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1.
1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1, 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1, 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1, 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1, 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1, 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1
Offset: 1
Examples
Residues Modd 21 of the positive odd integers relatively prime to 21: A206547: 1, 5, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, ... Modd 21: 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5, 1, 1, ...
Links
- Index entries for linear recurrences with constant coefficients, signature (2,-2,1,0,0,-1,2,-2,1).
Crossrefs
Cf. A206546.
Programs
-
PARI
a(n)=[1, 1, 5, 11, 13, 17, 19, 19, 17, 13, 11, 5][n%12+1] \\ Charles R Greathouse IV, Jul 17 2016
Formula
a(n) = A206547(n) (Modd 21) := Modd21(A206547(n)), n>=1, with the periodic sequence Modd21 (period length 42) given in the comment section.
From Chai Wah Wu, Feb 16 2021: (Start)
a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3) - a(n-6) + 2*a(n-7) - 2*a(n-8) + a(n-9) for n > 9.
G.f.: x*(-x^8 - 3*x^7 - 3*x^6 - 8*x^4 - 3*x^2 - 3*x - 1)/((x - 1)*(x^2 + 1)*(x^2 - x + 1)*(x^4 - x^2 + 1)). (End)
Extensions
Deleted an incorrect g.f. - N. J. A. Sloane, Feb 16 2021
Comments