The number immediately preceding 777 in octal is 776 (counting down: 777 → 776). The number immediately before 1111 in binary is 1110 (binary counting: ..., 1101, 1110, 1111, 10000, ...). Note that (777)₂ would be invalid since binary digits are only 0 and 1.