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!)
A086665 Difference between sum of divisors of n and integer log of n, i.e., A000203(n) - A001414(n). 0
1, 1, 1, 3, 1, 7, 1, 9, 7, 11, 1, 21, 1, 15, 16, 23, 1, 31, 1, 33, 22, 23, 1, 51, 21, 27, 31, 45, 1, 62, 1, 53, 34, 35, 36, 81, 1, 39, 40, 79, 1, 84, 1, 69, 67, 47, 1, 113, 43, 81, 52, 81, 1, 109, 56, 107, 58, 59, 1, 156 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
EXAMPLE
a(10) = sigma(10) - (2 + 5) = 1 + 2 + 5 + 10 - 7 = 11.
MATHEMATICA
sigma1 = Table[Plus @@ Divisors[n], {n, 100}]; sopfr = Prepend[ Array[ Plus @@ Map[ Times @@ #1 &, FactorInteger[ # ] ] &, 100, 2 ], 0 ]; Table[sigma1[[n]] - sopfr[[n]], {n, 100}] (* Alonso del Arte, Dec 01 2004 *)
PROG
(PARI) sodf(n)=local(x); x=factor(n); sum(i=1, length(x[, 1]), sum(j=1, x[i, 2], x[i, 1])); for(i=1, 60, print1(sigma(i)-sodf(i)", "))
CROSSREFS
Sequence in context: A099749 A210442 A077202 * A273013 A050521 A266724
KEYWORD
nonn
AUTHOR
Jon Perry, Jul 27 2003
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 May 16 16:26 EDT 2024. Contains 372554 sequences. (Running on oeis4.)