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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070412 7^n mod 27. 0
1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13, 10, 16, 4, 1, 7, 22, 19, 25, 13 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

LINKS

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

FORMULA

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

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

PROG

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

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

CROSSREFS

Sequence in context: A130740 A101119 A200886 * A055575 A041090 A042639

Adjacent sequences:  A070409 A070410 A070411 * A070413 A070414 A070415

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 17:13 EST 2012. Contains 205828 sequences.