Project Euler Problem 233

后端 未结 3 1830
遥遥无期
遥遥无期 2021-02-08 13:53

I\'ve decided to tackle Project Euler problem 233 next but I\'m having some major problems! I\'ve done some analysis and have made some quite nice progress but I\'ve become stuc

3条回答
  •  野性不改
    2021-02-08 14:43

    Hint 1: The circle has radius n/√2, which is never an integer for integer n, so A046080 never applies.

    Hint 2: Don't bother sliding the circle around. Pick it up off the graph paper and just think about it, the square that defines it, and the as yet unknown points of interest on the circumference in relation to each other.

    Hint 3: The angle inscribed in a half circle is always 90 degrees.

    Hint 4: How many ways can a number be written as the sum of two squares?

    Bonus hint to be used liberally throughout: symmetry!


    SPOILER ALERT!


    Don't read further until you try to work it out from the hints above

    If those hints aren't sufficient, here are some of the missing steps to interleave with the hints above:

    Hint 1.5: You're going to have to change your way of looking at the problem since the approach you were using is based on a flawed premise.

    Hint 2.5: Think about a lattice point on the left side of the arc between the top corners of the square. By symmetry there is another such point directly to the right of it and a third directly below. What can you say about the distance between these points and about the trangle they form?

    Hint 3.5: How can you determine how many lattice points there are on the left side of the arc between the top corners of the square for any given n?

提交回复
热议问题