login
A044808
Numbers n such that string 9,5 occurs in the base 10 representation of n but not of n+1.
0
95, 195, 295, 395, 495, 595, 695, 795, 895, 959, 995, 1095, 1195, 1295, 1395, 1495, 1595, 1695, 1795, 1895, 1959, 1995, 2095, 2195, 2295, 2395, 2495, 2595, 2695, 2795, 2895, 2959, 2995, 3095, 3195, 3295, 3395, 3495, 3595
OFFSET
1,1
MATHEMATICA
Transpose[SequencePosition[Table[If[SequenceCount[IntegerDigits[n], {9, 5}]>0, 1, 0], {n, 4000}], {1, 0}]][[1]] (* The program uses the SequencePosition and SequenceCount functions from Mathematica version 10 *) (* Harvey P. Dale, May 24 2016 *)
CROSSREFS
Sequence in context: A039552 A063371 A044427 * A116113 A051400 A225931
KEYWORD
nonn,base
STATUS
approved