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.

Showing 1-1 of 1 results.

A266973 a(n) = 4^n mod 17.

Original entry on oeis.org

1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16, 13, 1, 4, 16
Offset: 0

Views

Author

Vincenzo Librandi, Apr 06 2016

Keywords

Comments

Period 4: repeat [1, 4, 16, 13].

Crossrefs

Cf. similar sequences of the type 4^n mod p, where p is a prime: A010685 (5), A153727 (7), A168429 (11), A168430 (13), this sequence (17), A187532 (19).

Programs

  • Magma
    [Modexp(4, n, 17): n in [0..100]];
  • Maple
    A266973:=n->power(4,n) mod 17: seq(A266973(n), n=0..100); # Wesley Ivan Hurt, Jun 29 2016
  • Mathematica
    PowerMod[4, Range[0, 100], 17]

Formula

G.f.: (1+4*x+16*x^2+13*x^3)/(1-x^4).
a(n) = a(n-4) for n>3.
From Wesley Ivan Hurt, Jun 29 2016: (Start)
a(n) = (34 - 3*(5 + 3*I)*I^(-n) - 3*(5 - 3*I)*I^n)/4 where I=sqrt(-1).
a(n) = (17 - 15*cos(n*Pi/2) - 9*sin(n*Pi/2))/2. (End)
Showing 1-1 of 1 results.