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

A044282
Numbers n such that string 3,4 occurs in the base 9 representation of n but not of n-1.
0
31, 112, 193, 274, 279, 355, 436, 517, 598, 679, 760, 841, 922, 1003, 1008, 1084, 1165, 1246, 1327, 1408, 1489, 1570, 1651, 1732, 1737, 1813, 1894, 1975, 2056, 2137, 2218, 2299, 2380, 2461, 2466, 2511, 2623, 2704, 2785
OFFSET
1,1
MATHEMATICA
Flatten[Position[Partition[Table[If[MemberQ[Partition[ IntegerDigits[ n, 9], 2, 1], {3, 4}], 1, 0], {n, 3000}], 2, 1], {0, 1}]]+1 (* Harvey P. Dale, Feb 25 2015 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 9], {3, 4}]>0, 1, 0], {n, 3000}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 14 2019 *)
CROSSREFS
Sequence in context: A142177 A281194 A063397 * A044663 A142228 A304241
KEYWORD
nonn,base
STATUS
approved