Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A034093
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A034093 Number of near-repunit primes that can be formed from R_n (A004022), that is, by changing just one digit from 1 to 0. +0
4
0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 0, 5, 0, 0, 0, 0, 2, 5, 0, 4, 0, 0, 0, 3, 0, 1, 0, 0, 1, 2, 0, 4, 1, 0, 1, 2, 0, 2, 1, 0, 0, 7, 0, 4, 0, 0, 0, 2, 0, 2, 1, 0, 1, 3, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 2, 0, 0, 0, 3, 0, 1, 0, 0, 1, 3, 0, 1, 0, 0, 1, 3, 0, 3, 0, 0, 1, 1, 0, 1, 0, 0, 0, 2, 0, 3, 0, 0 (list; graph; listen)
OFFSET

1,8

REFERENCES

C. K. Caldwell and H. Dubner, The near repunits primes, J. Rec. Math., Vol. 27(1), 35-41. 1995.

LINKS

Chris Caldwell, Below are all of the 12-digit Near-Repunit primes:

Chris Caldwell, Repunits

EXAMPLE

a(12) = 5 because from (10^12 -1)/9 = 111111111111, by changing just one digit from 1 to 0, out of the eleven candidates, 111111111101, 111111110111, 111111011111, 111011111111 and 101111111111 are primes.

MATHEMATICA

a = {}; Do[ p = IntegerDigits[ (10^n - 1)/9 ]; c = 0; Do[ If[ q = FromDigits[ ReplacePart[p, 0, i]]; PrimeQ[q], c++ ], {i, 2, n} ]; a = Append[a, c], {n, 1, 100} ]; a - Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 19 2001

CROSSREFS

Cf. A004022, A065074, A065083.

Sequence in context: A121465 A094449 A136129 this_sequence A057150 A105868 A057275

Adjacent sequences: A034090 A034091 A034092 this_sequence A034094 A034095 A034096

KEYWORD

nonn,base

AUTHOR

Felice Russo (felice.russo(AT)katamail.com)

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 19 2001

Edited by N. J. A. Sloane (njas(AT)research.att.com), Oct 02 2008 at the suggestion of R. J. Mathar

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research