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-1 of 1 results.

A363896 Numbers k such that the sum of primes dividing k (with repetition) is equal to Euler's totient function of k.

Original entry on oeis.org

9, 15, 16, 42
Offset: 1

Views

Author

DarĂ­o Clavijo, Jun 26 2023

Keywords

Comments

No more terms less than 1.6*10^7.

Crossrefs

Subsequence of A257048.
Other sequences requiring a specific relationship between A000010(k) and A001414(k): A173327, A237798, A280936.

Programs

  • Mathematica
    Select[Range[2, 1000], EulerPhi[#] == Plus @@ Times @@@ FactorInteger[#] &] (* Amiram Eldar, Jun 27 2023 *)
  • PARI
    is(k) = my(f=factor(k)); f[, 1]~*f[, 2] == eulerphi(f); \\ Amiram Eldar, Jun 27 2023
  • Python
    from sympy import factorint,totient
    A001414 = lambda k: sum(p*e for p, e in factorint(k).items())
    def g():
      k = 2
      while True:
        if A001414(k) == totient(k): yield(k)
        k += 1
    for a_n in g():
      print(a_n)
    

Formula

{k : A001414(k) = A000010(k)}.
Showing 1-1 of 1 results.