my way of thinking is not elegant

but anyways , see what I did -

we have the range 661-998

1. two 1st digits are the same

then we have-

661-669 (8 options (exclude 666))

770-779(9 options (exclude 777))

880-889 (9 options (exclude 888))

990-998 (9 options (exclude 999))

total=9*3+8=35

2.the 1st and the last are the same

then we have

6*6 (3 options- 676 686 696))

7*7 (9 options (exclude 777))

8*8 (9 options (exclude 888))

9*9 (9 options (exclude 999))

total=9*3+3=30

3. the 2nd and the 3d terms are the same.

then we have

66x- none option, since our first two digits are already the same, and the 3d cant be the same

7xx -9 options (exclude 777)

8xx- 9 options (exclude 888)

9xx 9 options (exclude 999)

total=9*3=27

30+35+27=92

cant find the rest 3 numbers to get 95. I will appreciate if someone helps me

_________________

Happy are those who dream dreams and are ready to pay the price to make them come true