(MAGMAMagma) I:=[0, 4, 28, 102, 268]; [n le 5 select I[n] else 5*Self(n-1)-10*Self(n-2)+10*Self(n-3)-5*Self(n-4)+Self(n-5): n in [1..40]]; /* or */ [(n-1)*(n^3+n^2-4*n+4)/2: n in [1..40]]; // Vincenzo Librandi, Apr 30 2013
(MAGMAMagma) I:=[0, 4, 28, 102, 268]; [n le 5 select I[n] else 5*Self(n-1)-10*Self(n-2)+10*Self(n-3)-5*Self(n-4)+Self(n-5): n in [1..40]]; /* or */ [(n-1)*(n^3+n^2-4*n+4)/2: n in [1..40]]; // Vincenzo Librandi, Apr 30 2013
<a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).
V. Kotesovec, <a href="httphttps://web.telecomoeis.czorg/vaclav.kotesovecwikimath.htmUser:Vaclav_Kotesovec">Non-attacking chess pieces</a>, 6ed, p.415
<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).
<a href="/index/Rec#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).
<a href="/Sindx_Rea.htmlindex/Rec#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (5,-10,10,-5,1).
editing
approved
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 4, 28, 102, 268}, 40] (* Harvey P. Dale, Dec 31 2014 *)
approved
editing
editing
approved
Fers is a leaper [1,1].
V. Kotesovec, <a href="http://web.telecom.cz/vaclav.kotesovec/math.htm">Non-attacking chess pieces</a>, 4ed, 6ed, p.233415
approved
editing