|
|
A131080
|
|
Periodic sequence (4, 4, 3, 1, 0, 0, 1, 3).
|
|
5
|
|
|
4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4, 4, 3, 1, 0, 0, 1, 3, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Third column of triangular array T defined in A131074.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-8).
G.f.: x*(4-x^2-2*x^3+3*x^4)/((1-x)*(1+x^4)).
|
|
PROG
|
(PARI) {m=105; for(n=1, m, r=(n-1)%8; print1(if(r<2, 4, if(r==2||r==7, 3, if(r==3||r==6, 1, 0))), ", "))}
(Magma) m:=105; [ [4, 4, 3, 1, 0, 0, 1, 3][(n-1) mod 8 + 1]: n in [1..m] ];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,less,changed
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|