Utilities and sequence generation for OEIS