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!)
A120325 Period 6: repeat [0, 0, 1, 0, 1, 0]. 10

%I #63 Dec 03 2022 17:09:45

%S 0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,

%T 1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,

%U 1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0

%N Period 6: repeat [0, 0, 1, 0, 1, 0].

%C Dirichlet series for the principal character mod 6: L(s,chi) = Sum_{n>=1} a(n+3)/n^s = (1 + 1/6^s - 1/2^s - 1/3^s) Riemann-zeta(s), e.g., L(2,chi) = A100044, L(4,chi) = 5*Pi^4/486, L(6,chi) = 91*Pi^6/87480. See Jolley eq (313) and arXiv:1008.2547 L(m=6,r=1,s). - _R. J. Mathar_, Jul 31 2010

%D L. B. W. Jolley, Summation of Series, Dover (1961).

%H Antti Karttunen, <a href="/A120325/b120325.txt">Table of n, a(n) for n = 0..100000</a>

%H R. J. Mathar, <a href="http://arxiv.org/abs/1008.2547">Table of Dirichlet L-Series and Prime Zeta Modulo Functions for Small Moduli</a>, arXiv:1008.2547 [math.NT], 2010-2015.

%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

%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) = (1/3)*(sin(n*Pi/6) + sin(7*n*Pi/6))^2.

%F From _R. J. Mathar_, Nov 22 2008: (Start)

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

%F a(n+6) = a(n). (End)

%F a(n) = ((n+3)*Fibonacci(n+3)) mod 2. - _Gary Detlefs_, Dec 13 2010

%F a(n) = 0 if n mod 6 = 0, otherwise a(n) = n mod 2 + (-1)^n. - _Gary Detlefs_, Dec 13 2010

%F a(n) = (n+3)^2 mod (5+(-1)^n)/2. - _Wesley Ivan Hurt_, Oct 31 2014

%F a(n) = sin(n*Pi/3)^2*(2-4*cos(n*Pi/3))/3. - _Wesley Ivan Hurt_, Jun 19 2016

%F E.g.f.: 2*(cosh(x) - cos(sqrt(3)*x/2)*cosh(x/2))/3. - _Ilya Gutkovskiy_, Jun 20 2016

%F a(n) = sign((n-3) mod 2) * sign((n-3) mod 3). - _Wesley Ivan Hurt_, Feb 04 2022

%F From _Antti Karttunen_, Dec 03 2022: (Start)

%F a(n) = 1 - A093719(n).

%F a(n) = [A276086(n) == 3 (mod 6)], where [ ] is the Iverson bracket.

%F a(n) = A059841(n) - A358841(n) - A358842(n).

%F For n >= 1, a(n) = A059841(n) - A358754(n) - A358755(n).

%F (End)

%e a(0) = (1/3)*(sin(0) + sin(0))^2 = 0.

%e a(1) = (1/3)*(sin(Pi/6) + sin(7*Pi/6))^2 = (1/3)*(1/2 - 1/2)^2 = 0.

%e a(2) = (1/3)*(sin(Pi/3) + sin(7*Pi/3))^2 = (1/3)*((sqrt(3))/2 + (sqrt(3))/2)^2 = 1.

%e a(3) = (1/3)*(sin(Pi/2) + sin(7*Pi/2))^2 = (1/3)*(1 - 1)^2 = 0.

%e a(4) = (1/3)*(sin(2*Pi/3) + sin(14*Pi/3))^2 = (1/3)*((sqrt(3))/2 + (sqrt(3))/2)^2 = 1.

%e a(5) = (1/3)*(sin(5*Pi/6) + sin(35*Pi/6)^2 = (1/3)*(1/2 - 1/2)^2 = 0.

%p P:=proc(n)local i,j; for i from 0 by 1 to n do j:=1/3*(sin(i*Pi/6)+sin(7*i*Pi/6))^2; print(j); od; end: P(20);

%p seq(abs(numtheory[jacobi](n,6)),n=3..150) ; # _R. J. Mathar_, Jul 31 2010

%t Table[Mod[(n + 3)^2, (5 + (-1)^n)/2], {n, 0, 100}] (* _Wesley Ivan Hurt_, Oct 31 2014 *)

%t PadRight[{},120,{0,0,1,0,1,0}] (* _Harvey P. Dale_, Oct 05 2016 *)

%o (Magma) [(n+3)^2 mod (2+((n+1) mod 2)) : n in [0..100]]; // _Wesley Ivan Hurt_, Oct 31 2014

%o (Python)

%o def A120325(n): return int(not (n+3) % 6 & 3 ^ 1) # _Chai Wah Wu_, May 25 2022

%o (PARI) A120325(n) = ((n%3)&&!(n%2)); \\ _Antti Karttunen_, Dec 03 2022

%Y Characteristic function of A047235. One's complement of A093719.

%Y Cf. A100044, A059841, A276086, A358841, A358842, A358754, A358755.

%K easy,nonn

%O 0,1

%A _Paolo P. Lava_ and _Giorgio Balzarotti_, Jun 21 2006

%E Data section extended up to a(120) by _Antti Karttunen_, Dec 03 2022

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 11:31 EDT 2024. Contains 371792 sequences. (Running on oeis4.)