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.

A187532 a(n) = 4^n mod 19.

Original entry on oeis.org

1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5, 1, 4, 16, 7, 9, 17, 11, 6, 5
Offset: 0

Views

Author

M. F. Hasler, Mar 10 2011

Keywords

Comments

Period 9: repeat (1,4,16,7,9,17,11,6,5).
Also continued fraction expansion of (13140908+sqrt(323139488118562))/24969762. - Bruno Berselli, Sep 09 2011

Crossrefs

Programs

  • Magma
    [4^n mod 19 : n in [0..80]]; // Vincenzo Librandi, Sep 09 2011
    
  • Mathematica
    PowerMod[4, Range[0, 100], 19]  (* or *)
    PadRight[{}, 100, {1, 4, 16, 7, 9, 17, 11, 6, 5}] (* Paolo Xausa, Mar 17 2024 *)
  • PARI
    a(n)=lift(Mod(4,19)^n) \\ Charles R Greathouse IV, Mar 22 2016

Formula

a(n+9) = a(n).
G.f.: (1 + 4*x + 16*x^2 + 7*x^3 + 9*x^4 + 17*x^5 + 11*x^6 + 6*x^7 + 5*x^8)/((1-x)*(1+x+x^2)*(1+x^3+x^6)). - Bruno Berselli, Sep 09 2011