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

Home > Just Math
xoF = (nx)oC (Posted on 2012-12-31) Difficulty: 3 of 5
If x degrees Fahrenheit = nx degrees Celsius, where each of n and x is a nonzero integer, determine all values of n and x for which this is possible.

Keeping all the other conditions unaltered, how about:
x degrees Celsius = nx degrees Fahrenheit?

Note:
Fahrenheit to Celsius:
oC= 5*(oF - 32)/9

Celsius to Fahrenheit :
oF= (°C*9/5) + 32

No Solution Yet Submitted by K Sengupta    
Rating: 3.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solutions | Comment 4 of 7 |

DEFDBL A-Z
CLS
FOR f = -300 TO 3000
 IF f <> 0 THEN
  c = (f - 32) * 5 / 9
  r = c / f
  IF r = INT(r) THEN PRINT f, r, c
 END IF
NEXT f
PRINT : PRINT
FOR c = -300 TO 3000
 IF c <> 0 THEN
  f = c * 9 / 5 + 32
  r = f / c
  IF r = INT(r) THEN PRINT c, r, f
 END IF
NEXT c

provides:

Part 1:

 F             n              C
-40            1            -40
-4             5            -20
 5            -3            -15
 32            0             0

Part 2:

 C             n             F

-40            1            -40
 10            5             50
 160           2             320

  Posted by Charlie on 2012-12-31 15:02:51
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 (0)
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