All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Completing a triplet (Posted on 2018-02-24) Difficulty: 2 of 5
Given a^2+15226=c^2,

How many solutions (a,c) are there such that both numbers are positive integers?

Please comment upon the unexpected result.

See The Solution Submitted by Ady TZIDON    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts computer findings | Comment 1 of 5
DefDbl A-Z
Dim crlf$


Private Sub Form_Load()
 Form1.Visible = True
 Text1.Text = ""
 crlf = Chr(13) & Chr(10)
 
 For a = 1 To 9999
    preva2 = a2
    a2 = a * a: c2 = a2 + 15226
    If a2 - preva2 > 16000 Then Text1.Text = Text1.Text & "***" & crlf: Exit For
    sr = Int(Sqr(c2) + 0.5)
    If sr * sr = c2 Then
      Text1.Text = Text1.Text & a & Str(c) & "    " & a2 & Str(c2) & crlf
      ct = ct + 1
    End If
 Next a 
 
 Text1.Text = Text1.Text & crlf & ct & " done"
  
End Sub

finds no solutions.

  Posted by Charlie on 2018-02-24 14:05:52
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (18)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information