AP triplets in a number stream