OFFSET
1,1
EXAMPLE
a(5)=902 because 902 when expressed in successive bases starting at 2 will produce its first non-decimal digit at base 18. Like so: 1110000110, 1020102, 32012, 12102, 4102, 2426, 1606, 1212, 902, 750, 632, 545, 486, 402, 386, 321. In base 18, 902 is 2E2.
MAPLE
S := []; for n from 1 to 15000 do; if 1>0 then; ct := 0; ok := true; b := 2; if (n>9) then; while ok=true do; L := convert(n, base, b); for e in L while ok=true do; if (e > 9) then ok:=false; fi; od; if ok=true then; ct := ct + 1; b := b + 1; fi; od; fi; if ct=16 then S := [op(S), n]; fi; fi; od; S;
MATHEMATICA
b18Q[n_]:=Module[{idn=Table[IntegerDigits[n, b], {b, 2, 18}]}, Max[Flatten[Most[ idn]]]<10 && Max[Last[idn]]>9]; Select[Range[50000], b18Q] (* Harvey P. Dale, Feb 09 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin (seqfan(AT)plastereddragon.com), Jun 05 2004
EXTENSIONS
More terms from Harvey P. Dale, Feb 09 2013
STATUS
approved