Author |
Topic: Centigrade to Fahreheit (Read 651 times) |
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Centigrade to Fahreheit
« on: Oct 5th, 2003, 3:18am » |
Quote Modify
|
Converting 275oC to Fahrenheit we get 527oF. In fact, we could have just moved the 5 to the front. What is the next largest example where moving the last digit to the front gives the right answer?
|
« Last Edit: Oct 5th, 2003, 4:19am by ThudnBlunder » |
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
Sir Col
Uberpuzzler
impudens simia et macrologus profundus fabulae
Gender:
Posts: 1825
|
|
Re: Centigrade to Fahreheit
« Reply #1 on: Oct 5th, 2003, 4:21am » |
Quote Modify
|
Once again, a lovely puzzle, T&B. :: It seems that 275oC is the only example! Let us consider 3-digit examples, C=100x+10y+z. F=9C/5+32=180x+18y+9z/5+32, and we are trying to find this equal to 100z+10x+y. Equating and tidying up, 85(10x+y)+160=491z. So z must be divisible by 5; but this was obvious from the fact that F=9C/5+32, and C must divide by 5 to obtain integer F. However, we also know that z[ne]0, as this would produce a 2-digit number, by placing the zero at the front. Hence z=5. Therefore, 85(10x+y)=2295, giving 17(10x+y)=459[equiv]0 mod 9. Hence, 10x+y[equiv]0 mod 9, so, x+y[equiv]0 mod 9. That is, we're looking for, C, a 3-digit number of the form xy5, where x+y[equiv]0 mod 9. A quick test of possibilities fails in each case: 365, 455, 545. However, C[ge]545 produces F with 4-digits. My logical is a little faulty from here, but I will be bold enough to claim that no more solutions exist. It is faulty, because there remains a possibility that, F, having more digits than C, may end in zero, in which case it would produce a number with the same number of digits as C. Can anyone finish off my proof? ::
|
|
IP Logged |
mathschallenge.net / projecteuler.net
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Centigrade to Fahreheit
« Reply #2 on: Oct 5th, 2003, 4:42am » |
Quote Modify
|
For the 3-digit case, I get F = 100z + [(C-z)/10] and we know that z must equal 5. Quote:Can anyone finish off my proof? |
| No.
|
« Last Edit: Oct 5th, 2003, 7:55am by ThudnBlunder » |
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Centigrade to Fahreheit
« Reply #3 on: Oct 5th, 2003, 9:22am » |
Quote Modify
|
I've tried solving it a little differently using (10*a+b )*9/5+32= 10^i *b + a (where i is the number of digits in a) Since it's obvious b=5, we get 18*a+9+32= 10^i *5 + a so 17*a = 5 * 10^i - 41 which is easy enough to try and find for different i's. I haven't found any other number in the range of C-integers (2^32) But I don't yet see any fundamental reason why 5 * 10^i - 41 wouldn't be divisable by 17 for i's over 2.
|
|
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Sir Col
Uberpuzzler
impudens simia et macrologus profundus fabulae
Gender:
Posts: 1825
|
|
Re: Centigrade to Fahreheit
« Reply #4 on: Oct 5th, 2003, 12:59pm » |
Quote Modify
|
Towr, what a clever approach... :: The problem reduces to finding 5x10i–41[equiv]0 mod 17, or 5x10i[equiv]7 mod 17. Using the good old Windows calculator again, I found 5x1018[equiv]7 mod 17. Therefore a=(5x1018–41)/17=294117647058823527. Hence the next example is, 29411764705882352750C. ::
|
|
IP Logged |
mathschallenge.net / projecteuler.net
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Centigrade to Fahreheit
« Reply #5 on: Oct 5th, 2003, 1:57pm » |
Quote Modify
|
hmm.. I should have been able to find that.. If I had programmed more cleverly..
|
|
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Centigrade to Fahreheit
« Reply #6 on: Oct 6th, 2003, 3:31am » |
Quote Modify
|
Quote:hmm.. I should have been able to find that.. If I had programmed more cleverly.. |
| : All the solutions are given by C = 5*(1016m+3 - 65)/17 where m = 0,1,2...
|
« Last Edit: Oct 21st, 2003, 2:56am by ThudnBlunder » |
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
Sir Col
Uberpuzzler
impudens simia et macrologus profundus fabulae
Gender:
Posts: 1825
|
|
Re: Centigrade to Fahreheit
« Reply #7 on: Oct 6th, 2003, 3:40am » |
Quote Modify
|
Very clever, T&B, but can you prove that your formula works for all values of m and provides the complete solution set?
|
|
IP Logged |
mathschallenge.net / projecteuler.net
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Centigrade to Fahreheit
« Reply #8 on: Oct 6th, 2003, 6:36am » |
Quote Modify
|
Quote:Very clever, T&B, but can you prove that your formula works for all values of m and provides the complete solution set? |
| Yes, I can. Let C = xn-1*10n-1 + ... + x1*10 + x0 Then F = x0*10n-1 + (C - x0)/10. F = (9C/5) + 32 => x0 = 5 Hence (9C/5) + 32 = 5*10n-1 + [(C - 5)/10] This gives C = 5*(10n - 65)/17 As 10 is a primitive root modulo 17, it follows that C is an integer iff n is of the form 16m+3.
|
« Last Edit: Oct 6th, 2003, 12:05pm by ThudnBlunder » |
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
Sir Col
Uberpuzzler
impudens simia et macrologus profundus fabulae
Gender:
Posts: 1825
|
|
Re: Centigrade to Fahreheit
« Reply #9 on: Oct 6th, 2003, 10:18am » |
Quote Modify
|
Nice, but could you please explain the last past? Quote:As 10 is a primitive root modulo 17, it follows that C is an integer iff n is of the form 16m+3. |
|
|
|
IP Logged |
mathschallenge.net / projecteuler.net
|
|
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
The dewdrop slides into the shining Sea
Gender:
Posts: 4489
|
|
Re: Centigrade to Fahreheit
« Reply #10 on: Oct 6th, 2003, 11:28am » |
Quote Modify
|
Quote:Nice, but could you please explain the last past? |
| You asked for a proof. Fair enough, I gave one. But now you are expecting me to understand it?? OK, here is my primitive attempt: We have C = 5*(10n - 65)/17 Hence we need 10n = 65 (mod 17) = 14 (mod 17) By Fermat's Little Theorem, 1016 = 1 (mod 17) 1016m = 1 (mod 17) 1016m+3 = 1000 (mod 17) = 14 (mod 17) Because 10 is a primitive root mod 17, 1016m+i will run through all possibilities mod 17 Here, i = 3 gives us our 14 (mod 17)
|
« Last Edit: Oct 6th, 2003, 11:45am by ThudnBlunder » |
IP Logged |
THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
|
|
|
|