editing
approved
editing
approved
a(n) = -(1/3)*{(n mod 6)+[(n+1) mod 6]-[(n+3) mod 6]-[(n+4) mod 6]}, with n>=0. - Paolo P. Lava, Jul 18 2007
approved
editing
(MAGMAMagma) I:=[2, 2]; [n le 2 select I[n] else Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Aug 04 2018
reviewed
approved
proposed
reviewed
editing
proposed
G. C. Greubel, <a href="/indexA130772/Recb130772.txt">Index entries Table of n, a(n) for linear recurrences with constant coefficientsn = 0..2500</a>, signature (1,-1).
<a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (1,-1).
(MAGMA) I:=[2, 2]; [n le 2 select I[n] else Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Aug 04 2018
approved
editing
editing
approved
editing
approved