OFFSET
1,1
COMMENTS
Numbers n such that 4n^2-1 divides 2^n-1. - Charles R Greathouse IV, Dec 04 2013
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..5000
EXAMPLE
2^8-1=255 is divisible by 2*8-1=15 and by 2*8+1=17.
MATHEMATICA
Select[Range[23*10^5], PowerMod[2, #, 2#+{1, -1}]=={1, 1}&] (* Harvey P. Dale, Dec 19 2014 *)
PROG
(PARI) isok(n) = !((2^n-1) % (2*n-1)) && !((2^n-1) % (2*n+1));
(PARI) is(n)=Mod(2, 4*n^2-1)^n==1 \\ Charles R Greathouse IV, Dec 04 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Dec 04 2013
STATUS
approved