login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A153328 Numbers n such that (10^n-1)*120/99+1 is prime. 0
6, 10, 42, 138, 626, 1398, 1596, 1978, 7808, 14058 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

Also 2*A056803 which I took the liberty of using to create the last 2 entries.

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. a(6), a(10), a(42) are 1212121, 12121212121, 1212121212121212121212121212121212121212121 which can be found in A092696. Also, the formula produce palindromic numbers.

LINKS

Table of n, a(n) for n=0..9.

PROG

(PARI) /* n=number of values to test, r=repeat digits, eg., 12, 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

Cf. A092696, A056803.

Sequence in context: A213477 A047178 A132095 * A068588 A083333 A032359

Adjacent sequences:  A153325 A153326 A153327 * A153329 A153330 A153331

KEYWORD

nonn,base

AUTHOR

Cino Hilliard, Dec 23 2008

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 3 23:48 EDT 2020. Contains 333207 sequences. (Running on oeis4.)