769. Binary Quadratic Form II

Consider the following binary quadratic form:

f(x,y)=x2+5xy+3y2

A positive integer q has a primitive representation if there exist positive integers x and y such that q=f(x,y) and gcd(x,y)=1.

We are interested in primitive representations of perfect squares. For example:
172=f(1,9)
872=f(13,40)=f(46,19)

Define C(N) as the total number of primitive representations of z2 for 0<zN.
Multiple representations are counted separately, so for example z=87 is counted twice.

You are given C(103)=142 and C(106)=142463

Find C(1014).

769. 二元二次型 II

考虑如下的二元二次型:

f(x,y)=x2+5xy+3y2

若存在正整数 x,y 使得 q=f(x,y)gcd(x,y)=1,则称正整数 q 存在本原表示。

我们对完全平方数的本原表示很感兴趣,例如:
172=f(1,9)
872=f(13,40)=f(46,19)

C(N) 为所有在 [1,N2] 内的完全平方数的本原表示数量的总和。如 C(103)=142C(106)=142463。不同的表示方法计算多次,如 872 的两种本原表示应被计算两次。

C(1014)


这个链接 回到源站。

这个链接 回到详细版题目目录。