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

 Celsius- A Fahrenheit Multiple? (Posted on 2016-06-21)
Find all pairs (N, X) of integers such that:

Xo Celsius = N*Xo Fahrenheit

*** C = 5(F-32)/9, where C and F respectively denotes Celsius and Fahrenheit scales of temperature.

 No Solution Yet Submitted by K Sengupta No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 No Subject | Comment 1 of 7
DefDbl A-Z
Dim crlf\$

Form1.Visible = True

Text1.Text = ""
crlf = Chr\$(13) + Chr\$(10)

For c = -273 To 1000000
DoEvents
f = c * 9 / 5 + 32
If c <> 0 Then
ratio = f / c
If ratio = Int(ratio) Then
Text1.Text = Text1.Text & c & Str(f) & Str(ratio) & crlf
End If
End If
Next

Text1.Text = Text1.Text & " done"

End Sub

finds

-40°C = -40°F; multiple is 1
10°C = 50°F; multiple is 5
160°C = 320°F; multiple is 2

Going to a million degrees Celsius was overkill. At 10000°C the ratio of Fahrenheit to Celsius is already 1.8032 and asymptotically approaching 1.8, so no more integral multiples would be possible.

 Posted by Charlie on 2016-06-21 15:23:03

 Search: Search body:
Forums (0)