login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070368 5^n mod 13. 1
1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1, 5, 12, 8, 1 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (1,-1,1). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 20 2010]

FORMULA

a(n)=(1/12)*{34*(n mod 4)+25*[(n+1) mod 4]-8*[(n+2) mod 4]+[(n+3) mod 4]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Feb 24 2010]

a(n) = +a(n-1) -a(n-2) +a(n-3). G.f.: ( -1-4*x-8*x^2 ) / ( (x-1)*(1+x^2) ). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 20 2010]

a(n) = (26-(11+3*I)*(-I)^n-(11-3*I)*I^n)/4, where I is the imaginary unit. - Bruno Berselli, Feb 07 2011

PROG

(Other) sage: [power_mod(5, n, 13)for n in xrange(0, 93)] # [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Nov 25 2009]

(MAGMA) [5^n mod 13: n in [0..80]]; // From Vincenzo Librandi, Feb 07 2011

CROSSREFS

Sequence in context: A046610 A009842 A169729 * A066326 A015242 A009415

Adjacent sequences:  A070365 A070366 A070367 * A070369 A070370 A070371

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), May 12 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 07:39 EST 2012. Contains 205881 sequences.