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!)
A191821 a(n) = n*(2^n - n + 1) + 2^(n-1)*(n^2 - 3*n + 2). 1
2, 6, 26, 100, 332, 994, 2774, 7368, 18872, 47014, 114578, 274300, 647012, 1507146, 3473198, 7929616, 17956592, 40369870, 90177194, 200277636, 442498652, 973078066, 2130705926, 4647288280, 10099883432, 21877489014, 47244639554, 101737037068 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Conjecture: generating function = -((2 (-1+6 x-19 x^2+31 x^3-22 x^4+4 x^5))/(1-3 x+2 x^2)^3) - Harvey P. Dale, May 10 2021
LINKS
FORMULA
G.f.: -2*x*(-1 + 6*x - 19*x^2 + 31*x^3 - 22*x^4 + 4*x^5) / ( (2*x-1)^3*(x-1)^3 ). - R. J. Mathar, Aug 26 2011
MATHEMATICA
LinearRecurrence[{9, -33, 63, -66, 36, -8}, {2, 6, 26, 100, 332, 994}, 50] (* Vincenzo Librandi, Nov 25 2011 *)
Table[n(2^n-n+1)+2^(n-1) (n^2-3n+2), {n, 30}] (* Harvey P. Dale, May 10 2021 *)
PROG
(PARI) a(n)=(n^2-n+2)<<(n-1)-n*(n-1) \\ Charles R Greathouse IV, Jul 13 2011
(Magma) [n*(2^n-n+1)+2^(n-1)*(n^2-3*n+2): n in [1..40]]; // Vincenzo Librandi, Nov 25 2011
CROSSREFS
Sequence in context: A027231 A083845 A027239 * A290958 A323265 A285024
KEYWORD
nonn,easy
AUTHOR
Adeniji, Adenike, Jun 17 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 23 11:27 EDT 2024. Contains 371913 sequences. (Running on oeis4.)