A137908 Duplicate of A121370.
1, 3, 1, 7, 8, 19, 13, 4, 16, 3, 42, 24, 434, 84, 160, 579, 475, 529, 2450, 2644, 3928, 558, 13680, 7146, 1408, 3003, 2369, 55000, 83873
Offset: 1
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.
M(2) = 2^3-1 = 7, 7^2+7-1 = 55 is composite, (2*7)^2+2*7-1 = 209 is composite, (3*7)^2+3*7-1 = 461 is prime, 461 and 463 are twin primes, so a(2) = 3.
f[p_] := Module[{k = 1}, While[!PrimeQ[(k*p)^2 + k*p - 1] || !PrimeQ[(k*p)^2 + k*p + 1], k++]; k]; f /@ (2^MersennePrimeExponent[Range[10]] - 1) (* Amiram Eldar, Jul 23 2021 *)
Comments