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!)
A131300 a(n) = 3*a(n-1) - 2*a(n-2) - a(n-3) + a(n-4) with n>3, a(0)=1, a(1)=2, a(2)=3, a(3)=7. 4
1, 2, 3, 7, 14, 27, 49, 86, 147, 247, 410, 675, 1105, 1802, 2931, 4759, 7718, 12507, 20257, 32798, 53091, 85927, 139058, 225027, 364129, 589202, 953379, 1542631, 2496062, 4038747, 6534865, 10573670, 17108595, 27682327, 44790986, 72473379, 117264433, 189737882 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Row sums of A131299 and A131301.
a(n)/a(n-1) tends to phi.
LINKS
FORMULA
G.f.: (1-x-x^2+3*x^3)/((1-x-x^2)*(1-x)^2). [Bruno Berselli, May 03 2012]
a(n) = (3*A131269(n)-n-1))/2 = 3*((1+sqrt(5))^(n+2)-(1-sqrt(5))^(n+2))/(2^(n+2)*sqrt(5))-2*(n+1). [Bruno Berselli, May 03 2012]
a(n) = 3*A000045(n+2)-2*(n+1). - R. J. Mathar, Mar 24 2018
EXAMPLE
a(4) = 14 = (1 + 1 + 7 + 4 + 1).
MAPLE
seq(add(3*binomial(floor((n+k)/2), k)-2, k=0..n), n=0..50); # Nathaniel Johnston, Jun 29 2011
MATHEMATICA
LinearRecurrence[{3, -2, -1, 1}, {1, 2, 3, 7}, 38] (* Bruno Berselli, May 03 2012 *)
PROG
Contribution from Bruno Berselli, May 03 2012: (Start)
(PARI) Vec((1-x-x^2+3*x^3)/((1-x-x^2)*(1-x)^2)+O(x^38))
(Magma) /* By first comment: */ [&+[3*Binomial(n-Floor((k+1)/2), Floor(k/2))-2: k in [0..n]]: n in [0..37]];
(Maxima) makelist(expand(3*((1+sqrt(5))^(n+2)-(1-sqrt(5))^(n+2))/(2^(n+2)*sqrt(5))-2*(n+1)), n, 0, 37); (End)
CROSSREFS
Sequence in context: A300569 A054194 A138651 * A333342 A078043 A294627
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Jun 27 2007
EXTENSIONS
Terms after a(9) from Nathaniel Johnston, Jun 29 2011
New definition from Bruno Berselli, May 03 2012
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 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)