A269226 Period 6: repeat [3, 9, 6, 6, 9, 3].
3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3, 3, 9, 6, 6, 9, 3
Offset: 1
Links
- Peter M. Chema, Illustration of initial terms
- Index entries for linear recurrences with constant coefficients, signature (1,-1,1,-1,1).
Programs
-
PARI
a(n)=[3, 3, 9, 6, 6, 9][n%6+1] \\ Charles R Greathouse IV, Jul 12 2016
Formula
a(n+1) = digital root of 5^n - 2^n.
a(n) = a(n-1) - a(n-2) + a(n-3) - a(n-4) + a(n-5) = a(n-6). - Charles R Greathouse IV, Jul 12 2016
a(n) = (12 - 3*cos(n*Pi/3) - 3*cos(2*n*Pi/3) - sqrt(3)*sin(n*Pi/3) - 3*sqrt(3)*sin(2*n*Pi/3))/2. - Wesley Ivan Hurt, Oct 05 2018
Comments