A096506 Numbers n for which 2*R_n + 1 is a prime, where R_n = 11...1 is the repunit (A002275) of length n.
1, 2, 3, 8, 11, 36, 95, 101, 128, 260, 351, 467, 645, 1011, 1178, 1217, 2442, 3761, 3806, 15617, 26459, 63117, 88545, 93497
Offset: 1
Keywords
Examples
n=36: 222222222222222222222222222222222223 is a prime number.
Links
Programs
-
Mathematica
Do[ If[ PrimeQ[ 2(10^n - 1)/9 + 1], Print[n]], {n, 7000}] (* Robert G. Wilson v, Oct 14 2004 *)
Formula
a(n) = A056656(n) + 1.
Extensions
a(20)-a(24) from Kamada link by Ray Chandler, Feb 27 2012
Comments