title: Problem 586 date: 2017/01/14 22:00:00 --- *** # [Problem 586](https://projecteuler.net/problem=586) *** [Xem đề gốc (tiếng Anh)](https://projecteuler.net/problem=586) ## **Dạng toàn phương nhị phân** $f(n)$ là số biểu diễn $n = ax^2 + bxy + cy^2$ nguyên thủy. Tính $\sum_{n=1}^{10^6} f(n)$. ***