Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A153332
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A153332 Numbers n such that (10^n-1)*150/99+1 is prime. +0
1
2, 14, 62, 88, 244, 582 (list; graph; listen)
OFFSET

0,1

COMMENT

These numbers are always even. If n is odd, then 10^n-1 produces a number

with an odd number of 9's which 99 does not divide. Also the numbers produced

by this formula are palindromic.

EXAMPLE

For the first entry n=2 the formula produces the prime 151.

PROGRAM

(PARI) /* n=number of values to test, r=repeat digits, eg., 14, 121, 177, 1234, etc.

d = last digit appended to the end*/

repr(n, r, d) = ln=length(Str(r)); for(x=0, n, y=(10^(ln*x)-1)*10*r/

(10^ln-1)+1; if(ispseudoprime(y), print1(ln*x", ")))

CROSSREFS

Sequence in context: A096367 A058738 A095376 this_sequence A144657 A167555 A109869

Adjacent sequences: A153329 A153330 A153331 this_sequence A153333 A153334 A153335

KEYWORD

nonn

AUTHOR

Cino hilliard (hillcino368(AT)hotmail.com), Dec 23 2008

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 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research