A308378 Numbers k such that phi(2k+1) = phi(2k+2).
0, 1, 7, 127, 247, 487, 1312, 1627, 1852, 2593, 5857, 6682, 9157, 11467, 12772, 23107, 24607, 24667, 28822, 32767, 82087, 92317, 99157, 107887, 143497, 153697, 159637, 194122, 198742, 207637, 245767, 284407, 294703, 343492, 420127
Offset: 1
Keywords
Examples
0 is a term because phi(1) = phi(2) = 1. 1 is a term because phi(3) = phi(4) = 2. 7 is a term because phi(15) = phi(16) = 8.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..5416 (calculated using the b-file at A001274)
Crossrefs
Programs
-
Mathematica
Select[Range[0, 9999], EulerPhi[2# + 1] == EulerPhi[2# + 2] &] (* Alonso del Arte, Jul 05 2019 *) Select[(#-1)/2&/@SequencePosition[EulerPhi[Range[900000]],{x_,x_}][[All,1]],IntegerQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 24 2019 *)
-
PARI
lista(nn) = for(n=0, nn, if(eulerphi(2*n+1) == eulerphi(2*n+2), print1(n, ", "))); lista(430000)
Formula
a(n) = (A299535(n) - 2) / 2.
Comments