I am sorry to have been so late posting a solution to the math puzzle in my October Diary
. The solution is here
As I note in the solution: "It's certainly a very
cute problem … (Defined to mean: It'll waste hours of your time.)"
Many thanks to the friend who sent me that.