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.

A033632 Numbers k such that sigma(phi(k)) = phi(sigma(k)).

This page as a plain text file.
%I A033632 #64 Aug 06 2024 21:30:45
%S A033632 1,9,225,242,516,729,3872,13932,14406,17672,18225,20124,21780,29262,
%T A033632 29616,45996,65025,76832,92778,95916,106092,106308,114630,114930,
%U A033632 121872,125652,140130,140625,145794,149124,160986,179562,185100,234876,248652,252978,256860
%N A033632 Numbers k such that sigma(phi(k)) = phi(sigma(k)).
%C A033632 The largest term of this sequence that I found is 3^9550. Also, if (1/2)*(3^(k+1)-1) is prime (k+1 is a term of A028491) then 3^k is in the sequence, namely sigma(phi(3^k)) = phi(sigma(3^k)) (the proof is easy). - _Farideh Firoozbakht_, Feb 09 2005
%D A033632 R. K. Guy, Unsolved Problems in Number Theory, 2nd edition, Springer Verlag, 1994, section B42, p. 99.
%H A033632 Donovan Johnson, <a href="/A033632/b033632.txt">Table of n, a(n) for n = 1..10000</a> (first 200 terms from T. D. Noe)
%H A033632 S. W. Golomb, <a href="/A006872/a006872_1.pdf">Equality among number-theoretic functions</a>, Unpublished manuscript. (Annotated scanned copy)
%H A033632 Walter Nissen, <a href="http://upforthecount.com/math/sigmaphi.html">sigma(phi(n)) = phi(sigma(n))</a>, Up for the Count !
%H A033632 Walter Nissen, <a href="http://upforthecount.com/math/sigphi1.html">sigma(phi(n)) = phi(sigma(n)): From "5" to "5 figures"</a>, Up for the Count !, Nov. 14, 2000
%H A033632 Walter Nissen, <a href="http://upforthecount.com/math/sigphi2.html">Addendum to : sigma(phi()): From "5" to "5 figures"</a>, Up for the Count !, June 8, 2008
%H A033632 Walter Nissen, <a href="http://upforthecount.com/math/sigphi3.html">Elaboration of : sigma(phi()): From "5" to "5 figures"</a>, Up for the Count !, Oct. 15, 2010
%F A033632 A062401(a(n)) = A062402(a(n)). - _Reinhard Zumkeller_, Jan 04 2013
%t A033632 Select[ Range[ 10^6 ], DivisorSigma[ 1, EulerPhi[ # ] ] == EulerPhi[ DivisorSigma[ 1, # ] ] & ]
%o A033632 (Haskell)
%o A033632 a033632 n = a033632_list !! (n-1)
%o A033632 a033632_list = filter (\x -> a062401 x == a062402 x) [1..]
%o A033632 -- _Reinhard Zumkeller_, Jan 04 2013
%o A033632 (PARI) is(n)=sigma(eulerphi(n))==eulerphi(sigma(n)) \\ _Charles R Greathouse IV_, May 09 2013
%o A033632 (Python)
%o A033632 from sympy import divisor_sigma as sigma, totient as phi
%o A033632 def ok(n): return sigma(phi(n)) == phi(sigma(n))
%o A033632 def aupto(nn): return [m for m in range(1, nn+1) if ok(m)]
%o A033632 print(aupto(10**4)) # _Michael S. Branicky_, Jan 09 2021
%Y A033632 Cf. A000203, A000010, A028491, A078148.
%K A033632 nonn,nice
%O A033632 1,2
%A A033632 _Jud McCranie_