The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A078296 a(1) = 1, a(n) for n > 1 is the smallest multiple of a(n-1) that begins with the concatenation 123... up to n. 3
1, 12, 1236, 1234764, 12345170472, 1234566427881888, 1234567662448315881888, 123456781059643537568590582656, 12345678970161821174363821245734078592, 123456789109025621175870796087877366124764227584 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
For n = 3 we have a(n-1) = a(2) = 12; 103*12 = 1236 is the smallest multiple of a(2) that begins with 123, so a(3) = 1236.
PROG
(PARI) {print1(a=1, ", "); for(n=2, 10, k=floor(log(a)/log(10))+1; v=Str(1); for(i=2, n, v=concat(v, Str(i))); s=eval(v); t=s+1; m=floor(log(s)/log(10))+1; d=k-m; s=s*10^d; t=t*10^d; b=1; j=d; while(b>0, q=floor(s/a); while(b>0&&(p=q*a)<t, if(p>=s, print1(p, ", "); b=0, q++)); s=10*s; t=10*t); a=p)}
CROSSREFS
Sequence in context: A078294 A317953 A009155 * A239164 A209176 A351630
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 26 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus, Dec 06 2002
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 10 23:51 EDT 2024. Contains 373283 sequences. (Running on oeis4.)