cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A360480 a(n) = number of numbers k < n, with gcd(k, n) > 1, such that there is at least one prime divisor p | k that does not divide n, and at least one prime divisor q | n that does not divide k.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 3, 3, 0, 0, 3, 0, 5, 5, 6, 0, 6, 0, 8, 0, 9, 0, 5, 0, 0, 8, 11, 7, 10, 0, 13, 10, 13, 0, 12, 0, 16, 13, 17, 0, 16, 0, 18, 14, 20, 0, 19, 11, 21, 16, 23, 0, 19, 0, 25, 19, 0, 13, 25, 0, 27, 20, 27, 0, 27, 0, 30, 25, 31, 13, 32, 0, 32, 0, 34, 0, 33, 17, 36, 25, 37
Offset: 1

Views

Author

Michael De Vlieger, Feb 28 2023

Keywords

Comments

a(n) = 0 for prime powers, since the definition implies omega(n) >= 2.
a(n) is the cardinality of k in the cototient of n such that rad(k) mod rad(n) != 0 and rad(n) mod rad(k) != 0.

Examples

			a(6) = 0 since k = 1..5 are prime powers.
a(10) = 1 since only k = 6 is such that p = 3, q = 5, but gcd(6, 10) = 2.
a(14) = 3 since for k = 6, we have p = 3, q = 7, for k = 10, we have p = 5, q = 7, and for k = 12, we have the same situation as we have with 6, while 6, 10, 12, and 14 are even.
Table listing k <= n counted by row n = 10..22 of this sequence:
a(10) = 1:  6  .  .  .  .
a(11) = 0:  .  .  .  .  .  .
a(12) = 1:  .  .  .  .  10 .  .
a(13) = 0:  .  .  .  .  .  .  .  .
a(14) = 3:  6  .  .  .  10 .  12 .  .
a(15) = 3:  6  .  .  .  10 .  12 .  .  .
a(16) = 0:  .  .  .  .  .  .  .  .  .  .  .
a(17) = 0:  .  .  .  .  .  .  .  .  .  .  .  .
a(18) = 3:  .  .  .  .  10 .  .  .  14 15 .  .  .
a(19) = 0:  .  .  .  .  .  .  .  .  .  .  .  .  .  .
a(20) = 5:  6  .  .  .  .  .  12 .  14 15 .  .  18 .  .
a(21) = 5:  6  .  .  .  .  .  12 .  14 15 .  .  18 .  .  .
a(22) = 6:  6  .  .  .  10 .  12 .  14 .  .  .  18 .  20 .  .
		

Crossrefs

Programs

  • Mathematica
    rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; Table[k = rad[n]; Count[Range[n], _?(Nor[CoprimeQ[#1, n], Divisible[#2, k], Divisible[k, #2]] & @@ {#, rad[#]} &)], {n, 88}]

Formula

a(n) <= A243823(n).
a(n) = | { k < n : gcd(k,n) > 1 AND (rad(k)|rad(n) NOR rad(n)|rad(k)) } |.