%I #67 Oct 30 2023 07:32:09
%S 8,14,16,20,35,52,64,91,140,148,244,292,403,455,616,628,772,801,1011,
%T 1024,1108,1144,1252,1270,1295,1456,1588,1684,1820,1828,2030,2164,
%U 2452,2623,2644,2660,2692,2932,3028,3216,3321,3508,3988,4264,4340,4372,4612,4804,4852,4948
%N Numbers n such that phi(n) = phi(n+4), with Euler's totient function phi=A000010.
%C Is there some n > 5 such that phi(n) = phi(n+3)?
%C None up to 500000. (* _Harvey P. Dale_, Feb 16 2011 *)
%C No further solutions to the phi(n) = phi(n+3) problem less than 10^12. On the other hand, this sequence has 267797240 terms under 10^12. - _Jud McCranie_, Feb 13 2012
%C No reason is known that would prevent other solutions of phi(n)=phi(n+3), see Graham, Holt, & Pomerance. - _Jud McCranie_, Jan 03 2013
%C If a(n) is even then a(n)/2 is in A001494 - see comment at A217139. - _Jud McCranie_, Dec 31 2012
%D S. W. Graham, J. J. Holt, & C. Pomerance, "On the solutions to phi(n)=phi(n+k)", Number Theory in Progress, Proc. Intern. Conf. in Honor of 60th Birthday of A. Schinzel, Poland, 1997. Walter de Gruyter, 1999, pp. 867-82.
%H Jud McCranie, <a href="/A179186/b179186.txt">Table of n, a(n) for n = 1..10000</a> (first 1000 terms from T. D. Noe)
%H F. Firoozbakht, <a href="http://www.primepuzzles.net/puzzles/puzz_466.htm">Puzzle 466: phi(n-1)=phi(n)=phi(n+1)</a>, in C. Rivera's Primepuzzles.
%H Kevin Ford, <a href="https://arxiv.org/abs/2002.12155">Solutions of phi(n)=phi(n+k) and sigma(n)=sigma(n+k)</a>, arXiv:2002.12155 [math.NT], 2020.
%t Select[Range[5000],EulerPhi[#]==EulerPhi[#+4]&] (* _Harvey P. Dale_, Feb 16 2011 *)
%o (PARI) {op=vector(N=4); for( n=1,1e4,if( op[n%N+1]+0==op[n%N+1]=eulerphi(n),print1(n-N,",")))}
%o (Magma) [n: n in [1..5000] | EulerPhi(n) eq EulerPhi(n+4)]; // _Vincenzo Librandi_, Sep 08 2016
%Y Cf. A000010, A001274, A001494, A179187, A007015.
%K nonn
%O 1,1
%A _M. F. Hasler_, Jan 05 2011
|