OFFSET
0,2
COMMENTS
Per Nørgård's surname is also written as Noergaard.
Not squarefree in contrast to A004718, first repetition of order 3: a(32) = a(33) = a(34) = -1, see link.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Yu Hin (Gary) Au, Christopher Drexler-Lemire, and Jeffrey Shallit, Notes and note pairs in Norgard's infinity series, J. of Mathematics and Music (2017).
Christopher Drexler-Lemire and Jeffrey Shallit, Notes and Note-Pairs in Noergaard's Infinity Series, arXiv:1402.3091 [math.CO], 2014, page 13.
PROG
(Haskell)
a256184 n = a256184_list !! n
a256184_list = 0 : concat (transpose [map (subtract 2) a256184_list,
map (subtract 1) a256184_list,
map negate $ tail a256184_list])
(Python)
from functools import lru_cache
@lru_cache(maxsize=None)
def a(n): return 0 if n == 0 else (a(n//3) - (3-n%3)) if n%3 else -a(n//3)
print([a(n) for n in range(72)]) # Michael S. Branicky, Sep 02 2021
CROSSREFS
KEYWORD
sign
AUTHOR
Reinhard Zumkeller, Mar 19 2015
STATUS
approved