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

A043938
Numbers k such that 0 and 7 occur juxtaposed in the base-8 representation of k but not of k+1.
0
56, 71, 120, 135, 184, 199, 248, 263, 312, 327, 376, 391, 440, 455, 504, 519, 575, 583, 632, 647, 696, 711, 760, 775, 824, 839, 888, 903, 952, 967, 1016, 1031, 1087, 1095, 1144, 1159, 1208, 1223, 1272, 1287, 1336, 1351, 1400
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {0, 7}]> 0 || SequenceCount[IntegerDigits[n, 8], {7, 0}]>0, 1, 0], {n, 1500}], {1, 0}][[All, 1]] (* Harvey P. Dale, Oct 31 2021 *)
CROSSREFS
Cf. A007094.
Sequence in context: A050440 A043158 A039335 * A328165 A214250 A286981
KEYWORD
nonn,base
STATUS
approved