A weak binary representation of a nonnegative integer n is a representation n=a_0+2 \cdot a_1+ 2^2 \cdot a_2+\ldots such that a_i \in\{0,1,2,3,4,5\}. Determine the number of such representations for 513.
A weak binary representation of a nonnegative integer n is a representation n=a_0+2 \cdot a_1+ 2^2 \cdot a_2+\ldots such that a_i \in\{0,1,2,3,4,5\}. Determine the number of such representations for 513.