Write a program with the following properties:
it must be a quine, i.e. running it outputs precisely the program itself;
it must take no input;
for at least one integer k, it must be the case that deleting the kth character of the program results in a new program that takes no input and outputs precisely the integer k.
Scoring
Let n be the length of the program in characters.
Let r be the number of integers k for which deleting the kth character gives output k (i.e. the number of "right answers").
Let w = n - r (i.e. the number of "wrong answers").
Then your score is
w + n/r.
Your goal is to make the score as low as possible.
Further rules
The quine (without deletions) should not error.
Integers may be output in any reasonable consistent form, and may optionally be followed by one newline, but to count as a "right answer", nothing else should be output and the program should not error. For other choices of deleted character ("wrong answers"), the behavior of the program can be arbitrary.
Deleting a character means removing it and concatenating the remaining strings. So deleting the 3rd character of codegolf gives coegolf.
Optionally, "kth character" can be interpreted as 0-based, so that the possible "right" outputs are 0,1,...,n-1 (as opposed to the default of 1,2,...,n). However, the same convention must be used consistently for all k when computing the score.
Besides the usual information, the entry title should contain the score and should say if it is 0-based. Ideally your description should also list the "right" ks.
wambiguous. I expect you meanwto be(# of "wrong answers"), which isn - r, however as written it looks likew = n - r x (# of "wrong answers")... Also, it would be worth adding thatkis in1..nimmediately. It's specified in the "further rules", but not at the point wherekis defined. It's obvious in retrospect -- otherwisewis infinite -- but... still? \$\endgroup\$