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

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

0,2

LINKS

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

FORMULA

a(n)=(1/8)*{27*(n mod 4)+47*[(n+1) mod 4]-27*[(n+2) mod 4]+5*[(n+3) mod 4]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Apr 16 2010]

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

a(n) = (13*(-1)^n-3*((8+i)*(-i)^n+(8-i)*i^n)+39)/4, where i is the imaginary unit. - Bruno Berselli, Feb 07 2011

PROG

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

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

CROSSREFS

Sequence in context: A070387 A123748 A050108 * A050084 A070379 A143254

Adjacent sequences:  A070383 A070384 A070385 * A070387 A070388 A070389

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 13 20:26 EST 2012. Contains 205553 sequences.