# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a007366
Showing 1-1 of 1
%I A007366 M4685 #105 Nov 08 2022 20:41:41
%S A007366 1,10,22,28,30,46,52,54,58,66,70,78,82,102,106,110,126,130,136,138,
%T A007366 148,150,166,172,178,190,196,198,210,222,226,228,238,250,262,268,270,
%U A007366 282,292,294,306,310,316,330,342,346,358,366,372,378,382,388,418,430,438
%N A007366 Numbers k such that phi(x) = k has exactly 2 solutions.
%C A007366 Contains {2*3^(6k+1): k >= 1} as a subsequence. This is the simplest proof for the infinity of these numbers (see Sierpiński, Exercise 12, p. 237). - _Franz Vrabec_, Aug 21 2021
%C A007366 The smaller of the solutions to phi(x) = a(n) is given by A271983(n). It is conjectured that the larger solution is 2*A271983(n); or equivalently, all terms in A271983 are odd. - _Jianing Song_, Nov 08 2022
%D A007366 M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 840.
%D A007366 W. Sierpiński, Elementary Theory of Numbers, Warszawa, 1964.
%D A007366 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H A007366 T. D. Noe, Table of n, a(n) for n = 1..1000
%H A007366 M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
%H A007366 R. G. Wilson v, Letter to N. J. A. Sloane, Jul. 1992
%F A007366 #({phi^-1(a(n))}) = 2. - _Torlach Rush_, Dec 22 2017
%e A007366 10 = phi(11) = phi(22).
%p A007366 select(nops@numtheory:-invphi=2, [$1..1000]); # _Robert Israel_, Dec 20 2017
%t A007366 a = Table[ 0, {500} ]; Do[ p = EulerPhi[ n ]; If[ p < 501, a[ [ p ] ]++ ], {n, 1, 500} ]; Select[ Range[ 500 ], a[ [ # ] ] == 2 & ]
%t A007366 (* Second program: *)
%t A007366 With[{nn = 1325}, TakeWhile[Union@ Select[KeyValueMap[{#1, Length@ #2} &, PositionIndex@ Array[EulerPhi, nn]], Last@ # == 2 &][[All, 1]], # < nn/3 &] ] (* _Michael De Vlieger_, Dec 20 2017 *)
%Y A007366 Cf. A000010, A001221, A007367, A023900, A271983.
%K A007366 nonn
%O A007366 1,2
%A A007366 _N. J. A. Sloane_, _Mira Bernstein_, _Robert G. Wilson v_
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE