A Math Contest P17 - Heatwaves

View as PDF

Submit solution

Points: 45
Time limit: 7.0s
Memory limit: 512M

Author:
Problem type

You are given an integer N>2 and a function χ:ZC such that

  1. χ(n)=χ(n+N);
  2. χ(n)=0gcd(n,N)1;
  3. χ(n)χ(m)=χ(nm);
  4. the nonzero values of χ has period φ(N).

Consider the unique function Lχ(s):CC such that

  1. when Re(s)>1, then Lχ(s)=n=1χ(n)ns;
  2. Lχ(s) is differentiable everywhere.

Find

  1. Lχ(s) for a given complex number s;
  2. a complex number s with a nonzero imaginary part such that Lχ(s)=0.
You are further informed that
  1. The conditions of the function χ are equivalent to the conditions of χ being a primitive Dirichlet character.
  2. Lχ(s) is the analytic continuation of the Dirichlet L-function onto the complex plane.
  3. Zeta functions can be analytically continued to any portion of the complex plane given by Re(s)>σ for real σ using the Euler-Maclaurin summation formula.
  4. If we let a=[χ(1)=1], and εχ=1iaNn=1Nχ(n)e2πin/N, and ξχ(s)=(Nπ)(s+a)/2Γ(s+a2)Lχ(s), then ξχ(s) satisfies ξχ(s)=εχξχ¯(1s).

Constraints

2<N1000

0Re(s)1 and |Im(s)|5

x{0,1} and 0y2z109 and 1z

For the first question, the jury answer is precise to 1050, and the magnitude of the difference between your answer and the jury answer should be less than 1012.

For the second question, the checker is precise to 1015, and the magnitude of Lχ(s) of your answer should be less than 109.

Input Specification

The first line contains an integer, N.

The next N lines contain three nonnegative integers x, y, and z each, representing χ(0),χ(1),,χ(N1) respectively. The three integers x,y,z correspond to xeyiπ/z.

The next line contains two real numbers, with at most 5 digits after the decimal point, representing the real and imaginary parts of s.

Output Specification

On the first line, output the real and imaginary parts for the first answer.

On the second line, output the real and imaginary parts for the second answer.

Sample Input

Copy
5
0 0 1
1 0 2
1 1 2
1 3 2
1 2 2
0.69 4.2069

Sample Output

Copy
1.5186663729999338699 -0.8641952653252008201
0.5000000000000000000 6.1835781954508539144

Explanation for Sample


Comments

There are no comments at the moment.