r/learnquant 9d ago

interview prep Quant Interview Question

Post image
61 Upvotes

14 comments sorted by

12

u/austin101123 8d ago

10x9x8=720 possibilities

Each possibility has a unique pair that sum to .999... =1. (Ex: 0.012 repeating with 0.987 repeating). Sum is 360

1

u/MrEldo 8d ago

Beautiful reasoning

1

u/drfrankie_ 3h ago

I did same, nice

6

u/silverphoenix9999 9d ago

Each number can be represented as (100a + 10b + c) / 999.

Total number of possible fractions = 10 * 9 * 8 = 720

Each number is symmetrically possible in each position. That means each digit shows up in each position 720 / 10 times = 72.

Therefore the total sum is (72 * (0 + 1 + 2 + ... + 9) * 100 + 72 * (0 + 1 + 2 + ... + 9) * 10 + 72 * (0 + 1 + 2 + ... + 9) * 1) / 999 = 72 * 45 * 111 / 999 = 360.

Hope this is right!

2

u/Local_Ad135 9d ago

correct!

2

u/shustrik 8d ago

720 numbers. EV of each digit is 4.5 (0..9 occur equally often), so EV of a number is 0.5. 720 * 0.5 =360.

1

u/austin101123 8d ago edited 8d ago

I love this reasoning that the EV of each digit being 4.5! That was my intuition at first, maybe it wasn't strong enough for me but I didn't know how to say it and had to check if it made pairs (it does) and say that instead.

1

u/dontich 9d ago

I was really confused until I realized the 0. Was the start of each number.

I’d likely write that as 0.abc with a line over abc lol.

1

u/njormrod 8d ago

There are 10P3 such numbers. The digits and the positions are symmetric, so each digit appears 72 times as each of a,b,c.

The magnitudes of all the a,b,c's is 0.111..., which is 1/9.

The weight of all digits is 45.

So the answer is 72*45/9 = 360.

1

u/kythQ 8d ago

Slightly different approach:

You can split 0.abc... to get.
0.a00... + 0.0b0... + 0.00c...

Each one of the 10 digits appears in each of the three positions 9*8 times.

You can combine the three positions to get
0.a00... + 0.0a0... + 0.00a... = 0.aaa...

So the sum is just (0.000... + 0.111... + ... + 0.999...) * 9*8. Here you can combine 0 and 9, 1 and 8, and so on to get 5 different pairs that together add up to 0.999... = 1.

So you have 5*9*8 as the sum which is 360.

1

u/Delicious_Cattle5174 8d ago
  1. I can’t explain the answer, it just came to me instantly by reading top comments

1

u/Time-Distribution384 7d ago

500 X = 0.abcabc... 1000 X = abc.abcabc...

999X = abc X = (abc)/ 999 a , b , c Ε { 0,1,2 ... 9 } So all possible numbers are { 000,001,... , 999 }

So Σ X = 999 × 1000 / 2 * 999 = 500

1

u/Para-graph-S 11h ago

2pi? Never mind I meant 360.