f ( x ) is a function such that f ( 2 x + 1 ) = 2 f ( x ) + 1 for all real numbers x and f ( 0 ) = 2 . find the value of f ( 3 ) .
n0 = 2.0
n1 = 1.0
n2 = 2.0
n3 = 1.0
n4 = 0.0
n5 = 2.0
n6 = 3.0
t0 = n0 * n6
t1 = n0 * t0
answer = t1 - n1
print(answer)