login
A044655
Numbers n such that string 2,5 occurs in the base 9 representation of n but not of n+1.
0
23, 104, 185, 215, 266, 347, 428, 509, 590, 671, 752, 833, 914, 944, 995, 1076, 1157, 1238, 1319, 1400, 1481, 1562, 1643, 1673, 1724, 1805, 1943, 1967, 2048, 2129, 2210, 2291, 2372, 2402, 2453, 2534, 2615, 2696, 2777, 2858
OFFSET
1,1
MATHEMATICA
Select[Range[3000], MemberQ[Partition[IntegerDigits[#, 9], 2, 1], {2, 5}] && !MemberQ[Partition[IntegerDigits[#+1, 9], 2, 1], {2, 5}]&] (* Harvey P. Dale, Nov 03 2013 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {2, 5}]>0, 1, 0], {n, 3000}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 14 2021 *)
CROSSREFS
Sequence in context: A138715 A096324 A044274 * A231439 A180517 A142244
KEYWORD
nonn,base
STATUS
approved