1/n digit calculation