problems 4-6 and OEIS b-file