memoized number method