This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A238825 a(1)..a(4) = 0,0,0,1; thereafter a(n) = a(n-2)+a(n-3)+2*(d(n-3)+d(n-4)) where d(n) = A238824(n). 10

%I

%S 0,0,0,1,2,5,11,27,64,158,387,956,2355,5809,14313,35272,86894,214075,

%T 527368,1299185,3200551,7884653,19424072,47851896,117884841,290413626,

%U 715444487,1762523473,4342040215,10696772780,26351885188,64918818701

%N a(1)..a(4) = 0,0,0,1; thereafter a(n) = a(n-2)+a(n-3)+2*(d(n-3)+d(n-4)) where d(n) = A238824(n).

%H Vincenzo Librandi, <a href="/A238825/b238825.txt">Table of n, a(n) for n = 1..1000</a>

%H V. M. Zhuravlev, <a href="http://www.mccme.ru/free-books/matpros/mph.pdf">Horizontally-convex polyiamonds and their generating functions</a>, Mat. Pros. 17 (2013), 107-129 (in Russian). See the sequence p(n).

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

%F G.f.: x^4*(x-1)*(x^3+x^2-1) / ( 1-3*x+4*x^3-x^4-x^5-3*x^6+x^7 ). - _R. J. Mathar_, Mar 20 2014

%p g:=proc(n) option remember; local t1;

%p t1:=[2,3,6,14,34,84,208,515];

%p if n <= 7 then t1[n] else

%p 3*g(n-1)-4*g(n-3)+g(n-4)+g(n-5)+3*g(n-6)-g(n-7); fi; end proc;

%p [seq(g(n),n=1..32)]; # A238823

%p d:=proc(n) option remember; global g; local t1;

%p t1:=[0,1];

%p if n <= 2 then t1[n] else

%p g(n-1)-2*d(n-1)-d(n-2); fi; end proc;

%p [seq(d(n),n=1..32)]; # A238824

%p p:=proc(n) option remember; global d; local t1;

%p t1:=[0,0,0,1];

%p if n <= 4 then t1[n] else

%p p(n-2)+p(n-3)+2*(d(n-3)+d(n-4)); fi; end proc;

%p [seq(p(n),n=1..32)]; # A238825

%t CoefficientList[Series[x^3 (x - 1) (x^3 + x^2 - 1)/(1 - 3 x + 4 x^3 - x^4 - x^5 - 3 x^6 + x^7), {x, 0, 40}], x] (* _Vincenzo Librandi_, Mar 21 2014 *)

%o (MAGMA) m:=40; R<x>:=LaurentSeriesRing(RationalField(), m); [0,0,0] cat Coefficients(R! x^4*(x-1)*(x^3+x^2-1) / ( 1-3*x+4*x^3-x^4-x^5-3*x^6+x^7)); // _Vincenzo Librandi_, Mar 21 2014

%K nonn,easy

%O 1,5

%A _N. J. A. Sloane_, Mar 08 2014

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

Last modified September 16 02:16 EDT 2019. Contains 327088 sequences. (Running on oeis4.)