The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A227912 Sum of all k from {1,...,n} such that the fractional part of n/k is contained in the closed interval [1/4, 3/4]. 1
0, 0, 2, 3, 9, 4, 14, 14, 19, 28, 24, 29, 41, 51, 54, 49, 67, 74, 89, 87, 99, 110, 120, 125, 142, 154, 169, 178, 180, 211, 197, 223, 262, 261, 285, 270, 299, 323, 342, 371, 359, 374, 422, 434, 477, 454, 478, 493, 538, 566, 555, 628, 606, 663, 666, 676, 716 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
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
Cf. A227913.
Sequence in context: A089206 A329568 A249824 * A229212 A210586 A202017
KEYWORD
nonn
AUTHOR
Jon Perry, Oct 13 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 8 17:47 EDT 2024. Contains 373226 sequences. (Running on oeis4.)