(MAGMAMagma) [n mod 6: n in [0..100]]; // Wesley Ivan Hurt, Jul 06 2014
(MAGMAMagma) [n mod 6: n in [0..100]]; // Wesley Ivan Hurt, Jul 06 2014
a(n)=1/6 (2r^(5n + 2)+ 2r^(5n)- 4r^(5n - 2)- 2r^(4n + 2)+ 2r^(4n + 1)+ 2 r^(4n)- 2 r^(4n - 1)- 3r^(3n)- 6r^(2n + 2)- 10r^(2n)+ 4r^(2n - 2)+ 6r^(n + 2)- 2r^(n + 1)- 6r^n+ 2r^(n - 1)+ 15) , where r^5+r^4+r^3+r^2+r+1=0 . - Ammar Khatab, Aug 13 2020
nonn,easy,changed
editing
approved
proposed
editing
editing
proposed
a(n)=1/6 (2r^(5n + 2)+ 2r^(5n)- 4r^(5n - 2)- 2r^(4n + 2)+ 2r^(4n + 1)+ 2 r^(4n)- 2 r^(4n - 1)- 3r^(3n)- 6r^(2n + 2)- 10r^(2n)+ 4r^(2n - 2)+ 6r^(n + 2)- 2r^(n + 1)- 6r^n+ 2r^(n - 1)+ 15) , where r^5+r^4+r^3+r^2+r+1=0 . - _Ammar Khata_, Khatab_, Aug 13 2020
a(n)=1/6 (2r^(5n + 2)+ 2r^(5n)- 4r^(5n - 2)- 2r^(4n + 2)+ 2r^(4n + 1)+ 2 r^(4n)- 2 r^(4n - 1)- 3r^(3n)- 6r^(2n + 2)- 10r^(2n)+ 4r^(2n - 2)+ 6r^(n + 2)- 2r^(n + 1)- 6r^n+ 2r^(n - 1)+ 15) . - _Ammar Khata_, Aug 13 2020
approved
editing
proposed
approved
editing
proposed
Complex representation: a(n) = (1/6) * (1 - r^n) * Sum_{k = 1..6} k * Product_{1 <= m < 6, m <> k} (1-r^(n-m)), where r = exp((Pi/3)*i) = (1 + sqrt(3)*i)/2 and i = sqrt(-1).
Complex representation: a(n) = (1/6) * (1 - r^n) *sum Sum_{1<=k< = 1..6, } k * productProduct_{1 <= m < 6, m <> k, } (1-r^(n-m))}}, , where r = exp(Pi/3*i) = (1 + sqrt(3)*i)/2 and i = sqrt(-1).
Trigonometric representation: a(n) = (16/3)^2 * (sin(n*Pi/6))^2 *sum Sum_{1<=k< = 1..6, } k *product Product_{1 <= m < 6, m<>k, } (sin((n-m)*Pi/6))^2}}.