f(7) is (1,2,4) because 7 is 1+2+4.
In reply to Re^2: mini-golf: convert integer into list of powers of two by tobyink in thread mini-golf: convert integer into list of powers of two by xyzzy