compute inherent numbers for an input array.