login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345036
a(n) = Sum_{k=1..n} (-n)^(floor(n/k) - 1).
4
1, -1, 11, -66, 623, -7743, 117695, -2097676, 43046069, -999989915, 25937439347, -743008621122, 23298084749141, -793714765727191, 29192926036832303, -1152921504875220776, 48661191875256608663, -2185911559727678466189, 104127350297928222613599
OFFSET
1,3
LINKS
FORMULA
a(n) = [x^n] (1/(1 - x)) * Sum_{k>=1} x^k * (1 - x^k)/(1 + n*x^k).
MATHEMATICA
a[n_] := Sum[(-n)^(Floor[n/k] - 1), {k, 1, n}]; Array[a, 20] (* Amiram Eldar, Jun 06 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, (-n)^(n\k-1));
CROSSREFS
Diagonal of A345033.
Sequence in context: A316110 A030115 A091929 * A244304 A058883 A141969
KEYWORD
sign
AUTHOR
Seiichi Manyama, Jun 06 2021
STATUS
approved