Question: Use scala to solve it In numerology a positive integer belongs to one of several orders. (Non-positive integers are considered to belong to order 0.)
Use scala to solve it
In numerology a positive integer belongs to one of several orders. (Non-positive integers are considered to belong to order 0.) Otherwise the order is computed using the following sacred formula:
family(n) * class(n) + genus(n)
The family of n is 1 if n is a multiple of 3, otherwise it's 2.
The class of 50 is 3, the class of all other numbers is 4.
The genus of a number is 5 if it is a multiple of 7, otherwise it's 6.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
