A325144 a(n) = - Sum_{d | n} (-1)^d *a(d) if n != 1, a(1) = 1.
0, 1, 1, 1, 0, 1, 1, 1, 0, 2, 1, 1, 0, 1, 1, 3, 0, 1, 2, 1, 0, 3, 1, 1, 0, 2, 1, 4, 0, 1, 3, 1, 0, 3, 1, 3, 0, 1, 1, 3, 0, 1, 3, 1, 0, 8, 1, 1, 0, 2, 2, 3, 0, 1, 4, 3, 0, 3, 1, 1, 0, 1, 1, 8, 0, 3, 3, 1, 0, 3, 3, 1, 0, 1, 1, 8, 0, 3, 3, 1, 0, 8, 1, 1, 0, 3, 1
Offset: 0
Keywords
Links
- Peter Luschny, Table of n, a(n) for n = 0..10000
Programs
-
Maple
a := proc(n) option remember; `if`(n = 1, 1, -add((-1)^d*a(d), d = numtheory:-divisors(n) minus {n})) end: seq(a(n), n = 0..86);