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!)
A027947 a(n) = Sum_{k=m..n} T(k,n-k), where m = floor((n+1)/2); a(n) is the n-th diagonal-sum of left justified array T given by A027935. 1

%I #14 Sep 08 2022 08:44:49

%S 1,1,2,3,4,7,9,15,21,32,48,70,107,156,236,349,521,778,1155,1728,2567,

%T 3833,5707,8505,12680,18884,28158,41943,62520,93160,138825,206897,

%U 308290,459459,684652,1020311,1520473,2265815,3376605

%N a(n) = Sum_{k=m..n} T(k,n-k), where m = floor((n+1)/2); a(n) is the n-th diagonal-sum of left justified array T given by A027935.

%H G. C. Greubel, <a href="/A027947/b027947.txt">Table of n, a(n) for n = 0..1000</a>

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

%F G.f.: (1 + x)/(1 - 2*x^2 - x^3 + x^4).

%p seq(coeff(series((1+x)/(1-2*x^2-x^3+x^4), x, n+1), x, n), n = 0..40); # _G. C. Greubel_, Sep 29 2019

%t LinearRecurrence[{0,2,1,-1}, {1,1,2,3}, 40] (* _G. C. Greubel_, Sep 29 2019 *)

%o (PARI) my(x='x+O('x^40)); Vec((1+x)/(1-2*x^2-x^3+x^4)) \\ _G. C. Greubel_, Sep 29 2019

%o (Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( (1+x)/(1-2*x^2-x^3+x^4) )); // _G. C. Greubel_, Sep 29 2019

%o (Sage)

%o def A027947_list(prec):

%o P.<x> = PowerSeriesRing(ZZ, prec)

%o return P((1+x)/(1-2*x^2-x^3+x^4)).list()

%o A027947_list(40) # _G. C. Greubel_, Sep 29 2019

%o (GAP) a:=[1,1,2,3];; for n in [5..40] do a[n]:=2*a[n-2]+a[n-3]-a[n-4]; od; a; # _G. C. Greubel_, Sep 29 2019

%Y Cf. A027935.

%K nonn

%O 0,3

%A _Clark Kimberling_

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 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)