A200522 Least m>0 such that n = 2^x-y^2 (mod m) has no solution, or 0 if no such m exists.
0, 0, 0, 0, 0, 15, 12, 0, 0, 20, 16, 24, 0, 32, 20, 0, 0, 28, 12, 56, 15, 16, 16, 0, 112, 68, 16, 40, 0, 20, 12, 0, 0, 52, 20, 15, 80, 16, 16, 0, 112, 36, 12, 56, 33, 28, 28, 0, 0, 20, 15, 40, 128, 16, 12, 0, 117, 48, 16, 24, 0, 44, 28, 0, 0, 15, 12, 40, 63
Offset: 0
Keywords
Examples
See A200507 for motivation and examples.
Links
- Seiichi Azuma, Table of n, a(n) for n = 0..1000 (terms up to a(518) from M. F. Hasler)
Programs
-
PARI
A200522(n,b=2,p=3)={ my( x=0, qr, bx, seen ); for( m=3,9e9, while( x^p < m, issquare(b^x-n) & return(0); x++); qr=vecsort(vector(m,y,y^2+n)%m,,8); seen=0; bx=1; until( bittest(seen+=1<
bx & break; next(3))); return(m))}
Comments