cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A265505 Numbers n such that n*2^107 - 1 is prime.

Original entry on oeis.org

1, 25, 36, 81, 246, 273, 358, 378, 595, 658, 684, 703, 706, 739, 759, 883, 909, 958, 963, 970, 991, 1014, 1054, 1138, 1189, 1200, 1209, 1356, 1359, 1476, 1488, 1534, 1554, 1590, 1594, 1684, 1695, 1719, 1785, 1791, 1858, 1929, 2008, 2094, 2103, 2115, 2146, 2224, 2229, 2266, 2278, 2283, 2313, 2325, 2380, 2388, 2401
Offset: 1

Views

Author

Vardan Semerjyan, Dec 09 2015

Keywords

Comments

The exponent of 2 in the expression, 107, is a Mersenne exponent.

Examples

			n = 1 is a term since 2^107 - 1 is prime (the 11th Mersenne prime).
		

Crossrefs

Programs

  • MATLAB
    if isprime(n*2^107-1)
    disp(n)
    end
    
  • Mathematica
    Select[Range@ 2401, PrimeQ[# 2^107 - 1] &] (* Michael De Vlieger, Dec 16 2015 *)
  • PARI
    is(n)=ispseudoprime(n*2^107- 1) \\ Anders Hellström, Dec 16 2015
Showing 1-1 of 1 results.