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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070421 7^n mod 38. 1
1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11, 1, 7, 11 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

Equivalently 7^n mod 19. [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Nov 27 2009]

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (0,0,1).

FORMULA

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

a(n)=(1/9)*{49*(n mod 3)+7*[(n+1) mod 3]+[(n+2) mod 3]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), May 14 2010]

PROG

(Other) sage: [power_mod(7, n, 19)for n in xrange(0, 90)] # and sage: [power_mod(7, n, 38)for n in xrange(0, 90)] # [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Nov 27 2009]

(MAGMA)[7^n mod 19: n in [0..80]]; // From Vincenzo Librandi, Feb 08 2011

CROSSREFS

Sequence in context: A133346 A091920 A036934 * A050081 A144076 A097152

Adjacent sequences:  A070418 A070419 A070420 * A070422 A070423 A070424

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 15 09:26 EST 2012. Contains 205753 sequences.