login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A047226 Numbers that are congruent to {0, 1, 2, 3, 4} mod 6; a(n)=floor(6(n-1)/5). 9

%I #38 Sep 08 2022 08:44:56

%S 0,1,2,3,4,6,7,8,9,10,12,13,14,15,16,18,19,20,21,22,24,25,26,27,28,30,

%T 31,32,33,34,36,37,38,39,40,42,43,44,45,46,48,49,50,51,52,54,55,56,57,

%U 58,60,61,62,63,64,66,67,68,69,70,72,73,74,75,76,78,79

%N Numbers that are congruent to {0, 1, 2, 3, 4} mod 6; a(n)=floor(6(n-1)/5).

%H Vincenzo Librandi, <a href="/A047226/b047226.txt">Table of n, a(n) for n = 1..1000</a>

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

%F G.f.: x^2*(1+x+x^2+x^3+2*x^4) / ( (x^4+x^3+x^2+x+1)*(x-1)^2 ). - _R. J. Mathar_, Oct 08 2011

%F From _Wesley Ivan Hurt_, Sep 17 2015, Jul 16 2013: (Start)

%F a(n) = floor( 6*(n-1)/5 ).

%F a(n) = a(n-1) + a(n-5) - a(n-6) for n>6.

%F a(n) = n - 1 + floor((n-1)/5). (End)

%F Sum_{n>=2} (-1)^n/a(n) = (9-4*sqrt(3))*Pi/36 + log(2+sqrt(3))/(2*sqrt(3)) + log(2)/6. - _Amiram Eldar_, Dec 17 2021

%p A047226 := proc(n)

%p option remember;

%p if n <= 6 then

%p op(n,[0,1,2,3,4,6]) ;

%p else

%p procname(n-1)+procname(n-5)-procname(n-6) ;

%p end if;

%p end proc: # _R. J. Mathar_, Jul 25 2013

%t Select[Range[0, 100], MemberQ[{0, 1, 2, 3, 4}, Mod[#, 6]]&] (* _Vincenzo Librandi_, Jan 06 2013 *)

%o (Magma) [n: n in [0..100] | n mod 6 in [0..4]]; // _Vincenzo Librandi_, Jan 06 2013

%Y Cf. A032766, A004773, A001068, this, A047368, A004777, A248375.

%K nonn,easy

%O 1,3

%A _N. J. A. Sloane_

%E Explicit formula added to definition by _M. F. Hasler_, Oct 05 2014

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)