OFFSET
1,2
COMMENTS
The Jordan totient function is defined by the formula J_k(n) = n^k * Product{p prime divisor of n} (1-1/p^k). Because of the combinatorial origin of this function, it was originally understood that k must be a natural number. However, the formula still provides usable values for all positive real values of k.
Now define the Jordan cototient function by CoJ_k(n) = n^k - J_k(n). Then it appears that the terms of this sequence are precisely the values of n for which CoJ_k(n) achieves a new record for sufficiently small positive k. This includes 1, 2, 4, and the numbers that are not prime powers (A024619).
LINKS
James C. McMahon, Table of n, a(n) for n = 1..10000
MATHEMATICA
Union[{2, 4}, Select[Range[110], Not@*PrimePowerQ]] (* James C. McMahon, Dec 05 2025 *)
PROG
(Python)
from sympy import primepi, integer_nthroot
def A387335(n):
def f(x): return int(n+1-min(3, y:=x.bit_length())+sum(primepi(integer_nthroot(x, k)[0]) for k in range(1, y)))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Dec 05 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Hal M. Switkay, Nov 30 2025
STATUS
approved
