OFFSET
0,5
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
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
KEYWORD
sign
AUTHOR
Rémy Sigrist, Apr 27 2023
STATUS
approved