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!)
A228008 The smallest n-digit number whose first k digits are divisible by k^2 for k = 1..n. 0
1, 12, 126, 1264, 24325, 243252, 6480005 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
There are 7 terms in the sequence and the 7-digit number 6480005 is the last number to satisfy the requirements.
LINKS
EXAMPLE
There are nine one-digit numbers divisible by 1 and smallest is 1 so a(1)=1.
For two-digit numbers, the second digit must make it divisible by 2^2, which gives 12 as the smallest to satisfy the requirement, so a(2)=12.
MATHEMATICA
a = Table[j, {j, 9}]; r = 2; t = {}; While[! a == {}, n = Length[a]; nmin = First[a]; k = 1; b = {}; While[! k > n, z0 = a[[k]]; Do[z = 10*z0 + j; If[Mod[z, r*r] == 0, b = Append[b, z]], {j, 0, 9}]; k++]; AppendTo[t, nmin]; a = b; r++]; t
CROSSREFS
Cf. A079042.
Sequence in context: A348463 A159736 A004991 * A101602 A264896 A062199
KEYWORD
nonn,base,fini,full
AUTHOR
Shyam Sunder Gupta, Aug 08 2013
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 April 19 08:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)