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!)
A078153 a(n) = A051201(n) - A000203(n). 5
0, 0, 0, 0, 2, 0, 5, 0, 6, 3, 10, 0, 15, 7, 9, 8, 22, 4, 24, 9, 21, 19, 32, 0, 35, 26, 30, 17, 44, 11, 52, 24, 41, 37, 45, 12, 66, 46, 52, 22, 71, 27, 80, 43, 52, 60, 85, 14, 89, 56, 79, 56, 101, 39, 89, 52, 94, 86, 117, 15, 122, 90, 85, 73, 118, 62, 139, 84, 116, 72, 145, 36 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
EXAMPLE
n=15: sequence of D1 = {floor(15/j)} = {15,7,5,3,3,2,2,1,1,1,1,1,1,1,1}, Union(D1) = {15,7,5,3,2,1} = divisors(15) and {7,2}, a(15) = (15+7+5+3+2+1) - sigma(15) = 7 + 2 = 9.
MATHEMATICA
Table[Apply[Plus, Union[Table[Floor[w/j], {j, 1, w}]]] -DivisorSigma[1, w], {w, 1, 128}]
PROG
(PARI) a(n)=my(m=(sqrtint(4*n+1)-1)\2); m*(m+1)/2+sum(k=1, n\(m+1), n\k)-sigma(n) \\ Charles R Greathouse IV, Feb 14 2013
CROSSREFS
Sequence in context: A054013 A048050 A329375 * A104035 A340592 A326831
KEYWORD
nonn,look
AUTHOR
Labos Elemer, Nov 27 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 13 08:41 EDT 2024. Contains 372498 sequences. (Running on oeis4.)