- #1

Chris Miller

- 371

- 35

- TL;DR Summary
- if is_even(x) then x=+x/2 else x=(x+1)-(x+1)/2 reduces to 2 for any x proof

How would one prove that, for any integer x (where x>1), this series always reduces to 2?

if is_even(x)

x=x+(x/2)

else

x=(x+1)-((x+1)/2)

end

if is_even(x)

x=x+(x/2)

else

x=(x+1)-((x+1)/2)

end