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!)
A176314 Sum of remainders of mod(n, k), for 1 <= k <= sqrt(n). 1
0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 3, 0, 2, 2, 1, 1, 4, 2, 5, 2, 2, 3, 6, 0, 3, 5, 6, 4, 8, 2, 6, 4, 5, 7, 6, 1, 6, 9, 11, 5, 10, 4, 9, 8, 5, 8, 13, 3, 8, 7, 10, 10, 16, 11, 12, 5, 8, 12, 18, 4, 10, 14, 10, 10, 12, 8, 15, 16, 20, 13, 20, 4, 11, 16, 15, 16, 16, 12, 19, 7, 11, 17, 25, 11, 14, 20, 25 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,11
COMMENTS
It appears, as one would expect, that a(n) is asymptotically 1/4 n.
24 is the last n for which a(n) = 0.
LINKS
FORMULA
a(n+1) = a(n) + floor(sqrt(n)) - A070039(n+1).
MATHEMATICA
Total/@Table[Mod[n, k], {n, 90}, {k, Sqrt[n]}] (* Harvey P. Dale, Nov 20 2013 *)
PROG
(PARI) a(n) = sum(k=2, sqrtint(n), n%k)
CROSSREFS
Sequence in context: A331422 A279631 A102003 * A004587 A104609 A326395
KEYWORD
nonn
AUTHOR
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 April 23 14:32 EDT 2024. Contains 371914 sequences. (Running on oeis4.)