OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ n. - Charles R Greathouse IV, May 15 2013
EXAMPLE
(159)10 = (10011111)2 = (12220)3 =(2133)4 = (1114)5 =(423)6=(315)7=(237)8=(186)9 . All digits 0,1,2,3,4,5,7,8,6,9 are used at least once.
MAPLE
filter:= proc(n) local b; `union`(seq(convert(convert(n, base, b), set), b=2..10)) = {$0..9} end proc:
select(filter, [$1..1000]); # Robert Israel, Jan 24 2025
MATHEMATICA
With[{c=Range[0, 9]}, Select[Range[3000], Union[Flatten[Table[IntegerDigits[#, n], {n, 2, 10}]]]==c&]] (* Harvey P. Dale, Jul 06 2011 *)
PROG
(PARI) isok(k) = my(s=Set()); for (b=2, 10, s = setunion(s, Set(digits(k, b)))); s == Set([0..9]); \\ Michel Marcus, Jan 24 2025
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
Claudio Meller, Jun 24 2011
EXTENSIONS
Corrected by Harvey P. Dale, Jul 06 2011
STATUS
approved