login

Revision History for A368677

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Number of numbers k less than n and not dividing n such that n-k is squarefree.
(history; published version)
#11 by Peter Luschny at Wed Jan 03 05:34:28 EST 2024
STATUS

reviewed

approved

#10 by Joerg Arndt at Wed Jan 03 02:44:29 EST 2024
STATUS

proposed

reviewed

#9 by Michel Marcus at Wed Jan 03 02:12:51 EST 2024
STATUS

editing

proposed

#8 by Michel Marcus at Wed Jan 03 02:12:48 EST 2024
PROG

(PARI) a(n) = sum(k=1, n-1, (n % k) && issquarefree(n-k)); \\ Michel Marcus, Jan 03 2024

STATUS

approved

editing

#7 by Wesley Ivan Hurt at Tue Jan 02 21:38:41 EST 2024
STATUS

editing

approved

#6 by Wesley Ivan Hurt at Tue Jan 02 21:28:52 EST 2024
EXAMPLE

a(12) = 5. The numbers less than 12 that do not divide 12 are: {5,7,8,9,10,11} with additive complements values of n-k: {7,5,4,3,2,1} (exactly 5 of which are squarefree).

#5 by Wesley Ivan Hurt at Tue Jan 02 21:25:31 EST 2024
NAME

Number of numbers k less than n and not dividing n such that n-k is squarefree.

#4 by Wesley Ivan Hurt at Tue Jan 02 21:20:06 EST 2024
CROSSREFS
#3 by Wesley Ivan Hurt at Tue Jan 02 19:49:42 EST 2024
DATA

0, 0, 1, 1, 3, 2, 4, 4, 5, 5, 6, 5, 8, 7, 8, 9, 11, 10, 12, 10, 12, 12, 14, 13, 16, 15, 16, 14, 17, 16, 18, 18, 18, 19, 20, 19, 23, 22, 23, 22, 26, 23, 27, 25, 27, 28, 29, 28, 30, 31, 30, 29, 32, 31, 33, 32, 33, 33, 35, 32, 37, 36, 37, 38, 39, 37, 40, 38, 40, 40, 43, 41, 45, 44, 45, 44

#2 by Wesley Ivan Hurt at Tue Jan 02 19:49:19 EST 2024
NAME

allocated for Wesley Ivan HurtNumber of numbers k less than n not dividing n such that n-k is squarefree.

DATA

0, 0, 1, 1, 3, 2, 4, 4, 5, 5, 6, 5, 8, 7, 8, 9, 11, 10, 12, 10, 12, 12, 14, 13, 16, 15, 16, 14, 17, 16, 18, 18, 18, 19, 20, 19, 23, 22, 23, 22, 26, 23, 27, 25, 27, 28, 29, 28, 30, 31, 30, 29, 32, 31, 33, 32, 33, 33, 35, 32, 37, 36, 37, 38, 39, 37, 40, 38, 40, 40, 43, 41, 45, 44, 45, 44

OFFSET

1,5

FORMULA

a(n) = Sum_{k=1..n} mu(n-k)^2 * (ceiling(n/k) - floor(n/k)).

EXAMPLE

a(12) = 5. The numbers less than 12 that do not divide 12 are: {5,7,8,9,10,11} with additive complements {7,5,4,3,2,1} (exactly 5 of which are squarefree).

MATHEMATICA

Table[Sum[MoebiusMu[n - k]^2 (Ceiling[n/k] - Floor[n/k]), {k, n}], {n, 100}]

CROSSREFS

Cf. A008683 (mu), A368673.

KEYWORD

allocated

nonn,easy

AUTHOR

Wesley Ivan Hurt, Jan 02 2024

STATUS

approved

editing