login
A095786
Values of n for which A095777(n) is 17 (those terms which are expressible in decimal digits for bases 2 through 18, but not for base 19).
0
18, 1027, 1028, 1029, 14745
OFFSET
1,1
COMMENTS
The only term for all values of n up to 200000 which produces decimal digits for bases 2 through 19 is 19 itself.
EXAMPLE
a(5)=14745 because 14745 when expressed in successive bases starting at 2 will produce its first non-decimal digit at base 19. Like so: 11100110011001, 202020010, 3212121, 432440, 152133, 60663, 34631, 22203, 14745, 10095, 8649, 6933, 5533, 4580, 3999, 3006, 2993. In base 19, 14745 is 22G1.
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=17 then S := [op(S), n]; fi; fi; od; S;
CROSSREFS
Cf. A095777.
Sequence in context: A042409 A363103 A073960 * A214181 A275653 A214232
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin (seqfan(AT)plastereddragon.com), Jun 05 2004
STATUS
approved