import math
#given
Vrms=0.3; #in V
CF=0.75; #in V/mW
Pi=Vrms/CF;
print" input power ",round(Pi,4),"mW";
import math
#given
Di=155; #in Mb/s
sl=10**-3*Di*10**6; #in bitstream
#PRBS=2**x-1=sl;
x=log(sl+1)/log(2); #equation is made to pick value of x
print" PRBS =(2^",int(x),")-1";