OFFSET
1,1
LINKS
Georg Fischer, Table of n, a(n) for n = 1..1000
MAPLE
q:= n-> searchtext("58", cat("", convert(n, base, 9)[]))>0:
a:= proc(n) option remember; local k; for k from 1+
`if`(n=1, 0, a(n-1)) while not q(k) or q(k+1) do od; k
end:
seq(a(n), n=1..50); # Alois P. Heinz, Jun 27 2019
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {8, 5}]>0, 1, 0], {n, 3500}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 19 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Corrected and extended by Harvey P. Dale, Dec 24 2015
Previous values restored by Georg Fischer, Jun 27 2019
STATUS
approved