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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A127985 Numbers of the form (n/3 + 4/9)*2^(n) - 1/2 + (-1)^n/18. 1
1, 4, 11, 28, 67, 156, 355, 796, 1763, 3868, 8419, 18204, 39139, 83740, 178403, 378652, 800995, 1689372, 3553507, 7456540, 15612131, 32622364, 68040931, 141674268, 294533347, 611436316, 1267611875, 2624702236, 5428361443 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

Wieb Bosma, Signed bits and fast exponentiation, J. Th. des Nombres de Bordeaux, vol. 13, fasc. 1, pp. 27-41, 2001.

FORMULA

a(n) = (n/3 + 4/9)*2^(n) - 1/2 + (-1)^n/18

a(0)=1, a(1)=4, a(2)=11, a(3)=28, a(n)=4*a(n-1)-3*a(n-2)-4*a(n-3)+4*a(n-4) [From Harvey P. Dale, May 15 2011]

G.f.: x*(1-2*x^2)/((1-2*x)^2*(1-x^2)) [From Harvey P. Dale, May 15 2011]

MATHEMATICA

Table[(n/3 + 4/9)2^(n) - 1/2 + (-1)^n/18, {n, 1, 50}] (* Artur Jasinski *)

LinearRecurrence[{4, -3, -4, 4}, {1, 4, 11, 28}, 50] (* From Harvey P. Dale, May 15 2011 *)

PROG

(MAGMA) [(n/3 + 4/9)*2^(n) - 1/2 + (-1)^n/18: n in [1..40]]; // Vincenzo Librandi, May 26 2011

CROSSREFS

Cf. A073371, A127976, A127978, A127979, A127980, A127981, A127982, A127983, A127984, A073371, A000337.

Sequence in context: A056601 A003230 A099326 * A005409 A020964 A113067

Adjacent sequences:  A127982 A127983 A127984 * A127986 A127987 A127988

KEYWORD

nonn

AUTHOR

Artur Jasinski (grafix(AT)csl.pl), Feb 09 2007

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

Content is available under The OEIS End-User License Agreement .

Last modified February 14 14:47 EST 2012. Contains 205623 sequences.