You can create an array with some elements, get the factors of a number (such as 16), and while you get each of the factors, place the factors in the array. Every time you find a factor, divide the number by this factor before you search the next factor (to avoid getting the same factor over and over again).
Chat with our AI personalities
make a 4 by 4 array like this four sticks in 4 rolls get it
The proper factors of 16 are 1,2,4, and 8 :)
The factors of 15 are: 1, 3, 5, 15 The factors of 16 are: 1, 2, 4, 8, 16
16 has five factors: 1, 2, 4, 8, 16.
The factors of 9 are 1, 3, 9 The factors of 16 are 1, 2, 4, 8, 16 The common factor of 9 and 16 is 1