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

A043142
Numbers k such that 2 and 3 occur juxtaposed in the base-7 representation of k but not of k-1.
0
17, 23, 66, 72, 115, 119, 161, 170, 213, 219, 262, 268, 311, 317, 360, 366, 409, 415, 458, 462, 504, 513, 556, 562, 605, 611, 654, 660, 703, 709, 752, 758, 801, 805, 833, 899, 905, 948, 954, 997, 1003, 1046, 1052, 1095, 1101
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 7], {2, 3}]>0 || SequenceCount[IntegerDigits[n, 7], {3, 2}]>0, 1, 0], {n, 1200}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 26 2017 *)
CROSSREFS
Cf. A007093.
Sequence in context: A152292 A214493 A039319 * A043922 A260179 A100473
KEYWORD
nonn,base
STATUS
approved