OFFSET
1,2
EXAMPLE
1 is in this sequence because (2^1 + 1)/(2*1 - 1) = 3.
MATHEMATICA
Select[Range[200000], IntegerQ[(2^# + 1) / (2 # - 1)] &] (* Vincenzo Librandi, Nov 20 2014 *)
PROG
(Magma) [n: n in [1..2000000] | Denominator((2^n + 1)/(2*n - 1)) eq 1];
(PARI) is(n)=Mod(2, 2*n-1)^n==-1 \\ Charles R Greathouse IV, Nov 20 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Nov 20 2014
EXTENSIONS
a(5)-a(27) from Charles R Greathouse IV, Nov 20 2014
STATUS
approved