login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A306424 Numbers k such that the base-b expansion of k for each b = 3..k-1 never contains more than two distinct digits. 0
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 20, 22, 23, 25, 26, 31, 37, 43 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: The sequence is finite, with 43 being the last term.
I checked the conjecture to 10809638.
LINKS
EXAMPLE
10 is a term of the sequence, since the base-b expansions of 10 for b = 3..9 are 101, 22, 20, 14, 13, 12, 11, respectively, and none of those expansions contain more than two distinct digits.
MATHEMATICA
Select[Range@ 100, Max@ Table[Length@ Union@ IntegerDigits[#, b], {b, 3, # - 1}] <= 2 &] (* Michael De Vlieger, Feb 15 2019 *)
PROG
(PARI) is(n) = for(b=3, n-1, my(d=digits(n, b)); if(#vecsort(d, , 8) > 2, return(0))); 1
CROSSREFS
Sequence in context: A154314 A239348 A191881 * A005524 A191890 A247814
KEYWORD
nonn,base,more
AUTHOR
Felix Fröhlich, Feb 14 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 09:47 EDT 2024. Contains 371779 sequences. (Running on oeis4.)