Verification scripts for Badkobeh and Ochem's word b5 (3-interval exchange, 4n+1 complexity, critical exponent (5+sqrt(5))/4).
Run: python3 by_hand.py  and  python3 repetitions.py
