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!)
A339975 a(n) is the number of 0's minus the number of 1's among the first n terms of A337546. 2

%I #18 Jul 19 2021 01:23:25

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

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

%U 2,1,2,1,0,1,0,1,2,1,0,1,0,-1,0,1,0,1,0

%N a(n) is the number of 0's minus the number of 1's among the first n terms of A337546.

%C See A339976 for the positions of 0's.

%H Rémy Sigrist, <a href="/A339975/b339975.txt">Table of n, a(n) for n = 0..10000</a>

%H Rémy Sigrist, <a href="/A339975/a339975.txt">C program for A339975</a>

%F a(n) = Sum_{k = 1..n} (-1)^A337546(n).

%F a(n) = n - 2*Sum_{k = 1..n} A337546(n).

%e For n = 5, the first 5 terms of A337546 are 0, 1, 0, 0, 1, so a(5) = 3 - 2 = 1.

%o (C) See Links section.

%Y Cf. A294448, A337546, A339976.

%K sign

%O 0,5

%A _Rémy Sigrist_, Dec 25 2020

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 July 31 01:37 EDT 2024. Contains 374774 sequences. (Running on oeis4.)