Seite 1 von 1

### Assignment 10 - Task 1.4

Verfasst: 23. Jan 2018 14:47
Hello,

Could it be that the test for the task 1.4 is wrong? The test demands that the result list contains a 1. My solution would not contain a 1 because it can not be expressed as a multiplication of 2, 3 or 5.

Chris

### Re: Assignment 10 - Task 1.4

Verfasst: 23. Jan 2018 14:55
I just realized that I understood the task completely wrong ... sorry..

### Re: Assignment 10 - Task 1.4

Verfasst: 25. Jan 2018 16:44
Could you share some of your insight? Why should 1 be included when it can not be written as a product of 2, 3 and 5?

### Re: Assignment 10 - Task 1.4

Verfasst: 25. Jan 2018 16:54
Well, it seems one should start with 1, regardless of its prime factors, no?
It probably helps for the recursive definition, too.

### Re: Assignment 10 - Task 1.4

Verfasst: 25. Jan 2018 17:51
VSchü hat geschrieben:
25. Jan 2018 16:44
Could you share some of your insight? Why should 1 be included when it can not be written as a product of 2, 3 and 5?
This had me confused for quite some time as well. 1 belongs to the list because 1 actually has no prime factors at all. Or in other words, an empty product is 1. So if we take zero 2s, zero 3s and zero 5s, we get a product of 1.