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!)
A110269 n mod 2 + n mod 3. 3

%I #12 Jun 02 2019 13:30:01

%S 0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,

%T 1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,

%U 2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2,1,1,3,0,2,2

%N n mod 2 + n mod 3.

%H Harvey P. Dale, <a href="/A110269/b110269.txt">Table of n, a(n) for n = 0..1000</a>

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

%F a(n) = A000035(n) + A010872(n).

%F G.f.: -x*(2+4*x+3*x^2) / ( (x-1)*(1+x)*(1+x+x^2) ). - _R. J. Mathar_, Mar 06 2014

%t Table[Mod[n,2]+Mod[n,3],{n,0,120}] (* or *) LinearRecurrence[{-1,0,1,1},{0,2,2,1},120] (* or *) PadRight[{},120,{0,2,2,1,1,3}] (* _Harvey P. Dale_, Jun 02 2019 *)

%Y Cf. A110270.

%K nonn,easy

%O 0,2

%A _Reinhard Zumkeller_, Jul 18 2005

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 13:04 EDT 2024. Contains 371913 sequences. (Running on oeis4.)