wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> hard >> Upside Down LCD display
(Message started by: waka on Jul 26th, 2002, 9:42pm)

Title: Upside Down LCD display
Post by waka on Jul 26th, 2002, 9:42pm

Hi!

Worked on this problem for a while, then got annoyed and brute-forced the answer.

So now I am stuck with the solution and no process.

Not really sure how to calculate this, although it seems that you count 7 numbers as "flippable" for every 10 digits, 70 for each 100, 700 for each 1000, etc.  So, the millionth digit would be 7^6th flippable combination, but this doesn't tell me how to actually find the millionth flippable combo.  Doh!

waka

Title: Re: Upside Down LCD display
Post by klbarrus on Jul 27th, 2002, 11:57pm
Hey waka, what answer did you get?
Was is 11555511 by any chance?
If so, I might have a method and can explain it.  But right now I'm not sure it is correct and need to double check some stuff.

Title: Re: Upside Down LCD display
Post by NickH on Jul 28th, 2002, 7:56am
We are essentially counting in base 7, using LCD digits 0, 1, 2, 5, 6, 8, 9.  The question is asking for the base 7 representation of the decimal number 1000000.  

This can be found by repeated (decimal) division of 1000000 by 7, reading the remainders in reverse order.  We get 11333311.  Then convert to LCD digits to get 11555511.

Title: Re: Upside Down LCD display
Post by klbarrus on Jul 28th, 2002, 11:28am
Yes, that is my method.  The only digits that can be reversed are 1,2,5,6,8,9,0; so there are 7 number for each 10, 49 for each 100, 343 for each 100, etc.

So convert to base 7, and then translate the result to LCD representation.  

E.g.  15th flippable number: 15 base 10 = 21 base 7, 2nd LCD digit is 2, 1st LDC digit is 1 -> 21.  17th flippable number: 17 base 10 = 23 base 7, 2nd LCD digit is 2, 3rd LCD digit is 5 -> 25.  1000000 is 11333311 in base 7, 1st LCD digit is 1, 3rd LCD digit is 5 -> 11555511

Title: Re: Upside Down LCD display
Post by Eric Yeh on Aug 2nd, 2002, 10:05am
I agree with this answer for the problem as stated; however, I think I've also seen the problem stated in such a way where flipping "10" should not be valid.  ("01" isn't a particularly valid number, after all!)  If anyone's interested, this is a variant that throws a twist into the simpler base 7 soln.

Best,
Eric

Title: Re: Upside Down LCD display
Post by continuum on Aug 29th, 2002, 7:15pm
My method and answer were the same too... But I had to use the information that 21 is the 15th flippable number, what I disagree. I think 0 should be considered the first flippable number, rather than 1. After all, 0<1 and 0 can be displayed in an LCD.

Title: Re: Upside Down LCD display
Post by yoyoy on Oct 11th, 2013, 7:59am
I wanted to understand that why has this been said:
"We are essentially counting in base 7, using LCD digits 0, 1, 2, 5, 6, 8, 9. "?
And why has base 7 come into picture at all?

Title: Re: Upside Down LCD display
Post by Grimbal on Oct 11th, 2013, 9:26am
Because we are dropping all number that contain 3, 4 or 7.
It is like counting with only the remaining 7 digits.
So it is like counting in base 7 where the digits are represented by 0,1,2,5,6,8,9.

Title: Re: Upside Down LCD display
Post by yoyoy on Oct 11th, 2013, 9:33am
Woohoo! got it, most of what you said.
But why are we dropping 3,4 and 7?

Title: Re: Upside Down LCD display
Post by Grimbal on Oct 11th, 2013, 9:50am
Because these numbers cannot be reversed.  We are not dropping 3,4 and 7, we are dropping the whole number that contains any of these digits.

Title: Re: Upside Down LCD display
Post by yoyoy on Oct 11th, 2013, 11:48am
Sorry, but this is what I don't understand again. Why can't such numbers be reversed? What is meant by being able to reverse? Give example.

Title: Re: Upside Down LCD display
Post by towr on Oct 11th, 2013, 12:16pm

on 10/11/13 at 11:48:33, yoyoy wrote:
Sorry, but this is what I don't understand again. Why can't such numbers be reversed? What is meant by being able to reverse? Give example.
By reverse is meant upside down.
a 1 upside down is still a 1, the same for 2,5,8 and 0. A 6 upside down is 9 and vice versa.
But a 3 upside down is E,  4 upside down is h and 7 upside down is L, none of which are digits, and so don't form a valid number (except if you allow numbers in 'scientific notations' like 21E12 = 21 * 10 12)

Title: Re: Upside Down LCD display
Post by yoyoy on Oct 11th, 2013, 12:36pm
Yes.yes.yes!
I was about to post that I have got it!!

Why did they say that reverse of 1995 is 5661? (It is its base 7 representation though)
It should be 1662. No?

Title: Re: Upside Down LCD display
Post by Grimbal on Oct 11th, 2013, 12:47pm
Type 1995 on a pocket calculator and return it upside down.



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board