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!)
A095310 a(n+3) = 2*a(n+2) + 3*(n+1) - a(n). 1
1, 5, 12, 38, 107, 316, 915, 2671, 7771, 22640, 65922, 191993, 559112, 1628281, 4741905, 13809541, 40216516, 117119750, 341079507, 993301748, 2892722267, 8424270271, 24533405595, 71446899736, 208069745986, 605946785585 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Let M = the 3 X 3 matrix [1 1 1 / 3 1 0 / 1 0 0], then M^n * [1 0 0] = [a(n) q a(n-1] where q is another sequence with the same recursion rule.
LINKS
FORMULA
G.f.: (-x^2+3*x+1)/(x^3-3*x^2-2*x+1). - Harvey P. Dale, Jan 25 2014
EXAMPLE
a(6) = 316 = 2*107 + 3*38 - 12.
a(5) = 107 since M^5 * [1 0 0] = [107 q 38].
MATHEMATICA
a[n_] := (MatrixPower[{{1, 1, 1}, {3, 1, 0}, {1, 0, 0}}, n].{{1}, {0}, {0}})[[1, 1]]; Table[ a[n], {n, 27}] (* Robert G. Wilson v, Jun 05 2004 *)
LinearRecurrence[{2, 3, -1}, {1, 5, 12}, 30] (* Harvey P. Dale, Jan 25 2014 *)
CROSSREFS
Sequence in context: A297909 A220705 A034752 * A122299 A162269 A028322
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Jun 02 2004
EXTENSIONS
Corrected and extended by Robert G. Wilson v, Jun 05 2004
Edited by N. J. A. Sloane, Jun 07 2004
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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)