A131083 Periodic sequence (26, 16, 6, 2, 6, 16, 26, 30).
26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30, 26, 16, 6, 2, 6, 16, 26, 30
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (1,0,0,-1,1).
Programs
-
Magma
m:=80; [ [26, 16, 6, 2, 6, 16, 26, 30][(n-1) mod 8 + 1]: n in [1..m] ];
-
Mathematica
PadRight[{},90,{26,16,6,2,6,16,26,30}] (* Harvey P. Dale, Nov 02 2017 *)
-
PARI
{m=80; for(n=1, m, r=(n-1)%8; print1(if(r==0||r==6, 26, if(r==1||r==5, 16, if(r==2||r==4, 6, if(r==3, 2, 30)))), ","))}
Formula
a(n) = a(n-8).
G.f.: x*(26-10*x-10*x^2-4*x^3+30*x^4)/((1-x)*(1+x^4)).
Comments