The Decimal and Octal Digits of √n