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!)
A308343 a(n) is the difference between the number of zeros and the number of ones among the first n terms of the Ehrenfeucht-Mycielski sequence A038219. 1
1, 0, 1, 2, 1, 0, 1, 0, 1, 0, -1, -2, -1, 0, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 0, -1, 0, 1, 0, 1, 0, 1, 2, 1, 2, 3, 2, 1, 0, 1, 0, 1, 2, 3, 2, 1, 2, 3, 4, 5, 6, 5, 6, 5, 4, 5, 4, 3, 2, 1, 0, 1, 2, 1, 0, 1, 2, 1, 0, -1, -2, -3, -4, -3, -4, -3, -4, -3, -4, -5, -4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
a(n) = Sum_{k = 1..n} (-1)^A038219(k).
EXAMPLE
The first terms, alongside the numbers of zeros and of ones and A038219(n), are:
n a(n) #0's #1's A038219(n)
-- ---- ---- ---- ----------
1 1 1 0 0
2 0 1 1 1
3 1 2 1 0
4 2 3 1 0
5 1 3 2 1
6 0 3 3 1
7 1 4 3 0
8 0 4 4 1
9 1 5 4 0
10 0 5 5 1
11 -1 5 6 1
12 -2 5 7 1
PROG
(Perl) See Links section.
CROSSREFS
Cf. A038219.
Sequence in context: A085004 A095774 A266874 * A331216 A071993 A317754
KEYWORD
sign
AUTHOR
Rémy Sigrist, May 21 2019
STATUS
approved

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