OFFSET
1,1
EXAMPLE
30(10) = 50(6) but 31(10) = 51(6), so 30 is in the sequence.
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 6], {0, 5}]>0||SequenceCount[IntegerDigits[n, 6], {5, 0}]>0, 1, 0], {n, 1000}], {1, 0}]][[1]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, Jan 14 2016 *)
PROG
(Sage)
@cached_function
def str_base6(x):
return ''.join(str(y) for y in x.digits(base=6))
[x for x in [1..2000] if '50' in str_base6(x) or '05' in str_base6(x) and not('50' in str_base6(x + 1) or '05' in str_base6(x + 1))]
# Tom Edgar, May 13 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Dec 11 1999
STATUS
approved