Maximum m such that there are no two adjacent elements belonging to the same n-th power residue class modulo some prime p in the sequence 1,2,...,m (equivalently, there is no n-th power residue modulo p in the sequence 1/2,2/3,...,(m-1)/m).

A000236

Maximum m such that there are no two adjacent elements belonging to the same n-th power residue class modulo some prime p in the sequence 1,2,...,m (equivalently, there is no n-th power residue modulo p in the sequence 1/2,2/3,...,(m-1)/m).

Terms

    a(0) =3a(1) =8a(2) =20a(3) =44a(4) =80a(5) =343a(6) =288a(7) =608a(8) =1023a(9) =2848a(10) =4095a(11) =40959a(12) =16383a(13) =32768a(14) =11375a(15) =655360a(16) =262143a(17) =3670016a(18) =1048575a(19) =2097151

External references