HERE IS MY BINARY EQUATION! please help me by commenting on how to fix it and by the way the x#2 just means x number two (second x represents the same thing as the first x but it has a different value).

binary equation

({x=2^(y-1)}+e)

"1"= really means that place value is true

x= value of "1" in any spot ex. 100, 1= 2^2 then 2^2 =x

y=if each place value spot is worth 1, y is what the place value is ex. if 1000 y=4

n= number of "1"s

t= number of individual place values ex. 1001

e=value of x second third fourth, etc. times through.

SAMPLE PROBLEM

101

{x=1) + (x_2= 4)= 5