Let $S_N = (f_1(N), f_2(N), f_3(N), \ldots)$. If $N_1$ divides $N_2$, then $f_1(N_1)$ divides $f_1(N_2)$. Thus $S_{N_2}$ is unbounded if $S_{N_1}$ is unbounded. Call $N$ essential if $S_N$ is unbounded and $N \leqslant 400$ is not divisible by any smaller number $n$ such that $S_n$ is unbounded. Assume $N = p_1^{e_1}p_2^{e_2}\cdots p_k^{e_k}$ is essential. If $e_j = 1$ for some $j$, then $f_1(N) = f_1(\dfrac{N}{p_j})$. Let $n = \dfrac{N}{p_j}$ and note that $S_N$ and $S_n$ coincide after the first term and consequently $S_n$ is unbounded. This contradicts the fact that $N$ is essential. Thus $e_j \geqslant 2$ for all $1 \leqslant j \leqslant k$. Moreover, $(p_1p_2\cdots p_k)^2 \leqslant p_1^{e_1}p_2^{e_2}\cdots p_k^{e_k} = N \leqslant 400$; thus $p_1p_2\cdots p_k \leqslant \sqrt{400} = 20$. Because $2 \cdot 3 \cdot 5 > 20$ it follows that $k \leqslant 2$. First analyze the case when $n = 2^a \cdot 3^b$. In that case $f_2(n) = f_1(2^{2b-2} \cdot 3^{a-1}) = 2^{2a-4} \cdot 3^{2b-3}$; thus $S_n$ is unbounded if and only if $a \geqslant 5$ or $b \geqslant 4$, and $n$ is essential if and only if $n = 2^5$ or $n = 3^4$. If $k = 1$, then $N = p^e$ for some prime $p \leqslant 19$. The cases $p = 2$ or $p = 3$ have been considered before. If $p = 5$, then $f_1(5^a) = 2^{a-1} \cdot 3^{a-1}$ and because $a \leqslant 3$, no power of $5$ in the given range is essential. If $p = 7$, then $f_1(7^a) = 2^{3a-3}$, and thus $N = 7^3$ is essential. If $p \geqslant 11$, then $p^3 > 400$. Because $f_1(11^2) = 2^2 \cdot 3$, $f_2(13^2) = f_1(2 \cdot 7) = 1$, $f_1(17^2) = 2 \cdot 3^2$, and $f_2(19^2) = f_1(2^2 \cdot 5) = 3$, no powers of $11, 13, 17,$ or $19$ are essential. If $k = 2$, then the only possible pairs of primes $(p_1, p_2)$ are $(2, 3)$, $(2, 5)$, $(2, 7)$, and $(3, 5)$. The pair $(2, 3)$ was analyzed before and it yields no essential $N$. If $N = 2^a \cdot 5^b \leqslant 400$ is essential, then $2 \leqslant a \leqslant 4$ and $b = 2$. Moreover $f_1(N) = 2 \cdot 3^a$, so $a = 4$ and thus only $N = 2^4 \cdot 5^2$ is essential in this case. If $(p_1, p_2) = (2, 7)$ or $(3, 5)$ and $N = p_1^{e_1}p_2^{e_2} \leqslant 400$ is essential, then $N \in \{2^2 \cdot 7^2, 2^3 \cdot 7^2, 3^2 \cdot 5^2\}$. Because $f_1(2^2 \cdot 7^2) = 2^3 \cdot 3$, $f_1(2^3 \cdot 7^2) = 2^3 \cdot 3^2$, and $f_1(3^2 \cdot 5^2) = 2^3 \cdot 3$, it follows that there are no essential $N$ in this case. Therefore the only essential values of $N$ are $2^5 = 32$, $3^4 = 81$, $7^3 = 343$, and $2^4 \cdot 5^2 = 400$. These values have $\lfloor\dfrac{400}{32}\rfloor = 12$, $\lfloor\dfrac{400}{81}\rfloor = 4$, $\lfloor\dfrac{400}{343}\rfloor = 1$, and $\lfloor\dfrac{400}{400}\rfloor = 1$ multiples, respectively, in the range $1 \leqslant N \leqslant 400$. Because there are no common multiples, the required answer is $12 + 4 + 1 + 1 = 18$.