Recursiva, 20 bytes
smBa++'=0%'Va'a:a!0'
Explanation:
smBa++'=0%'Va'a:a!0' - Input to a; 20
s - sum up; 42
m - map with; [1, 0, 3, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15]
Ba - Range; [1,2..20]
++'=0%'Va'a:a!0' - function, evaluates to 0 if param cannot divide a; [20]