Can you explain how you weigh the balls? How many do you weigh at a time and how do you decide which ones to weigh?
I'm trying to follow your solution but I'm confused about this one thingn
The traditional solutions do things like:
1) split into 4 piles A,B,C. compare A,B on the balance.
2) If they balance, bad coin in 4 in pile C can easily be found.
3) If they don't balance, you know the 4 in C are good. At this point you have to fiddle by mixing coins among piles cleverly to get more weighings. But you can do it in three total. If I recall, seomthing like one from A, three from C, versus three from B, one from C, or something like that, is the next weighing.
This type of solution requires choices and branching. Mine was nicer I think since it requires no branches, and the weighings themselves spit out the bad coin number in base 3.