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!)
A019485 a(n) = 2*a(n-1) + 2*a(n-2) - 3*a(n-3). 0
2, 5, 12, 28, 65, 150, 346, 797, 1836, 4228, 9737, 22422, 51634, 118901, 273804, 630508, 1451921, 3343446, 7699210, 17729549, 40827180, 94015828, 216497369, 498544854, 1148036962, 2643671525, 6087782412, 14018796988, 32282144225, 74338535190, 171184967866 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
REFERENCES
R. K. Guy, personal communication.
LINKS
FORMULA
G.f.: ( 2+x-2*x^2 ) / ( (x-1)*(3*x^2+x-1) ). - R. J. Mathar, Feb 11 2016
MATHEMATICA
LinearRecurrence[{2, 2, -3}, {2, 5, 12}, 50] (* Harvey P. Dale, Jan 19 2021 *)
PROG
(Magma) I:=[2, 5, 12]; [n le 3 select I[n] else 2*Self(n-1) + 2*Self(n-2) - 3*Self(n-3): n in [1..30]]; // Wesley Ivan Hurt, Dec 27 2021
CROSSREFS
Cf. A018914.
Sequence in context: A001410 A258898 A019486 * A018914 A129519 A034943
KEYWORD
nonn,easy
AUTHOR
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 15:42 EDT 2024. Contains 371960 sequences. (Running on oeis4.)