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!)
A127982 Numbers of the form (n - 1/3)2^(n) - n/2 + 1/4 + (-1)^n/12. 4
1, 6, 20, 57, 147, 360, 850, 1959, 4433, 9894, 21840, 47781, 103759, 223908, 480590, 1026723, 2184525, 4631202, 9786700, 20621985, 43341131, 90876576, 190141770, 397060767, 827675977, 1722460830, 3579139400, 7426714269, 15390299463 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
W. Bosma, Signed bits and fast exponentiation, J. Th. des Nombres de Bordeaux Vol.13, Fasc. 1, 2001.
FORMULA
a(n) = (n - 1/3)2^(n) - n/2 + 1/4 + (-1)^n/12.
G.f.: -x*(3*x^2-x-1)/((1+x)*(2*x-1)^2*(x-1)^2). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 14 2009 [checked and corrected by R. J. Mathar, Sep 16 2009]
MATHEMATICA
Table[(n-1/3)*2^n -n/2 +1/4 +(-1)^n/12, {n, 1, 50}]
LinearRecurrence[{5, -7, -1, 8, -4}, {1, 6, 20, 57, 147}, 50] (* G. C. Greubel, May 08 2018 *)
PROG
(PARI) for(n=1, 50, print1((n-1/3)*2^n -n/2 +1/4 +(-1)^n/12, ", ")) \\ G. C. Greubel, May 08 2018
(Magma) [(n-1/3)*2^n -n/2 +1/4 +(-1)^n/12: n in [1..50]]; // G. C. Greubel, May 08 2018
CROSSREFS
Sequence in context: A048611 A292480 A200528 * A109164 A212689 A027984
KEYWORD
nonn
AUTHOR
Artur Jasinski, Feb 09 2007
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 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)