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”).

A043907
Numbers k such that 2 and 5 occur juxtaposed in the base-6 representation of k but not of k+1.
0
17, 32, 53, 68, 89, 107, 125, 140, 161, 176, 197, 212, 233, 248, 269, 284, 305, 323, 341, 356, 377, 392, 413, 428, 449, 464, 485, 500, 521, 539, 557, 572, 593, 608, 647, 665, 680, 701, 716, 737, 755, 773, 788, 809, 824, 845, 860
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 6], {2, 5}]>0 || SequenceCount[ IntegerDigits[n, 6], {5, 2}]>0, 1, 0], {n, 900}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 23 2019 *)
CROSSREFS
Cf. A007092.
Sequence in context: A058899 A038354 A043127 * A173054 A162624 A029817
KEYWORD
nonn,base
STATUS
approved