OFFSET
0,4
LINKS
John Tyler Rascoe, Table of n, a(n) for n = 0..10000
MATHEMATICA
Table[Sum[(-1)^(n-Floor[n/k] ) Floor[n/k], {k, n}], {n, 0, 80}] (* Harvey P. Dale, May 01 2018 *)
PROG
(PARI) a(n)=sum(k=1, n, (-1)^(n-n\k)*(n\k))
(Python)
from math import floor
def A190613(n):
z = 0
for k in range(1, n+1):
x = floor(n/k)
y = ((-1)**(n-x))*x
z += y
return(z) # John Tyler Rascoe, Feb 19 2023
CROSSREFS
KEYWORD
sign,look
AUTHOR
Franklin T. Adams-Watters, May 14 2011
STATUS
approved