cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A131083 Periodic sequence (26, 16, 6, 2, 6, 16, 26, 30).

Original entry on oeis.org

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

Views

Author

Klaus Brockhaus, following a suggestion of Paul Curtz, Jun 14 2007

Keywords

Comments

Sixth column of triangular array T defined in A131074.

Crossrefs

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