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.
%I A331866 #26 Sep 24 2024 14:14:36 %S A331866 0,2,5,7,8,10,65,91,208,376,586,2744,3089,19378,20246 %N A331866 Numbers k for which R(k) + 3*10^floor(k/2) is prime, where R(k) = (10^k-1)/9 (repunit: A002275). %C A331866 The corresponding primes are a subset of the near-repunit primes A105992 (at least when they have k > 2 digits). %C A331866 In base 10, R(k) + 3*10^floor(k/2) has k digits all of which are 1 except for one digit 4 (for k > 0) located in the center (for odd k) or just to the left of it (for even k): i.e., there are ceiling(k/2)-1 digits 1 to the left and floor(k/2) digits 1 to the right of the digit 4. For odd k, this is a palindrome a.k.a. wing prime, cf. A077780, the subsequence of odd terms. %C A331866 a(14) = 19378 was found by _Amiram Eldar_, verified to be the 14th term in collaboration with the author of the sequence and factordb.com. The term a(13) = 3089 corresponds to a certified prime (Ivan Panchenko, 2011, cf. factordb.com); a(12) and a(14) are only PRP as far as we know. %H A331866 Chris Caldwell, The Prime Glossary, <a href="https://t5k.org/glossary/xpage/nearrepunitprime.html">Near-repunit prime</a>. %H A331866 Brady Haran and Simon Pampena, <a href="https://www.youtube.com/watch?v=HPfAnX5blO0">Glitch Primes and Cyclops Numbers</a>, Numberphile video (2015). %e A331866 For n = 0, R(0) + 3*10^floor(0/2) = 3 is prime. %e A331866 For n = 2, R(2) + 3*10^floor(2/2) = 41 is prime. %e A331866 For n = 5, R(5) + 3*10^floor(5/2) = 11411 is prime. %e A331866 For n = 7, R(7) + 3*10^floor(7/2) = 1114111 is prime. %e A331866 For n = 8, R(8) + 3*10^floor(8/2) = 11141111 is prime. %t A331866 Select[Range[0, 2500], PrimeQ[(10^# - 1)/9 + 3*10^Floor[#/2]] &] %o A331866 (PARI) for(n=0,9999,ispseudoprime(p=10^n\9+3*10^(n\2))&&print1(n",")) %Y A331866 Cf. A105992 (near-repunit primes), A002275 (repunits), A004023 (indices of prime repunits), A011557 (powers of 10). %Y A331866 Cf. A331862, A331861, A331865, A331869 (variants with digit 0, 2, 3 or 5 instead of 4), A331867 (variant with floor(n/2-1) instead of floor(n/2)). %Y A331866 Cf. A077780 (odd terms). %K A331866 nonn,base,hard,more %O A331866 1,2 %A A331866 _M. F. Hasler_, Jan 30 2020 %E A331866 a(15) from _Michael S. Branicky_, Sep 24 2024