Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089396
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089396 Smallest n-digit member of A089395. +0
3
1, 12, 106, 1018, 10312, 105502, 1197058 (list; graph; listen)
OFFSET

0,2

EXAMPLE

a(3) = 256 which is the smallest 3 digit number such that 2*56 +1 = 113, 25*6 +1 = 151 and 256+1 = 257 are all prime.

MAPLE

with(combinat): ds:=proc(s) local j: RETURN(add(s[j]*10^(j-1), j=1..nops(s))):end: for d from 1 to 7 do sch:=[seq([1, op(i), d+1], i=[[], seq([j], j=2..d)])]: for n from 10^(d-1) to 10^d-1 do sn:=convert(n, base, 10): fl:=0: for s in sch do m:=mul(j, j=[seq(ds(sn[s[i]..s[i+1]-1]), i=1..nops(s)-1)])+1: if not isprime(m) then fl:=1: break fi od: if fl=0 then printf("%d, ", n):break fi od od: (C. Ronaldo)

CROSSREFS

Cf. A089392, A089393, A089394, A089395, A089397.

Sequence in context: A027142 A090816 A144133 this_sequence A166755 A154671 A037972

Adjacent sequences: A089393 A089394 A089395 this_sequence A089397 A089398 A089399

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Nov 10 2003

EXTENSIONS

Corrected and extended by C. Ronaldo (aga_new_ac(AT)hotmail.com), Dec 25 2004

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