OFFSET
1,3
COMMENTS
Last term is a(876809) = 381367044. - Charles R Greathouse IV, Jun 16 2012
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Extended b-file style table of all terms
EXAMPLE
From Michael De Vlieger, Mar 24 2021: (Start)
Numbers 0 through 8 are in the sequence because these are single digits in base 9 (nonary).
9 is in the sequence because 9 = "10" in base 9, and both nonary digits are distinct.
11 is in the sequence because, though in decimal the number repeats the digit 1, in base 9, 11 is written "13", with 2 distinct digits.
(End)
MATHEMATICA
Select[Range[0, 80], Max[DigitCount[#, 9]]==1&] (* Harvey P. Dale, Apr 26 2011 *)
(* Second program: generate all terms (less than a second): *)
Union@ Flatten@ Map[FromDigits[#, 9] & /@ Permutations[-1 + Position[Reverse@ #, 1][[All, 1]] ] &, IntegerDigits[Range[2, 2^9] - 1, 2] ] (* Michael De Vlieger, Mar 24 2021 *)
PROG
(Python)
from itertools import permutations
A023804_list = sorted(set(int(''.join(d), 9) for k in range(1, 10) for d in permutations('012345678', k))) # Chai Wah Wu, Mar 25 2021
CROSSREFS
KEYWORD
nonn,base,fini,easy
AUTHOR
STATUS
approved