login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A154529 A090040 mod 9. 1
1, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8, 7, 5, 1, 2, 4, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
For n>2, equal to 2^(n-2) mod 9 [From Michael B. Porter, Feb 02 2010]
Apart from leading terms the same as A146501, A153130 and A029898. [From R. J. Mathar, Apr 13 2010]
LINKS
FORMULA
a(n)=a(n-1)-a(n-3)+a(n-4), n>4. G.f.: (6*x^4+2*x^3+4*x+1-4*x^2)/((1-x)*(1+x)*(x^2-x+1)). [From R. J. Mathar, Feb 25 2009]
MATHEMATICA
Join[{1}, LinearRecurrence[{1, 0, -1, 1}, {5, 1, 2, 4}, 101]] (* Ray Chandler, Jul 15 2015 *)
CROSSREFS
Sequence in context: A120579 A093316 A085758 * A352375 A157823 A159703
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 11 2009
EXTENSIONS
Edited by N. J. A. Sloane, Jan 12 2009
Extended by Ray Chandler, Jul 15 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 04:14 EDT 2024. Contains 371696 sequences. (Running on oeis4.)