login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A030110 a(n) = 2^n - n^2 + 1. 1
2, 2, 1, 0, 1, 8, 29, 80, 193, 432, 925, 1928, 3953, 8024, 16189, 32544, 65281, 130784, 261821, 523928, 1048177, 2096712, 4193821, 8388080, 16776641, 33553808, 67108189, 134217000, 268434673, 536870072, 1073740925, 2147482688 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Matthew House, Table of n, a(n) for n = 0..3305

Index entries for linear recurrences with constant coefficients, signature (5,-9,7,-2).

FORMULA

G.f.: (2-8*x+9*x^2-x^3)/((1-2*x)*(1-x)^3).

a(n) = 5*a(n-1) - 9*a(n-2) + 7*a(n-3) - 2*a(n-4). - Matthew House, Jan 15 2017

MAPLE

A030110:=n->2^n-n^2+1: seq(A030110(n), n=0..50); # Wesley Ivan Hurt, Jan 15 2017

MATHEMATICA

f[n_]:=2^n-n^2+1; f[Range[0, 100]] (* Vladimir Joseph Stephan Orlovsky, Feb 19 2011 *)

CROSSREFS

Sequence in context: A125629 A141335 A133624 * A083570 A287407 A153240

Adjacent sequences:  A030107 A030108 A030109 * A030111 A030112 A030113

KEYWORD

nonn,easy

AUTHOR

Steve Gray (stevebg(AT)roadrunner.com)

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified June 24 07:19 EDT 2017. Contains 288697 sequences.