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

A044303
Numbers n such that string 5,7 occurs in the base 9 representation of n but not of n-1.
0
52, 133, 214, 295, 376, 457, 468, 538, 619, 700, 781, 862, 943, 1024, 1105, 1186, 1197, 1267, 1348, 1429, 1510, 1591, 1672, 1753, 1834, 1915, 1926, 1996, 2077, 2158, 2239, 2320, 2401, 2482, 2563, 2644, 2655, 2725, 2806
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {5, 7}]>0, 1, 0], {n, 3000}], {0, 1}]][[2]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, Nov 26 2015 *)
CROSSREFS
Sequence in context: A120534 A122166 A205221 * A044684 A346882 A227703
KEYWORD
nonn,base
STATUS
approved