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

A187532
a(n) = 4^n mod 19.
2
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,2
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
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
MATHEMATICA
PowerMod[4, Range[0, 100], 19] (* or *)
PadRight[{}, 100, {1, 4, 16, 7, 9, 17, 11, 6, 5}] (* Paolo Xausa, Mar 17 2024 *)
PROG
(Magma) [4^n mod 19 : n in [0..80]]; // Vincenzo Librandi, Sep 09 2011
(PARI) a(n)=lift(Mod(4, 19)^n) \\ Charles R Greathouse IV, Mar 22 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Mar 10 2011
STATUS
approved