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!)
A275858 a(n) = floor(c*r*a(n-1)) - floor(d*s*a(n-2)), where r = (1+sqrt(5))/2, s = r/(r-1), c = 1, d = 1, a(0) = 1, a(1) = 1. 7
1, 1, -1, -4, -4, 4, 17, 17, -17, -72, -72, 72, 305, 305, -305, -1292, -1292, 1292, 5473, 5473, -5473, -23184, -23184, 23184, 98209, 98209, -98209, -416020, -416020, 416020, 1762289, 1762289, -1762289, -7465176, -7465176, 7465176, 31622993, 31622993 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = floor(r*a(n-1)) - floor(s*a(n-2)), where r = (1+sqrt(5))/2, s = r/(r-1).
G.f.: 1/(1 - x + 2*x^2 + x^3 + x^4).
MATHEMATICA
c = 1; d = 1; z = 40;
r = (c + Sqrt[c^2 + 4 d])/2; s = r/(r - 1); a[0] = 1; a[1] = 1;
a[n_] := a[n] = Floor[c*s*a[n - 1]] + Floor[d*r*a[n - 2]];
t = Table[a[n], {n, 0, z}] (* A275856 *)
CoefficientList[Series[1/(1-x+2*x^2+x^3+x^4), {x, 0, 50}], x] (* G. C. Greubel, Feb 08 2018 *)
PROG
(PARI) x='x+O('x^30); Vec(1/(1-x+2*x^2+x^3+x^4)) \\ G. C. Greubel, Feb 08 2018
(Magma) Q:=Rationals(); R<x>:=PowerSeriesRing(Q, 40); Coefficients(R!(1/(1-x+2*x^2+x^3+x^4))) // G. C. Greubel, Feb 08 2018
CROSSREFS
Sequence in context: A231586 A231700 A231746 * A241094 A319257 A131946
KEYWORD
easy,sign
AUTHOR
Clark Kimberling, Aug 12 2016
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 24 09:42 EDT 2024. Contains 371935 sequences. (Running on oeis4.)