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.

Showing 1-4 of 4 results.

A166374 Numbers whose arithmetic derivative is equal to Euler totient function: n' = phi(n).

Original entry on oeis.org

2, 9, 15, 625, 1225, 3993, 117649, 218491, 857375, 3788435, 4259571, 69302975, 136410197, 200533921, 313742585, 603439225, 1516358753, 2563893625, 3326174929, 5655792025, 10214476341, 25937424601, 29677977573, 59797108943, 283867750439, 715167055525
Offset: 1

Views

Author

Keywords

Comments

The sequence is infinite. If n=prod(pi^ei) with each pi prime, then phi(n) = n*prod((pi-1)/pi) and n' = n*sum(ei/pi). Thus every number of the form p^(p-1), where p is prime, is in this sequence. - Nathaniel Johnston, Nov 27 2010
If p > q are primes and q does not divide p-1, there is a solution in positive integers of (p-1)*(q-1) = a*p + b*q, and then p^b*q^a is in the sequence. - Robert Israel, Aug 21 2014

Crossrefs

Cf. A000010, A003415, A036878 (p^(p-1)).
Intersection of A342008 and A342009.

Programs

  • Maple
    A003415:= n -> n*add(f[2]/f[1],f=ifactors(n)[2]):
    select(numtheory:-phi = A003415, [$0..10^5]); # Robert Israel, Aug 21 2014
  • Mathematica
    (*Run the Mathematica program given in A003415 first, to define the function a as the arithmetic derivative.*) Select[Range[0, 10000], EulerPhi[ # ] == a[ # ] &]
  • Python
    from sympy import factorint, totient
    A166374 = [n for n in range(1,10**6) if sum([int(n*e/p) for p,e in factorint(n).items()]) == totient(n)] # Chai Wah Wu, Aug 22 2014, edited by Antti Karttunen, Mar 13 2021
    
  • Sage
    A166374_list = lambda n: filter(lambda k: euler_phi(k) == A003415(k), range(n))
    A166374_list(10^6) # Peter Luschny, Aug 23 2014

Extensions

Two terms added by Alonso del Arte, Oct 20 2009
Offset corrected and a(12)-a(16) from Donovan Johnson, Nov 03 2010
a(17)-a(18) from Donovan Johnson, May 09 2011
a(19)-a(24) from Donovan Johnson, Oct 01 2012
a(25)-a(28) from Giovanni Resta, Mar 13 2014
Term a(1)=0 removed and the indices in the above comments decremented by one. - Antti Karttunen, Mar 13 2021

A342413 a(n) = gcd(phi(n), A003415(n)), where A003415(n) is the arithmetic derivative of n, and phi is Euler totient function.

Original entry on oeis.org

1, 1, 1, 2, 1, 1, 1, 4, 6, 1, 1, 4, 1, 3, 8, 8, 1, 3, 1, 8, 2, 1, 1, 4, 10, 3, 9, 4, 1, 1, 1, 16, 2, 1, 12, 12, 1, 3, 8, 4, 1, 1, 1, 4, 3, 1, 1, 16, 14, 5, 4, 8, 1, 9, 8, 4, 2, 1, 1, 4, 1, 3, 3, 32, 6, 1, 1, 8, 2, 1, 1, 12, 1, 3, 5, 4, 6, 1, 1, 16, 54, 1, 1, 4, 2, 3, 8, 20, 1, 3, 4, 4, 2, 1, 24, 16, 1, 7, 15, 20
Offset: 1

Views

Author

Antti Karttunen, Mar 11 2021

Keywords

Crossrefs

Programs

  • Mathematica
    Array[GCD[If[# < 2, 0, # Total[#2/#1 & @@@ FactorInteger[#]]], EulerPhi[#]] &@ Abs[#] &, 100] (* Michael De Vlieger, Mar 11 2021 *)
  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A342413(n) = gcd(eulerphi(n), A003415(n));

Formula

a(n) = gcd(A000010(n), A003415(n)).
a(n) = A003415(n) / A342414(n) = A000010(n) / A342415(n).
a(n) = A003557(n) * A342416(n).

A342008 Numbers k such that Euler totient phi(k) is a multiple of the arithmetic derivative of k.

Original entry on oeis.org

2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 23, 25, 29, 31, 35, 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 73, 79, 83, 89, 95, 97, 101, 103, 107, 109, 113, 119, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 191, 193, 197, 199, 209, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281
Offset: 1

Views

Author

Antti Karttunen, Mar 12 2021

Keywords

Comments

Numbers k for which A000010(k) is a multiple of A003415(k), or equally, k for which A173557(k) is a multiple of A342001(k).

Crossrefs

Subsequences: A000040, A166374, A342418 (composite terms).
Positions of ones in A342414.

Programs

  • Mathematica
    Select[Range[2, 281], Mod[EulerPhi[#], If[# < 2, 0, # Total[#2/#1 & @@@ FactorInteger[#]] ] &@ Abs[#]] == 0 &] (* Michael De Vlieger, Mar 12 2021 *)
  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    isA342008(n) = ((n>1)&&!(eulerphi(n)%A003415(n)));
    for(n=2,2^8,if(isA342008(n),print1(n,", ")));

A342415 a(n) = phi(n) / gcd(phi(n),A003415(n)), where A003415(n) is the arithmetic derivative of n, and phi is Euler totient function.

Original entry on oeis.org

1, 1, 2, 1, 4, 2, 6, 1, 1, 4, 10, 1, 12, 2, 1, 1, 16, 2, 18, 1, 6, 10, 22, 2, 2, 4, 2, 3, 28, 8, 30, 1, 10, 16, 2, 1, 36, 6, 3, 4, 40, 12, 42, 5, 8, 22, 46, 1, 3, 4, 8, 3, 52, 2, 5, 6, 18, 28, 58, 4, 60, 10, 12, 1, 8, 20, 66, 4, 22, 24, 70, 2, 72, 12, 8, 9, 10, 24, 78, 2, 1, 40, 82, 6, 32, 14, 7, 2, 88, 8, 18, 11, 30
Offset: 1

Views

Author

Antti Karttunen, Mar 11 2021

Keywords

Crossrefs

Cf. A000010, A003415, A173557, A342009 (positions of ones), A342413, A342414, A342416.

Programs

  • Mathematica
    Array[#2/GCD[#1, #2] & @@ {If[# < 2, 0, # Total[#2/#1 & @@@ FactorInteger[#]]] &@ Abs[#], EulerPhi[#]} &, 93] (* Michael De Vlieger, Mar 11 2021 *)
  • PARI
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A342415(n) = { my(u=eulerphi(n)); (u/gcd(u,A003415(n))); };

Formula

a(n) = A000010(n) / A342413(n) = A000010(n) / gcd(A000010(n),A003415(n)).
a(n) = A173557(n) / A342416(n).
Showing 1-4 of 4 results.