OFFSET
1,3
EXAMPLE
a(6) = 4, only k = 4 satisfies the condition frac(6/k) is an element of [1/4, 3/4].
PROG
(JavaScript)
for (i=1; i<50; i++) {
c=0;
for (j=1; j<=i; j++) {
v=Math.floor(i/j);
if (i/j-v>=0.25 && i/j-v<=0.75) c+=j;
}
document.write(c+", ");
;
}
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Oct 13 2013
STATUS
approved