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!)
A075491 Sum of digits of n minus number of divisors of n. 2
0, 0, 1, 1, 3, 2, 5, 4, 6, -3, 0, -3, 2, 1, 2, 2, 6, 3, 8, -4, -1, 0, 3, -2, 4, 4, 5, 4, 9, -5, 2, -1, 2, 3, 4, 0, 8, 7, 8, -4, 3, -2, 5, 2, 3, 6, 9, 2, 10, -1, 2, 1, 6, 1, 6, 3, 8, 9, 12, -6, 5, 4, 3, 3, 7, 4, 11, 8, 11, -1, 6, -3, 8, 7, 6, 7, 10, 7, 14, -2, 4, 6, 9, 0, 9, 10, 11, 8, 15, -3, 6, 5, 8, 9, 10, 3, 14, 11, 12, -8, 0, -5, 2, -3, -2, 3, 6, -3, 8, -6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
FORMULA
a(n)=A007953[n]-A000005[n]
EXAMPLE
a[n]<0, see A075492, n=10, 20, 30, ... a[n]=0, see A057531, primes like 2, 11, 101 a[n]>0, see A075493, majority of primes and others
MATHEMATICA
sud[x_] := Apply[Plus, IntegerDigits[x]] Table[sud[w]-DivisorSigma[0, w], {w, 1, 128}]
f[n_]:=Total[IntegerDigits[n]]-DivisorSigma[0, n]; Array[f, 130] (* Harvey P. Dale, Aug 10 2011 *)
CROSSREFS
Sequence in context: A053087 A316519 A062327 * A326730 A089279 A049820
KEYWORD
base,easy,sign
AUTHOR
Labos Elemer, Sep 26 2002
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 15 18:29 EDT 2024. Contains 372549 sequences. (Running on oeis4.)