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

A044699
Numbers n such that string 7,4 occurs in the base 9 representation of n but not of n+1.
0
67, 148, 229, 310, 391, 472, 553, 611, 634, 715, 796, 877, 958, 1039, 1120, 1201, 1282, 1340, 1363, 1444, 1525, 1606, 1687, 1768, 1849, 1930, 2011, 2069, 2092, 2173, 2254, 2335, 2416, 2497, 2578, 2659, 2740, 2798, 2821
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {7, 4}]>0, 1, 0], {n, 3000}], {1, 0}]][[1]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, Mar 13 2016 *)
CROSSREFS
Sequence in context: A163303 A259956 A044318 * A142223 A033233 A335361
KEYWORD
nonn,base
STATUS
approved