A=Knight B=Knave
AAB*AAB*AAB*AAB*ABA*AAB*AAB...AAB*ABA*AAB*AAB etc.
There is one knave for every two knights, even in the threesome where it's ABA instead of AAB. So one third of 1995=665.