The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A106371 Representation of n in base b, where b is minimal such that n contains no zeros: b = A106370(n). 2
 1, 2, 11, 11, 12, 12, 111, 22, 21, 22, 23, 22, 111, 112, 1111, 121, 122, 33, 34, 32, 111, 211, 212, 44, 221, 222, 123, 44, 131, 132, 11111, 112, 113, 114, 55, 121, 211, 212, 213, 1111, 1112, 222, 1121, 1122, 231, 232, 233, 143, 1211, 1212, 123, 1221, 1222, 312 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS In decimal representation feasible only for bases <= 10; A106371(11) = 360 = 2*11^2 + 10*11^1 + 8*11^0 is the first number which cannot be written zerofree with digits 1..9 in base 11. Therefore this sequence is finite with exactly 359 terms. - Reinhard Zumkeller, Apr 12 2015 LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..359 PROG (Haskell) a106371 n = a106371_list !! (n-1) a106371_list = map fromJust \$ takeWhile (/= Nothing) \$ map f [1..] where    f n = g 2 n where      g b x = h x 0 where        h 0 y = if b <= 10 then Just (a004086 y) else Nothing        h z y = if r == 0 then g (b + 1) n else h z' (10 * y + r)                where (z', r) = divMod z b -- Reinhard Zumkeller, Apr 12 2015 CROSSREFS Cf. A106370, A004086. Sequence in context: A256665 A086862 A027828 * A145523 A168413 A265561 Adjacent sequences:  A106368 A106369 A106370 * A106372 A106373 A106374 KEYWORD nonn,base,fini,full AUTHOR Reinhard Zumkeller, May 01 2005 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.

Last modified May 5 17:26 EDT 2021. Contains 343572 sequences. (Running on oeis4.)