Determine all possible 7-digit perfect square(s) (in base 8) having the form aaabaaa, where a is a digit from 1 to 7 and b is a different digit from 0 to 7.
Note: While a solution is trivial with the aid of a computer program, show how to derive it without one.