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!)
A271740 a(n) = 3*n^2 - 2*n + 2. 2
2, 3, 10, 23, 42, 67, 98, 135, 178, 227, 282, 343, 410, 483, 562, 647, 738, 835, 938, 1047, 1162, 1283, 1410, 1543, 1682, 1827, 1978, 2135, 2298, 2467, 2642, 2823, 3010, 3203, 3402, 3607, 3818, 4035, 4258, 4487, 4722, 4963, 5210, 5463, 5722, 5987, 6258, 6535, 6818, 7107, 7402, 7703 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
3*a(n) - 5 is a square. - Vincenzo Librandi, Apr 13 2016
LINKS
FORMULA
From Bruno Berselli, Apr 13 2016: (Start)
O.g.f.: (3 + x + 2*x^2)/(1 - x)^3.
E.g.f.: (3 + 7*x + 3*x^2)*exp(x). (End)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>2. - Wesley Ivan Hurt, Apr 13 2016
MAPLE
A271740:=n->3*n^2 - 2*n + 2: seq(A271740(n), n=0..100); # Wesley Ivan Hurt, Apr 13 2016
MATHEMATICA
Table[3 n^2 - 2 n + 2, {n, 0, 50}]
PROG
(PARI) a(n) = 3*n^2 - 2*n + 2; \\ Altug Alkan, Apr 13 2016
(Magma) [3*n^2 - 2*n + 2: n in [0..50]]; // Bruno Berselli, Apr 13 2016
CROSSREFS
Sequence in context: A148058 A148059 A089880 * A130002 A320812 A162034
KEYWORD
nonn,easy
AUTHOR
Ray Chandler, Apr 13 2016
EXTENSIONS
Definition changed so sequence starts one term earlier. Some formulas may need adjusting. - N. J. A. Sloane, Jun 22 2021
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 13:33 EDT 2024. Contains 372114 sequences. (Running on oeis4.)