Is there a way to quickly count how many times can a number fit in another number. Eg. in a set of 5 dots, 0 can be arranged 1 different ways, 1 can be arranged 5 different ways, 2 can be arranged 10 different ways, 3 is 10, 4 is 5, 5 is 1. No spot may be overlap and symmetrical positions count as 2