Pieces of Eight!

Logic Level 3

8 × 88888 8 k number of 8’s 8 \times \underbrace{88888\ldots8}_{k\text{ number of 8's}}

If the sum of digits of the number above equals to 1000, find the value of k k .


The answer is 991.

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.

2 solutions

Benjamin Eriksson
Aug 10, 2015

8 ( 8 1 0 n + 8 1 0 n 1 + . . . + 8 10 + 8 1 ) 8 * (8 * 10^n + 8 * 10^{n-1} + ... + 8 *10 + 8 * 1) 64 1 0 n + 64 1 0 n 1 + . . . + 64 10 + 64 1 ) 64 * 10^n + 64 * 10^{n-1} + ... + 64 *10 + 64 * 1)

1
2
3
4
5
6
7
8
9
11100
------
   64  
  640
 6400
64000
  ...
------
71104

Here we can see that after the first two additions we'll always have a pair of 6 and 4 with 1 as a carry. This addition will continue until the last one where we'll have 6+1 = 7. The sum of the digits is: 7 + ( k 2 ) 1 + 4 = 9 + k 7 + (k-2) * 1 + 4 = 9 + k 9 + k = 1000 = > k = 991 9 + k = 1000 => k = 991

Danish Ahmed
Aug 8, 2015

8 8 = 64 8*8=64

8 88 = 704 8*88=704

8 888 = 7104 8*888=7104

8 8888 = 71104 8*8888=71104

8 88888 = 711104 8*88888=711104

so it appears for k > 2 k>2 the pattern is 7 7 , followed by ( k 2 (k-2 ) 1 1 's, then a 0 0 and a 4 4 .

So from this we get that for k > 2 k>2 the sod is

7 + ( k 2 ) 1 + 0 + 4 = k + 9 7+(k-2)*1+0+4=k+9

so if we want

k + 9 = 1000 k+9=1000

k = 991 k=991

Moderator note:

How do you know the pattern holds for all such integers?

To the challenge master : The given logic is very obvious.

Swapnil Das - 5 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...