ROSECODE 541
Lattice points on the trace 2
Given a square with side length . A curve is traced by point of the square as point slides along the x-axis and point slides along the y-axis.
The curve with is shown below.

For positive integer , it can be shown that at least 4 lattice points are on the curve. An inscribed polygon can be formed by the lattice points on the curve. Let be the ratio of the area of the inscribed polygon to the area of the closed curve with parameter . Then .
For , the maximum value of is , with .
Find the maximum value of and corresponding value for . If there are two or more values of taking the maximum value , give the smallest .
Answer format: [value of a],[value of R(a) (rounded to 12 digits after the decimal point)]
Example: 65,0.992825486421 for .
The curve with

For positive integer
For
Find the maximum value of
Answer format: [value of a],[value of R(a) (rounded to 12 digits after the decimal point)]
Example: 65,0.992825486421 for