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!)
A113558 Least multiple of n in which the n-th digit from left is 3. 6
3, 130, 123, 10032, 100030, 1000032, 1000013, 100000032, 100000053, 10000000030, 10000000043, 1000000000032, 1000000000103, 100000000000138, 1000000000000035, 10000000000000032, 10000000000000033, 1000000000000000134 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..18.

EXAMPLE

a(4)= 10032, in which the fourth digit is 3.

PROG

(PARI) dig(n, digno, base) = { local(nshif) ; nshif=n ; for(shifr=0, digno-1, nshif = floor(nshif/base) ; ) ; nshif % base ; } ndig(n, base) = { local(nshif, resul) ; nshif=n ; resul=1 ; while(nshif>0, nshif = floor(nshif/base) ; if( nshif>0, resul++, break) ; ) ; return(resul) ; } { for (n = 1, 23, anmin=10^(n-1) ; if ( ( n % 2 == 0 ) || (n %5 == 0), anmin *= 10) ; if ( ( n % 20 == 0 ) || (n %50 == 0), anmin *= 10) ; for( nex = anmin, anmin+10000000000000000000000, if ( ( nex % n) != 0, next ; ) ; nexd=ndig(nex, 10) ; if( dig(nex, nexd-n, 10)==3, print(nex, ", ") ; break ; ) ; ); ) } \\ R. J. Mathar, Mar 15 2006

CROSSREFS

Cf. A113556, A113557.

Sequence in context: A123047 A097420 A037119 * A003370 A156957 A202030

Adjacent sequences:  A113555 A113556 A113557 * A113559 A113560 A113561

KEYWORD

base,easy,nonn

AUTHOR

Amarnath Murthy, Nov 06 2005

EXTENSIONS

More terms from R. J. Mathar, Mar 15 2006

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 September 24 21:18 EDT 2020. Contains 337322 sequences. (Running on oeis4.)