The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A266144 Number of n-digit primes in which n-1 of the digits are 5's. 9
4, 2, 1, 1, 0, 1, 0, 2, 0, 1, 0, 2, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The leading digits must be 5's and only the trailing digit can vary.
For n large a(n) is usually zero.
LINKS
Michael De Vlieger and Robert G. Wilson v, Table of n, a(n) for n = 1..1500
EXAMPLE
a(2) = 2 since 53 and 59 are primes.
a(3) = 1 since 557 is the only prime.
MATHEMATICA
d = 5; Array[Length@ Select[d (10^# - 1)/9 + (Range[0, 9] - d), PrimeQ] &, 100]
PROG
(Python)
from __future__ import division
from sympy import isprime
def A266144(n):
return 4 if n==1 else sum(1 for d in [-4, -2, 2, 4] if isprime(5*(10**n-1)//9+d)) # Chai Wah Wu, Dec 27 2015
CROSSREFS
Sequence in context: A033324 A266145 A365939 * A016508 A351986 A325496
KEYWORD
base,nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 26 01:19 EDT 2024. Contains 372807 sequences. (Running on oeis4.)