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

A044602
Numbers n such that string 4,2 occurs in the base 8 representation of n but not of n+1.
0
34, 98, 162, 226, 279, 290, 354, 418, 482, 546, 610, 674, 738, 791, 802, 866, 930, 994, 1058, 1122, 1186, 1250, 1303, 1314, 1378, 1442, 1506, 1570, 1634, 1698, 1762, 1815, 1826, 1890, 1954, 2018, 2082, 2146, 2239, 2274, 2327
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {4, 2}]>0, 1, 0], {n, 2500}], {1, 0}]][[1]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, May 28 2015 *)
CROSSREFS
Sequence in context: A233031 A233028 A044221 * A159904 A282854 A165222
KEYWORD
nonn,base
STATUS
approved