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!)
A131737 Essentially even numbers followed by duplicated odd numbers. 3

%I #32 Jan 01 2024 23:49:52

%S 0,1,1,1,2,3,3,4,5,5,6,7,7,8,9,9,10,11,11,12,13,13,14,15,15,16,17,17,

%T 18,19,19,20,21,21,22,23,23,24,25,25,26,27,27,28,29,29,30,31,31,32,33,

%U 33,34,35,35,36,37,37,38,39,39,40,41,41,42,43,43,44,45

%N Essentially even numbers followed by duplicated odd numbers.

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

%F a(0)=0. a(1)=a(2)=1. a(3*n)=A005408(n-1). a(3*n+1)=a(3*n)+1. a(3*n+2)=a(3*n)+2, n>0.

%F O.g.f.: x*(1+x^4)/((1-x)^2*(x^2+x+1)). a(n)=(2*n-2-A057078(n))/3, n>1. - _R. J. Mathar_, Jul 16 2008

%F Euler transform of length 8 sequence [ 1, 0, 1, 1, 0, 0, 0, -1]. - _Michael Somos_, Jan 11 2011

%F 0 = a(n) - a(n+1) - a(n+3) + a(n+4) if n>1. - _Michael Somos_, Nov 11 2015

%F a(n) = floor((2*n-1)/3) for n > 1. - _Werner Schulte_, Feb 27 2019

%e G.f. = x + x^2 + x^3 + 2*x^4 + 3*x^5 + 3*x^6 + 4*x^7 + 5*x^8 + 5*x^9 + 6*x^10 + ...

%p A131737 := proc(n): (1/9)*add(5*(k mod 3)+2*((k+1) mod 3)-((k+2) mod 3),k=0..n)-1+(binomial(2*n,n) mod 2)+(binomial((n+1)^2,n+3) mod 2) end: seq( A131737(n),n=0..74); # _Johannes W. Meijer_, Jun 27 2011

%t Join[{0, 1}, LinearRecurrence[{1, 0, 1, -1}, {1, 1, 2, 3}, 68]] (* _Georg Fischer_, Feb 27 2019 *)

%t Insert[Flatten[Table[If[EvenQ[n],n,{n,n}],{n,0,70}]],1,2] (* _Harvey P. Dale_, Sep 04 2020 *)

%o (PARI) {a(n) = (n==0) + (n==1) + (n\3)*2 + (n%3) - 1}; /* _Michael Somos_, Jan 11 2011 */

%Y Cf. A004396.

%K nonn,easy,less

%O 0,5

%A _Paul Curtz_, Sep 19 2007

%E Edited by _R. J. Mathar_, Jul 16 2008

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 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)