OFFSET
1,3
COMMENTS
a(n) is the totient of the product over all unitary divisors d of n; i.e., those divisors satisfying gcd(d, n/d) = 1.
Growth rate of a(n) is ~ n^O(log log n).
Also, a(n) is lower bounded by A000010(n).
FORMULA
MATHEMATICA
f[p_, e_, m_] := (p-1)*p^(e*m-1); a[n_] := Module[{fct = FactorInteger[n]}, Times @@ (f[#1, #2, 2^(Length[fct]-1)] & @@@ fct)]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Jun 11 2025 *)
PROG
(Python)
from sympy import factorint
def a(n):
if n == 1: return 1
factors = factorint(n)
phi, w = 1, len(factors)
for p, e in factors.items():
phi *= (p - 1) * p**(e - 1)
return n**((1 << (w-1)) - 1) * phi
print([a(n) for n in range(1, 58)])
CROSSREFS
KEYWORD
nonn
AUTHOR
Darío Clavijo, Jun 11 2025
STATUS
approved
