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

Home > Just Math
Temperature Travail II (Posted on 2021-12-25) Difficulty: 3 of 5
Determine all possible pairs (x,p) of nonzero integers satisfying this relationship.

(p*x)o Celsius = (p*x2)o Fahrenheit

Provide valid reasoning for your answer.

** It may be noted that F = (9/5)*C +32, where C and F respectively denotes degree(s) Celsius and degree(s) Fahrenheit.

See The Solution Submitted by K Sengupta    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 1 of 3
clearvars
for Celsius=-273:100000
   Fahr=9*Celsius/5+32;
   if Fahr==floor(Fahr) && abs(Fahr)>=abs(Celsius)
       x=Fahr/Celsius;
       if x==floor(x)
          if mod(Celsius,x)==0
             disp([Celsius Fahr Celsius/x  x]) 
          end
       end
   end
end

finds

    °C    °F     p     x
    
   -40   -40   -40     1
     0    32     0   Inf
    10    50     2     5
   160   320    80     2

The second set is obviously not valid; the other three are.

  Posted by Charlie on 2021-12-25 19:54:34
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 (6)
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