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!)
A155212 a(n) = (n^2 + 9*n + 4)/2. 5
2, 7, 13, 20, 28, 37, 47, 58, 70, 83, 97, 112, 128, 145, 163, 182, 202, 223, 245, 268, 292, 317, 343, 370, 398, 427, 457, 488, 520, 553, 587, 622, 658, 695, 733, 772, 812, 853, 895, 938, 982, 1027, 1073, 1120, 1168, 1217, 1267, 1318, 1370, 1423, 1477, 1532 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
G.f.: ( -2 - x + 2*x^2 )/(x - 1)^3 . - R. J. Mathar, Mar 23 2011
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Feb 26 2012
Sum_{n>=0} 1/a(n) = 271/280 + 2*Pi*tan(sqrt(65)*Pi/2)/sqrt(65). - Amiram Eldar, Dec 13 2022
MATHEMATICA
Table[(n^2 + 9 n + 4)/2, {n, 0, 200}] (* Vladimir Joseph Stephan Orlovsky, Jun 12 2011 *)
LinearRecurrence[{3, -3, 1}, {2, 7, 13}, 60] (* Harvey P. Dale, Aug 11 2014 *)
PROG
(Magma) I:=[2, 7, 13]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..40]]; // Vincenzo Librandi, Feb 26 2012
(PARI) for(n=0, 60, print1((n^2+9*n+4)/2", ")); \\ Vincenzo Librandi, Feb 26 2012
CROSSREFS
Cf. A000217.
Sequence in context: A344959 A295397 A329817 * A346870 A106675 A022946
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 22 2009
EXTENSIONS
Edited by Jon E. Schoenfield, Jun 23 2010
a(0)=2 from Vincenzo Librandi, Mar 22 2011
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 29 22:06 EDT 2024. Contains 372114 sequences. (Running on oeis4.)