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

A044535
Numbers n such that string 2,2 occurs in the base 7 representation of n but not of n+1.
0
16, 65, 118, 163, 212, 261, 310, 359, 408, 461, 506, 555, 604, 653, 702, 751, 832, 849, 898, 947, 996, 1045, 1094, 1147, 1192, 1241, 1290, 1339, 1388, 1437, 1490, 1535, 1584, 1633, 1682, 1731, 1780, 1833, 1878, 1927, 1976
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 7], {2, 2}]>0, 1, 0], {n, 2000}], {1, 0}]][[1]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, May 21 2015 *)
CROSSREFS
Sequence in context: A249689 A043402 A044154 * A034720 A232050 A119285
KEYWORD
nonn,base
STATUS
approved