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!)
A253427 Number of left-truncatable n-digit primes with least significant digit 7. 1
1, 5, 17, 47, 89, 150, 199, 238, 264, 257, 230, 181, 139, 117, 70, 46, 33, 19, 11, 5, 5, 4, 3, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Number of n-digit (n <= 24) truncatable primes (i.e., left-truncatable with the least significant digit 7; only prime suffixes without digit '0'). Formed by successively prepending a digit (1,...,9) to the most significant digit (1st is 7) while preserving primality; a(13) with 139 members includes A253386 (includes the palindromic prime suffix 7693967), but a(24) includes just a single one, 357686312646216567629137 (contains the nonprime palindrome 1264621).
LINKS
I. O. Angell and H. J. Godwin, On Truncatable Primes, Math. Comput. 31, 265-267, 1977.
Eric Weisstein's World of Mathematics, Truncatable Prime
EXAMPLE
a(1)=1 {7};
a(2)=5 {17,37,47,67,97};
...
a(23)=3 {57686312646216567629137, 95918918997653319693967, 96686312646216567629137};
a(24)=1 {357686312646216567629137}; see also A012885.
MAPLE
S[1]:= {7}:
for n from 2 while nops(S[n-1]) > 0 do
S[n]:= select(isprime, {seq(seq(i*10^(n-1)+s, i=1..9), s = S[n-1])})
od:
seq(nops(S[i]), i=1..n-2); # Robert Israel, Jan 01 2015
CROSSREFS
Sequence in context: A046787 A003295 A228857 * A339805 A338972 A332358
KEYWORD
base,easy,fini,full,nonn
AUTHOR
Mikk Heidemaa, Dec 31 2014
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 April 25 13:40 EDT 2024. Contains 371970 sequences. (Running on oeis4.)