OFFSET
1,6
COMMENTS
a(1) = 1, any other choice simply adds a factor to all terms.
Observations: sign of a(n) is -(-1)^n, the subsequences |a(n)| with n = 1, 2 mod 4 and |a(n)| with n = 3, 0 mod 4 both grow at n>5. Both these subsequences seem to share the asymptotics with A003238 (and hence A000123): log(|a(n)|) is approximately proportional to (log(n/log(n)))^2; however, the factor is much less than log(4).
LINKS
Andrey Zabolotskiy, Table of n, a(n) for n = 1..20000
FORMULA
a(1) = 1.
a(n+1) = -Sum_{d|n} a(d) for n>=1.
a(n+1) = Sum_{d|n} |a(d)|*(-1)^(d+n) for n>=1.
From Ilya Gutkovskiy, Apr 29 2019: (Start)
G.f.: x * (1 - Sum_{n>=1} a(n)*x^n/(1 - x^n)).
L.g.f.: log(Product_{n>=1} (1 - x^n)^(a(n)/n)) = Sum_{n>=1} a(n+1)*x^n/n. (End)
EXAMPLE
a(9) = -(a(1)+a(2)+a(4)+a(8)) = -(1-1-1-3) = 4.
PROG
(Python)
a = [1]
for n in range(1, 100):
a.append(-sum(a[d-1] for d in range(1, n+1) if n%d == 0))
print(a)
(PARI) lista(nn) = {my(va = vector(nn)); va[1] = 1; for (n=2, nn, va[n] = -sumdiv(n-1, d, va[d]); ); va; } \\ Michel Marcus, Apr 29 2019
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Andrey Zabolotskiy, Jan 22 2017
STATUS
approved