OFFSET
1,2
FORMULA
Conjecture: Let f(a,b)=1, if (a+b) mod |a-b| != (a mod |a-b|)+(b mod |a-b|), and 0 otherwise. a(n) = Sum_{k=1..n-1} 1-f(n,k). - Benedict W. J. Irwin, Sep 22 2016
EXAMPLE
[4/1+1]-[4/1+1/2] + [4/2+1]-[4/2+1/2] + [4/3+1]-[4/3+1/2] + [4/4+1]-[4/4+1/2] = 1+1+1+1 = 4.
MATHEMATICA
Table[Sum[Floor[n/k + 1] - Floor[n/k + 1/2], {k, n}], {n, 73}] (* Michael De Vlieger, Sep 26 2016 *)
PROG
(PARI) a(n) = sum(k=1, n, floor(n/k + 1)-floor(n/k + 1/2)); \\ Michel Marcus, Sep 24 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Oct 18 2002
EXTENSIONS
Duplicate term at a(44) removed by Benedict W. J. Irwin, Sep 22 2016
STATUS
approved