|
|
A070370
|
|
a(n) = 5^n mod 16.
|
|
2
|
|
|
1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1, 5, 9, 13, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Period 4: repeat [1, 5, 9, 13].
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-4) for n>3.
G.f.: ( 1+5*x+9*x^2+13*x^3 ) / ( (1-x)*(1+x)*(1+x^2) ). (End)
a(n) = 7-2*((1+I)*(-I)^n+(1-I)*I^n+(-1)^n). - Bruno Berselli, Feb 07 2011
E.g.f.: 5*cosh(x) + 9*sinh(x) - 4*cos(x) - 4*sin(x). - G. C. Greubel, Mar 05 2016
|
|
MAPLE
|
|
|
MATHEMATICA
|
Table[Mod[5^n, 16], {n, 0, 100}] (* G. C. Greubel, Mar 05 2016 *)
|
|
PROG
|
(Sage) [power_mod(5, n, 16)for n in range(0, 93)] # Zerinvary Lajos, Nov 26 2009
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|