OFFSET
1,1
COMMENTS
Numbers with at least one digit A (=10) in their representation in base 11. Complementary sequence to A171397. - François Marques, Oct 11 2020
LINKS
François Marques, Table of n, a(n) for n = 1..10000 (first 1000 terms from Harvey P. Dale)
EXAMPLE
a(5)=54 because 54 when expressed in successive bases starting at 2 will produce its first non-decimal digit at base 11. Like so: 110110, 2000, 312, 204, 130, 105, 66, 60, 54. In base 11, 54 is 4A.
MAPLE
S := []; for n from 1 to 1000 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=9 then S := [op(S), n]; fi; fi; od; S;
# or
seq(`if`(numboccur(10, convert(n, base, 11))>0, n, NULL), n=0..1000); # François Marques, Oct 11 2020
MATHEMATICA
Select[Range[400], Max[IntegerDigits[#, 11]]>9&] (* Harvey P. Dale, Sep 30 2018 *)
PROG
(PARI) isok(m) = #select(x->(x==10), digits(m, 11)) >= 1; \\ François Marques, Oct 11 2020
CROSSREFS
Cf. A095777.
Cf. Numbers with at least one digit b-1 in base b : A074940 (b=3), A337250 (b=4), A337572 (b=5), A333656 (b=6), A337141 (b=7), A337239 (b=8), A338090 (b=9), A011539 (b=10), this sequence (b=11).
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin (seqfan(AT)plastereddragon.com), Jun 05 2004
STATUS
approved