[go: up one dir, main page]

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

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