PROG
(MAGMAMagma) [n : n in [0..150] | n mod 7 in [0, 1, 4, 5]]; // Wesley Ivan Hurt, May 24 2016
(MAGMAMagma) [n : n in [0..150] | n mod 7 in [0, 1, 4, 5]]; // Wesley Ivan Hurt, May 24 2016
editing
approved
a[n_] := n + Floor[(n - 1)/2] + Floor[(n - 3)/4];
Table[a[n], {n, 1, 64}] (* Peter Luschny, Dec 23 2021 *)
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
a(n) = (14*n-15-3*i^(2n2*n)+(1-i)*i^(-n)+(1+i)*i^n)/8, where i=sqrt(-1).
proposed
editing
editing
proposed
editing
proposed