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”).

A131030
Period 6: repeat [16, 7, 7, 16, 25, 25].
10
16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16, 7, 7, 16, 25, 25, 16
OFFSET
1,1
COMMENTS
Sixth column of triangular array T defined in A131022.
FORMULA
a(1) = a(4) = 16, a(2) = a(3) = 7, a(5) = a(6) = 25; for n > 6, a(n) = a(n-6).
G.f.: x*(16 - 25*x + 25*x^2)/((1-x)*(1 - x + x^2)).
a(n) = 16 + 9*cos(n*Pi/3) - 3*sqrt(3)*sin(n*Pi/3). - Wesley Ivan Hurt, Sep 26 2018
MAPLE
seq(op([16, 7, 7, 16, 25, 25]), n=0..30); # Wesley Ivan Hurt, Oct 02 2018
PROG
(PARI) {m=79; for(n=1, m, r=(n-1)%6; print1(if(r==0||r==3, 16, if(r==1||r==2, 7, 25)), ", "))}
(Magma) m:=79; [ [16, 7, 7, 16, 25, 25][(n-1) mod 6 + 1]: n in [1..m] ];
CROSSREFS
Cf. A131022. Other columns of T are in A088911, A131026, A131027, A131028, A131029.
Sequence in context: A302892 A303627 A330277 * A070580 A298618 A028579
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, following a suggestion of Paul Curtz, Jun 10 2007
STATUS
approved