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!)
A320933 a(n) = 2^n - floor((n+3)/2). 2

%I #39 Sep 08 2022 08:46:23

%S 0,0,2,5,13,28,60,123,251,506,1018,2041,4089,8184,16376,32759,65527,

%T 131062,262134,524277,1048565,2097140,4194292,8388595,16777203,

%U 33554418,67108850,134217713,268435441,536870896

%N a(n) = 2^n - floor((n+3)/2).

%C The sequence 0, 0, a(n) is an autosequence of the second kind. The difference table is:

%C 0, 0, 0, 0, 2, 5, 13, ...

%C 0, 0, 0, 2, 3, 8, 15, ...

%C 0, 0, 2, 1, 5, 7, 17, ...

%C 0, 2, -1, 4, 2, 10, 14, ...

%C 2, -3, 5, -2, 8, 4, 20, ...

%C -5, 8, -7, 10, -4, 16, 8, ...

%C 13, -15, 17, -14, 20, -8, 32, ...

%C etc.

%H Colin Barker, <a href="/A320933/b320933.txt">Table of n, a(n) for n = 0..1000</a>

%H OEIS Wiki, <a href="https://oeis.org/wiki/Autosequence">Autosequence</a>

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (3,-1,-3,2).

%F a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + a(n-4).

%F a(n+1) = a(n) + A166920(n).

%F a(n+4) - a(n) = 13, 28, 58, 118, ... = 15*2^n - 2 = A060182(n+2).

%F With b(n) = 0, 0, 0, A011377(n) = 0, 0, 0, 1, 3, 8, 18, ..., then a(n) = 2*b(n+1) - b(n).

%F a(n+2) - 2*a(n+1) + a(n) = A014551(n).

%F G.f.: x^2*(2 - x)/((1-x)^2*(1 - x - 2*x^2)). - _Stefano Spezia_, Oct 28 2018

%F a(n) = ((-1)^n + 2^(n+2) - 2*n - 5) / 4. - _Colin Barker_, Oct 28 2018

%p seq(2^n-floor((n+3)/2),n=0..40); # _Muniru A Asiru_, Oct 28 2018

%t a[n_]:=2^n - Floor[(n+3)/2]; Array[a, 40, 0] (* or *) CoefficientList[ Series[x^2*(2-x)/((1-x)^2*(1-x-2*x^2)), {x, 0, 40}], x] (* _Stefano Spezia_, Oct 28 2018 *)

%o (GAP) List([0..40],n->2^n-Int((n+3)/2)); # _Muniru A Asiru_, Oct 28 2018

%o (PARI) concat([0,0], Vec(x^2*(2-x)/((1-x)^2*(1+x)*(1-2*x)) + O(x^40))) \\ _Colin Barker_, Oct 28 2018

%o (Magma) [((-1)^n+2^(n+2)-2*n-5)/4: n in [0..40]]; // _G. C. Greubel_, Jun 04 2019

%o (Sage) [((-1)^n+2^(n+2)-2*n-5)/4 for n in (0..40)] # _G. C. Greubel_, Jun 04 2019

%Y Cf. A000079, A004526, A011377, A014551, A060182, A166920.

%K nonn,easy

%O 0,3

%A _Paul Curtz_, Oct 28 2018

%E Three terms corrected by _Colin Barker_, Oct 28 2018

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 18 04:56 EDT 2024. Contains 371767 sequences. (Running on oeis4.)