Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A077186
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A077186 Smallest multiple of prime(n) of the form 123...(k-1) k (k-1)...321 ( a concatenation of natural numbers from 1 to k and back to 1), or 0 if no such number exists. +0
5
0, 12321, 0, 12345654321, 121, 12345654321 (list; graph; listen)
OFFSET

1,2

COMMENT

a(7) has 435 digits (k=109) and is too large to include, a(8) has 399 digits (k=103), k(a(10))=1006, k(a(11))=17, k(a(12))=3 so a(12)=12321, k(a(13))=5 so a(13)=123454321, k(a(14))=103, k(a(17))=1019, k(a(18))=1002, k(a(19))=1001, k(a(20))=16 - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 06 2006

PROGRAM

(PARI) palid(n)= { local(resul) ; resul=concat("", n) ; forstep(i=n-1, 1, -1, resul=concat(i, resul) ; resul=concat(resul, i) ; ) ; return(eval(resul)) ; } A077186(n)= { local(p) ; if(n==1 || n==3, return(0) ; ) ; p=prime(n) ; for(i=1, 1500, if( palid(i)%p ==0, return(i) ; break ; ) ; ) ; return(-1) ; } { for(n=1, 20, print("n=", n, " k=", A077186(n)) ; ) ; } - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 06 2006

CROSSREFS

Cf. A077180, A077181, A077182, A077183, A077184, A077187, A077188.

Sequence in context: A133862 A061745 A045084 this_sequence A077189 A104972 A091341

Adjacent sequences: A077183 A077184 A077185 this_sequence A077187 A077188 A077189

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Nov 01 2002

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 06 2006

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 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research