login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079667 (1/2)*Sum_{d divides n} abs(n/d-d). 4
0, 1, 2, 3, 4, 6, 6, 9, 8, 12, 10, 16, 12, 18, 16, 21, 16, 27, 18, 28, 24, 30, 22, 40, 24, 36, 32, 42, 28, 50, 30, 49, 40, 48, 36, 65, 36, 54, 48, 66, 40, 72, 42, 70, 60, 66, 46, 92, 48, 77, 64, 84, 52, 96, 60, 92, 72, 84, 58, 126, 60, 90, 82, 105, 72, 120, 66, 112, 88, 114, 70 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

Also, Sum{i|n, sqrt(n) < i <= n} i - Sumi|n, {1 <= i <sqrt(n)} i.

REFERENCES

H. J. S. Smith, Report on the Theory of Numbers, reprinted in Vol. 1 of his Collected Math. Papers, Chelsea, NY, 1979, see p. 323.

FORMULA

a(n) = A070038(n)-A066839(n).

G.f.: Sum_{k>0} x^(k^2+k)/(1-x^k)^2 . - Michael Somos Nov 19 2005

PROG

(PARI) a(n)=if(n<2, 0, sumdiv(n, d, abs(n/d-d))/2) /* Michael Somos Nov 19 2005 */

CROSSREFS

Cf. A060866, A116589.

Sequence in context: A094871 A157450 A195013 * A073061 A006874 A034890

Adjacent sequences:  A079664 A079665 A079666 * A079668 A079669 A079670

KEYWORD

easy,nonn

AUTHOR

Vladeta Jovovic (vladeta(AT)eunet.rs), Jan 25 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 18:47 EST 2012. Contains 205663 sequences.