D. Applegate, M. LeBrun and N. J. A. Sloane,
Dismal Arithmetic, arxiv:1107.1130 [math.NT], July 2011. [Note: we have now changed the name from "dismal arithmetic" to "lunar arithmetic" - the old name was too depressing]
D. Applegate, M. LeBrun, and N. J. A. Sloane,
Dismal Arithmetic, J. Int. Seq. 14 (2011) # 11.9.8.