OFFSET
1,2
COMMENTS
a(895) = -5.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..5000
EXAMPLE
a(3) = [3/1] - [(3/3)^2] = 3 - 1 = 2.
a(4) = [4/1] - [(4/3)^2] = 4 - 1 = 3.
a(5) = [5/1] - [(5/3)^2] + [(5/5)^3] = 5 - 2 + 1 = 4.
MATHEMATICA
a[n_] := Sum[(-1)^(k+1) * Floor[(n/(2*k-1))^k], {k, 1, n}]; Array[a, 100] (* Amiram Eldar, Dec 21 2021 *)
PROG
(PARI) a(n) = sum(k=1, (n+1)\2, (-1)^(k+1)*(n^k\(2*k-1)^k));
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Dec 21 2021
STATUS
approved