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!)
A291138 a(n) is the smallest k such that psi(k) and phi(k) have same distinct prime factors when k is the product of n distinct primes (psi(k) = A001615(k) and phi(k) = A000010(k)), or 0 if no such k exists. 1
3, 14, 42, 210, 3570, 43890, 746130, 14804790, 281291010, 8720021310, 278196808890, 8624101075590, 353588144099190, 25104758231042490, 2234323482562781610, 129325924468711040070, 9182140637278483844970, 725389110345000223752630, 51501592227099266198116170 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(5) = 3570 = 2*3*5*7*17 because psi(3570) = 3*4*6*8*18 = 2^7*3^4, and phi(3570) = 2*4*6*16 = 2^8*3^1 and 3570 is the least number with 5 distinct prime factors having this property.
MATHEMATICA
Rest@ Values[#][[All, 1]] &@ KeySort@ PositionIndex@ Table[If[SameQ @@ #, PrimeNu@ n, 0] &@ Map[FactorInteger[#][[All, 1]] &, {EulerPhi@ n, n Sum[MoebiusMu[d]^2/d, {d, Divisors@ n}]}], {n, 10^6}] (* Michael De Vlieger, Aug 26 2017, after Michael Somos at A001615 *)
PROG
(PARI)
generate(A, B, n) = A=max(A, vecprod(primes(n))); (f(m, p, j, phi=1, psi=1) = my(list=List()); my(s=sqrtnint(B\m, j)); if(j==1, forprime(q=max(p, ceil(A/m)), s, if(factorback(factor((q-1)*phi)[, 1]) == factorback(factor((q+1)*psi)[, 1]), listput(list, m*q))), forprime(q=p, s, my(t=m*q); list=concat(list, f(t, q+1, j-1, phi*(q-1), psi*(q+1))))); list); vecsort(Vec(f(1, 2, n)));
a(n) = my(x=vecprod(primes(n)), y=2*x); while(1, my(v=generate(x, y, n)); if(#v >= 1, return(v[1])); x=y+1; y=2*x); \\ Daniel Suteu, Jan 25 2023
CROSSREFS
Cf. A000010 (phi), A005117 (squarefree), A001615 (psi), A007947 (radical).
Sequence in context: A367985 A000550 A124650 * A063903 A305009 A115005
KEYWORD
nonn
AUTHOR
Altug Alkan, Aug 18 2017
EXTENSIONS
a(10) from Giovanni Resta, Aug 26 2017
a(11)-a(19) from Daniel Suteu, Jan 25 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 March 28 08:19 EDT 2024. Contains 371236 sequences. (Running on oeis4.)