PROG
(MAGMAMagma) [ n: n in [2..234 by 2] | n mod 8 in [2, 4] ]; // Bruno Berselli, May 11 2011
(MAGMAMagma) [ n: n in [2..234 by 2] | n mod 8 in [2, 4] ]; // Bruno Berselli, May 11 2011
reviewed
approved
proposed
reviewed
editing
proposed
Select[Range[250], MemberQ[{2, 4}, Mod[#, 8]] &] (* Amiram Eldar, Dec 18 2021 *)
Cf. A014848.
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi/16 + log(2)/8. - Amiram Eldar, Dec 18 2021
approved
editing
proposed
approved
editing
proposed
a(n) = 8*n - a(n-1) - 10, with a(1)=2. - _Vincenzo Librandi, _, Aug 06 2010
Contribution by From _Bruno Berselli, _, May 11 2011: (Start)
(MAGMA) [ n: n in [2..234 by 2] | n mod 8 in [2, 4] ]; // _Bruno Berselli, _, May 11 2011
approved
editing