Seven-segment display

S S is a function that takes in a number and returns the number of segments required for a seven-segment display to display that number.

For example, S ( 2018 ) = 5 + 6 + 2 + 7 = 20 : S(2018) =5+6+2+7= 20:

An integer p p is a seven-segment divisor if there is at least one integer n n such that n S ( n ) = p . \frac{n}{S(n)}=p.

Which of the following values cannot be a seven-segment divisor?

Details and Assumptions :

  • The display does not show leading zeros.
  • The digits are formed as follows:

17 18 19 20

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Mark Hennings
Jul 15, 2018

I am working with the following convention for the display of the digits (note in particular the formats of 6 6 , 7 7 and 9 9 ):

Since 17 S ( 255 ) = 255 17S(255) = 255 , 18 S ( 306 ) = 306 18S(306) = 306 and 20 S ( 320 ) = 320 20S(320) = 320 , each of 17 , 18 , 20 17,18,20 is a 7 7 -segment divisor.

If n N n \in \mathbb{N} is such that n = 19 S ( n ) n = 19S(n) , and if n n has N N digits, then n = 19 S ( n ) 19 × 7 N = 133 N n = 19S(n) \le 19 \times 7N = 133N . If N 4 N \ge 4 then 1330 N < 1 0 N 1330N < 10^N , and so n 133 N < 1 0 N 1 n n \le 133N < 10^{N-1} \le n , which is impossible. Thus n n must have at most 3 3 digits. Testing the numbers from 1 1 to 999 999 , we find that there is indeed no integer n N n \in \mathbb{N} such that n = 19 S ( n ) n = 19S(n) , and so 19 \boxed{19} is not a 7 7 -segment divisor.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...