The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A004773 Numbers congruent to {0, 1, 2} mod 4: a(n) = floor(4*n/3). 29

%I

%S 0,1,2,4,5,6,8,9,10,12,13,14,16,17,18,20,21,22,24,25,26,28,29,30,32,

%T 33,34,36,37,38,40,41,42,44,45,46,48,49,50,52,53,54,56,57,58,60,61,62,

%U 64,65,66,68,69,70,72,73,74,76,77,78,80,81,82,84,85,86,88,89,90

%N Numbers congruent to {0, 1, 2} mod 4: a(n) = floor(4*n/3).

%C The sequence b(n) = floor((4/3)*(n+2)) appears as an upper bound in Fijavz and Wood.

%C Binary expansion does not end in 11.

%H Daniel Starodubtsev, <a href="/A004773/b004773.txt">Table of n, a(n) for n = 0..10000</a>

%H Gasper Fijavz and David R. Wood, <a href="http://arxiv.org/abs/0812.1064">Graph Minors and Minimum Degree</a>, arXiv:0812.1064 [math.CO], 2008.

%H N. Graham and F. Harary, <a href="http://www.maths.tcd.ie/pub/ims/bull21/bull21_8-12.pdf">Edge Sums of Hypercubes</a>, Bull. Irish Math. Soc. 21 (1988), 8-12.

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,1,-1).

%F G.f.: (1+x+2*x^2)/((1-x)*(1-x^3)).

%F a(0) = 0, a(n+1) = a(n) + a(n) mod 4 + 0^(a(n) mod 4). - _Reinhard Zumkeller_, Mar 23 2003

%F a(n) = A004396(n) + A004523(n); complement of A004767. - _Reinhard Zumkeller_, Aug 29 2005

%F a(n) = floor(n/3) + n. - _Gary Detlefs_, Mar 20 2010

%F a(n) = (12*n-3+3*cos(2*n*Pi/3)+sqrt(3)*sin(2*n*Pi/3))/9. - _Wesley Ivan Hurt_, Sep 30 2017

%F E.g.f.: (3*exp(x)*(4*x - 1) + exp(-x/2)*(3*cos((sqrt(3)*x)/2) + sqrt(3)*sin((sqrt(3)*x)/2)))/9. - _Stefano Spezia_, Jun 09 2021

%p seq(floor(n/3)+n,n=0..68); # _Gary Detlefs_, Mar 20 2010

%t f[n_] := Floor[4 n/3]; Array[f, 69, 0] (* _Robert G. Wilson v_, Dec 24 2010 *)

%t fQ[n_] := Mod[n, 4] != 3; Select[ Range[0, 90], fQ] (* _Robert G. Wilson v_, Dec 24 2010 *)

%t a[0] = 0; a[n_] := a[n] = a[n - 1] + 2 - If[ Mod[a[n - 1], 4] < 2, 1, 0]; Array[a, 69, 0] (* _Robert G. Wilson v_, Dec 24 2010 *)

%t CoefficientList[ Series[x (1 + x + 2 x^2)/((1 - x) (1 - x^3)), {x, 0, 68}], x] (* _Robert G. Wilson v_, Dec 24 2010 *)

%o (MAGMA) [n: n in [0..100] | n mod 4 in [0..2]]; // _Vincenzo Librandi_, Dec 23 2010

%o (PARI) a(n)=4*n\3 \\ _Charles R Greathouse IV_, Sep 27 2012

%Y Cf. A032766, this sequence, A001068, A047226, A047368, A004777.

%Y Cf. similar sequences with formula n+i*floor(n/3) listed in A281899.

%Y Cf. A004396, A004523, A004767.

%K nonn,easy

%O 0,3

%A _N. J. A. Sloane_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified July 27 13:22 EDT 2021. Contains 346306 sequences. (Running on oeis4.)