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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A070357 3^n mod 28. 0
1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25, 19, 1, 3, 9, 27, 25 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

LINKS

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

FORMULA

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

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

PROG

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

CROSSREFS

Sequence in context: A036123 A168427 A070344 * A131137 A061948 A018644

Adjacent sequences:  A070354 A070355 A070356 * A070358 A070359 A070360

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 19:39 EST 2012. Contains 205945 sequences.