Binary sequences derived from differences of consecutive quadratic residues
Abstract
For a prime p 5 let q0,q1,…,q(p-3)/2 be the quadratic residues modulo p in increasing order. We study two (p-3)/2-periodic binary sequences (dn) and (tn) defined by dn=qn+qn+1 2 and tn=1 if qn+1=qn+1 and tn=0 otherwise, n=0,1,…,(p-5)/2. For both sequences we find some sufficient conditions for attaining the maximal linear complexity (p-3)/2. Studying the linear complexity of (dn) was motivated by heuristics of Caragiu et al. However, (dn) is not balanced and we show that a period of (dn) contains about 1/3 zeros and 2/3 ones if p is sufficiently large. In contrast, (tn) is not only essentially balanced but also all longer patterns of length s appear essentially equally often in the vector sequence (tn,tn+1,…,tn+s-1), n=0,1,…,(p-5)/2, for any fixed s and sufficiently large p.