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!)
A364932 a(n) = phi(psi(n)). 1
1, 2, 2, 2, 2, 4, 4, 4, 4, 6, 4, 8, 6, 8, 8, 8, 6, 12, 8, 12, 16, 12, 8, 16, 8, 12, 12, 16, 8, 24, 16, 16, 16, 18, 16, 24, 18, 16, 24, 24, 12, 32, 20, 24, 24, 24, 16, 32, 24, 24, 24, 24, 18, 36, 24, 32, 32, 24, 16, 48, 30, 32, 32, 32, 24, 48, 32, 36, 32, 48, 24 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Here phi is Euler's totient function and psi is the Dedekind psi function.
Values of psi(n), n > 1 are always greater than n, while values of phi(n), n > 1 are always less than n.
a(39270) = 41472 is the first term where phi(psi(n)) exceeds n.
LINKS
FORMULA
a(n) = A000010(A001615(n)).
a(2^k) = A000010(2^k), k >= 2.
MAPLE
f:= proc(n) local p; numtheory:-phi(n * mul(1+1/p, p = numtheory:-factorset(n))) end proc:
map(f, [$1..100]); # Robert Israel, Feb 13 2024
MATHEMATICA
a[n_] := EulerPhi[n*Times @@ (1 + 1/FactorInteger[n][[;; , 1]])]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Aug 13 2023 *)
PROG
(Python)
from sympy.ntheory.factor_ import totient
from sympy import isprime, primefactors, prod
def psi(n):
plist = primefactors(n)
return n*prod(p+1 for p in plist)//prod(plist)
def a(n): return totient(psi(n))
(PARI) a(n) = eulerphi(n * sumdivmult(n, d, issquarefree(d)/d)); \\ Michel Marcus, Aug 13 2023
CROSSREFS
Sequence in context: A072376 A131883 A113452 * A122461 A092533 A092532
KEYWORD
nonn,look
AUTHOR
Torlach Rush, Aug 13 2023
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 April 30 02:27 EDT 2024. Contains 372118 sequences. (Running on oeis4.)