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!)
A368680 Sum of the numbers k less than n and not dividing n such that n-k is squarefree. 2
0, 0, 2, 3, 9, 9, 17, 21, 27, 31, 42, 42, 59, 60, 72, 86, 100, 108, 124, 121, 143, 152, 178, 189, 211, 214, 243, 238, 278, 280, 314, 332, 341, 358, 392, 409, 444, 448, 479, 501, 545, 540, 599, 593, 640, 664, 716, 739, 772, 810, 824, 833, 905, 934, 971, 990, 1020 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = Sum_{k=1..n} k * mu(n-k)^2 * (ceiling(n/k) - floor(n/k)).
EXAMPLE
a(12) = 42. The numbers less than 12 that do not divide 12 are: {5,7,8,9,10,11} with corresponding values of n-k: {7,5,4,3,2,1} (all of which are squarefree, except 4). Adding the values of k that give squarefree n-k, we have: 5+7+9+10+11 = 42.
MATHEMATICA
Table[Sum[k * MoebiusMu[n - k]^2 (Ceiling[n/k] - Floor[n/k]), {k, n}], {n, 100}]
PROG
(PARI) a(n) = sum(k=1, n-1, if ((n % k) && issquarefree(n-k), k)); \\ Michel Marcus, Jan 03 2024
CROSSREFS
Cf. A008683 (mu), A368677, A368679.
Sequence in context: A337998 A131988 A092593 * A231365 A024816 A196443
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jan 02 2024
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 17 03:33 EDT 2024. Contains 372577 sequences. (Running on oeis4.)