OFFSET
1,1
COMMENTS
In groups of four, add the odd and even numbers (4=1+3, 6=2+4; 12=5+7, 14=6+8; etc.). - George E. Antoniou, Dec 12 2001
The first 250 terms (4 through 998) are the 250 non-occurring Fibonacci number residues modulo 1000; i.e., if leading zeros are supplied as necessary for the terms having fewer than three digits, these are the 250 sets of three digits that never appear as the last three digits of a Fibonacci number. - Jon E. Schoenfield, Jul 05 2010
LINKS
FORMULA
a(n) = A042964(n)*2.
a(n) = (4*n - 1 - (-1)^n). - Jon E. Schoenfield, Jul 05 2010
a(n) = 8*n - a(n-1) - 6 (with a(1)=4). - Vincenzo Librandi, Aug 05 2010
G.f. 2*x*(2+x+x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Oct 08 2011
From Wesley Ivan Hurt, May 18 2013: (Start)
a(n) = (8 * ceiling(n/2) - 4) * (n mod 2) + (8 * ceiling(n/2) - 2) * (n+1 mod 2).
a(n) = 8 * ceiling(n/2) - 3 + (-1)^n. (End)
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi/16 - log(2)/8. - Amiram Eldar, Dec 19 2021
EXAMPLE
a(2) = 8*2 - 4 - 6 = 6;
a(3) = 8*3 - 6 - 6 = 12;
a(4) = 8*4 - 12 - 6 = 14.
MATHEMATICA
Select[Range[230], MemberQ[{4, 6}, Mod[#, 8]] &] (* Amiram Eldar, Dec 19 2021 *)
PROG
(PARI) a(n)=4*n-1-(-1)^n \\ Charles R Greathouse IV, May 20 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
editing