Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A362598
a(n) is the number of 0's minus the number of 1's among the first n terms of A362240.
1
0, 1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 3, 2, 1, 0, -1, 0, 1, 2, 3, 2, 3, 2, 3, 2, 1, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 8, 9, 8, 9, 10, 11, 12, 11, 10, 9, 10, 9, 8, 7, 8, 7, 6, 5, 4, 3, 4, 5, 6, 5, 6, 7, 8, 9, 8, 9, 10, 9, 10, 11, 10, 9, 10, 9, 10, 11, 10, 9, 8, 7
OFFSET
0,5
LINKS
Rémy Sigrist, Perl program
EXAMPLE
For n = 5: the 5 first terms of A362240 are 0, 1, 0, 0, 1, so a(5) = 3 - 2 = 1.
PROG
(Perl) See Links section.
CROSSREFS
Cf. A362240.
Sequence in context: A037834 A212496 A348295 * A179765 A004074 A245615
KEYWORD
sign
AUTHOR
Rémy Sigrist, Apr 27 2023
STATUS
approved