 All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars  perplexus dot info  Just count them ! (Posted on 2019-04-09) How many integer solutions has the following equation:
sqrt(x)+sqrt(y)=sqrt(3888)?

Assume x>y.

 See The Solution Submitted by Ady TZIDON No Rating Comments: ( Back to comment list | You must be logged in to post comments.) computer solution | Comment 1 of 2
DefDbl A-Z
Dim crlf\$

Text1.Text = ""
crlf\$ = Chr(13) + Chr(10)
Form1.Visible = True
DoEvents

For x = 0 To 3888
For y = 0 To x
summ = Sqr(x) + Sqr(y)
diff = Abs(Sqr(3888) - summ)
If diff < 0.0000000001 Then
Text1.Text = Text1.Text & x & Str(y) & crlf
ct = ct + 1
End If
Next
Next

Text1.Text = Text1.Text & ct & " done"
End Sub

lists integral solutions to sqrt(x)+sqrt(y)=sqrt(3888):

` 972 9721083 8671200 7681323 6751452 5881587 5071728 4321875 3632028 3002187 2432352 1922523 1472700 1082883 753072 483267 273468 123675 33888 0`

There are 19 solutions, but the first one listed has x=y rather than x>y, so the answer to the puzzle is 18.

 Posted by Charlie on 2019-04-09 10:55:30 Please log in:

 Search: Search body:
Forums (0)