login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A131083
Periodic sequence (26, 16, 6, 2, 6, 16, 26, 30).
5
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,1
COMMENTS
Sixth column of triangular array T defined in A131074.
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)).
MATHEMATICA
PadRight[{}, 90, {26, 16, 6, 2, 6, 16, 26, 30}] (* Harvey P. Dale, Nov 02 2017 *)
PROG
(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)))), ", "))}
(Magma) m:=80; [ [26, 16, 6, 2, 6, 16, 26, 30][(n-1) mod 8 + 1]: n in [1..m] ];
CROSSREFS
Sequence in context: A304138 A305044 A064267 * A203597 A040652 A154295
KEYWORD
nonn,easy,less
AUTHOR
Klaus Brockhaus, following a suggestion of Paul Curtz, Jun 14 2007
STATUS
approved