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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070366 5^n mod 9. 8
1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7, 8, 4, 2, 1, 5, 7 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

Also the digital root of 5^n. - Cino Hilliard (hillcino368(AT)gmail.com), Dec 31 2004

LINKS

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

FORMULA

a(n)=(1/30)*{14*(n mod 6)+19*[(n+1) mod 6]+29*[(n+2) mod 6]+4*[(n+3) mod 6]-[(n+4) mod 6]-11*[(n+5) mod 6]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Feb 24 2010]

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

MATHEMATICA

PowerMod[5, Range[0, 120], 9]  (* From Harvey P. Dale, Mar 27 2011 *)

CROSSREFS

(MAGMA) [5^n mod 9: n in [0..90]]; // From Vincenzo Librandi, Feb 06 2011

Sequence in context: A135096 A153104 A155855 * A141606 A197491 A068001

Adjacent sequences:  A070363 A070364 A070365 * A070367 A070368 A070369

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 15:16 EST 2012. Contains 205519 sequences.