small program that generates terms in OEIS sequence A016278