(MAGMAMagma) I:=[0, 1, 2, 4, 4]; [n le 5 select I[n] else Self(n-1)+Self(n-4)-Self(n-5): n in [1..80]]; // Vincenzo Librandi, Sep 17 2012
(MAGMAMagma) I:=[0, 1, 2, 4, 4]; [n le 5 select I[n] else Self(n-1)+Self(n-4)-Self(n-5): n in [1..80]]; // Vincenzo Librandi, Sep 17 2012
proposed
reviewed
editing
proposed
a(n) = n + 0^((n-3) mod 4) for n>=0. - Karl V. Keller, Jr., Jun 02 2021
(Python) print([n + 0**((n-3)%4) for n in range(80)]) # Karl V. Keller, Jr., Jun 02 2021
proposed
editing
editing
proposed
a(n) = 2*floor((n-1)/2 +1) - 0^((n-13) mod 4) for n>=0. - Karl V. Keller, Jr., Jun 01 02 2021
(Python) print([2*((n-1)//2 +1)- 0**((n-13)%4) for n in range(80)]) # Karl V. Keller, Jr., Jun 01 02 2021
proposed
editing
editing
proposed
editing
proposed