OFFSET
1,1
COMMENTS
For n > 1, the values are some odd primes, but never < 7. The maximum value increases very slowly, it only reaches 43 for the first 10^5 primes.
LINKS
PROG
(PARI) {/* The distance of LQxR from the primes where the sequence of the largest "mixed" QR modulo the primes is non-monotonic */ lqxr_nm_pd(to)=local(v=[], k, r, q, p, e=1, n=0, i=1); while(n<to, i+=1; p=prime(i); k=p-1; r=p%4-2; while(kronecker(k, p)<>r, k-=1); if(k-e<=0, v=concat(v, p-k); n+=1); e=k); print(i); print(v) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ferenc Adorjan (fadorjan(AT)freemail.hu)
STATUS
approved