(MAGMAMagma) I:=[1, -1, -1, -2, 1, -1]; [n le 6 select I[n] else -Self(n-6): n in [1..100]]; // Vincenzo Librandi, Jul 22 2015
(MAGMAMagma) I:=[1, -1, -1, -2, 1, -1]; [n le 6 select I[n] else -Self(n-6): n in [1..100]]; // Vincenzo Librandi, Jul 22 2015
proposed
approved
editing
proposed
Antti Karttunen, <a href="/A242073/b242073.txt">Table of n, a(n) for n = 0..11999</a>
approved
editing
<a href="/index/Rec#order_06">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,-1).
proposed
approved
editing
proposed
LinearRecurrence[{0, 0, 0, 0, 0, -1}, {1, -1, -1, -2, 1, -1}, 100] (* Vincenzo Librandi, Jul 22 2015 *)
(MAGMA) I:=[1, -1, -1, -2, 1, -1]; [n le 6 select I[n] else -Self(n-6): n in [1..100]]; // Vincenzo Librandi, Jul 22 2015
proposed
editing
editing
proposed
<a href="/index/Rec#order_06">Index to sequences with linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,-1).
a(n) = ((-1)^(n/2)+(-1)^(3*n/2)+(-1)^((3+n)/6)-(-1)^((3-n)/6)+(-1)^((3-7*n)/6)-(-1)^((3+7*n)/6))/2. - Wesley Ivan Hurt, Jul 21 2015
A242073:=proc(n) option remember;
if n=0 then 1 elif n=1 then -1 elif n=2 then -1 elif n=3 then -2 elif n=4 then 1 elif n=5 then -1 else -A242073(n-6); fi; end: seq(A242073(n), n=0..100); # Wesley Ivan Hurt, Jul 21 2015
Cf. A057079.
sign,easy
approved
editing