The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A117904 Number triangle [k<=n]*0^abs(L(C(n,2)/3) - L(C(k,2)/3)) where L(j/p) is the Legendre symbol of j and p. 5

%I #8 Oct 21 2021 01:30:14

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

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

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

%N Number triangle [k<=n]*0^abs(L(C(n,2)/3) - L(C(k,2)/3)) where L(j/p) is the Legendre symbol of j and p.

%C Row sums are A009947(n+2).

%C Diagonal sums are A117905.

%C Inverse is A117906.

%C Equals A117898 mod 2.

%H G. C. Greubel, <a href="/A117904/b117904.txt">Rows n = 0..50 of the triangle, flattened</a>

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

%F T(n, k) = [k<=n] * 2^abs(L(C(n,2)/3) - L(C(k,2)/3)) mod 2.

%e Triangle begins

%e 1;

%e 1, 1;

%e 0, 0, 1;

%e 1, 1, 0, 1;

%e 1, 1, 0, 1, 1;

%e 0, 0, 1, 0, 0, 1;

%e 1, 1, 0, 1, 1, 0, 1;

%e 1, 1, 0, 1, 1, 0, 1, 1;

%e 0, 0, 1, 0, 0, 1, 0, 0, 1;

%e 1, 1, 0, 1, 1, 0, 1, 1, 0, 1;

%e 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1;

%t T[n_, k_]:= If[Abs[JacobiSymbol[Binomial[n, 2], 3] - JacobiSymbol[Binomial[k, 2], 3]]==0, 1, 0];

%t Table[T[n, k], {n,0,12}, {k,0,n}]//Flatten (* _G. C. Greubel_, Oct 20 2021 *)

%o (Sage)

%o def A117904(n,k): return 1 if abs(jacobi_symbol(binomial(n,2), 3) - jacobi_symbol(binomial(k,2), 3))==0 else 0

%o flatten([[A117904(n,k) for k in (0..n)] for n in (0..12)]) # _G. C. Greubel_, Oct 20 2021

%Y Cf. A009947, A117898, A117905, A117906.

%K easy,nonn,tabl

%O 0,1

%A _Paul Barry_, Apr 01 2006

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 June 6 00:30 EDT 2024. Contains 373110 sequences. (Running on oeis4.)