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!)
A137934 Period 6: 2,2,2,2,2,0. 0

%I #14 Dec 12 2023 08:42:42

%S 2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,

%T 2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,

%U 2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0,2,2,2,2,2,0

%N Period 6: 2,2,2,2,2,0.

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

%F a(n) = lcm(gcd(n mod 2, n mod 3), 2).

%F From _R. J. Mathar_, Mar 06 2008: (Start)

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

%F a(n) = 2*A097325(n). (End)

%o (PARI) a(n)=if(n%6,2,0) \\ _Charles R Greathouse IV_, Jul 13 2016

%K nonn,easy

%O 1,1

%A _William A. Tedeschi_, Feb 29 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 March 28 05:39 EDT 2024. Contains 371235 sequences. (Running on oeis4.)