[go: up one dir, main page]

login
A044772
Numbers n such that string 5,9 occurs in the base 10 representation of n but not of n+1.
0
59, 159, 259, 359, 459, 559, 599, 659, 759, 859, 959, 1059, 1159, 1259, 1359, 1459, 1559, 1599, 1659, 1759, 1859, 1959, 2059, 2159, 2259, 2359, 2459, 2559, 2599, 2659, 2759, 2859, 2959, 3059, 3159, 3259, 3359, 3459, 3559
OFFSET
1,1
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {5, 9}]>0, 1, 0], {n, 4000}], {1, 0}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jan 13 2019 *)
CROSSREFS
Sequence in context: A142422 A255352 A044391 * A341659 A279099 A142799
KEYWORD
nonn,base
STATUS
approved