Nested square roots
Problem 585
Consider the term that is representing a nested square root. , and are positive integers and and are not allowed to be perfect squares, so the number below the outer square root is irrational. Still it can be shown that for some combinations of , and the given term can be simplified into a sum and/or difference of simple square roots of integers, actually denesting the square roots in the initial expression.
Here are some examples of this denesting:
As you can see the integers used in the denested expression may also be perfect squares resulting in further simplification.
Let F() be the number of different terms , that can be denested into the sum and/or difference of a finite number of square roots, given the additional condition that . That is,
with , , , and all being positive integers, all and .
Furthermore and are not allowed to be perfect squares.
with , , , and all being positive integers, all and .
Furthermore and are not allowed to be perfect squares.
Nested roots with the same value are not considered different, for example , and , that can all three be denested into , would only be counted once.
You are given that F(10)=17, F(15)=46, F(20)=86, F(30)=213 and F(100)=2918 and F(5000)=11134074.
Find F(5000000).
Find F(5000000).