login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A043992
Numbers k such that 5 and 8 occur juxtaposed in the base-9 representation of k but not of k+1.
0
53, 77, 134, 158, 215, 239, 296, 320, 377, 401, 458, 485, 539, 563, 620, 644, 701, 725, 782, 806, 863, 887, 944, 968, 1025, 1049, 1106, 1130, 1187, 1214, 1268, 1292, 1349, 1373, 1430, 1454, 1511, 1535, 1592, 1616, 1673, 1697
OFFSET
1,1
MATHEMATICA
j58Q[n_]:=Module[{idn=IntegerDigits[n, 9]}, If[SequenceCount[idn, {5, 8}]+ SequenceCount[idn, {8, 5}]>0, 1, 0]]; Transpose[SequencePosition[ Array[ j58Q, 1700], {1, 0}]][[1]] (* The program uses the SequenceCount and SequencePosition functions from Mathematica version 10 *) (* Harvey P. Dale, Sep 09 2015 *)
CROSSREFS
Cf. A007095.
Sequence in context: A107309 A039389 A043212 * A032421 A129257 A125875
KEYWORD
nonn,base
STATUS
approved