PROG
(MAGMAMagma) I:=[0, 1, 3, 6, 10, 10]; [n le 6 select I[n] else Self(n-1) + Self(n-5) - Self(n-6): n in [1..71]]; // G. C. Greubel, Aug 31 2019
Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
(MAGMAMagma) I:=[0, 1, 3, 6, 10, 10]; [n le 6 select I[n] else Self(n-1) + Self(n-5) - Self(n-6): n in [1..71]]; // G. C. Greubel, Aug 31 2019
reviewed
approved
proposed
reviewed
editing
proposed
a(n) = 1/2 ( (n mod 5)^2 - 3*(n mod 5) +4n 4*n) /2. _- _Ammar Khatab_, Aug 13 2020
proposed
editing
editing
proposed
a(n) = 1/2 ( (n mod 5)^2 -3(n mod 5)+4n) . Ammar Khatab, Aug 13 2020
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed