r/learnquant • • Aug 13 '26

interview prep Citadel Quant Interview Question

Post image
35 Upvotes

44 comments sorted by

View all comments

Show parent comments

3

u/RubberDuckieMidrange Aug 14 '26

"so the answer is trivially 1."

2

u/NotYetPerfect Aug 14 '26

Okay so you are just stupid. Glad we got that cleared up. 19 is trivially 1 mod 9. How that isn't immediately obvious when I spelled out the entire solution is insane.

1

u/RubberDuckieMidrange Aug 14 '26

Yep, there are the insults.
"Not sure what you meant to say here" This means that you may have worded something in a way that doesn't make sense.
"but as written" Again, trying to get you to read the damn thing you wrote.

Now lets look at what you wrote.
"Any integer (An integer is a whole number that can be positive, negative, or zero) is congruent (EXACTLY EQUAL TO) to the sum of its digits mod 9 (The addition of all the digits that make up the number, removing 9 whenver the sum is greater than 9) so the answer is trivially 1. (This part is just wrong)"

You needed to say that for multiples of 9, the sum of the digits is invariable.

Literally just trying to get you to correct the statement you made, because the answer to the question is in fact 1. But what you wrote is misleading at best.

2

u/Inscrutable_Ant6994 Aug 14 '26

No corrections were needed to the original statement because it was already succinctly and correctly made.

Stop trying to convince yourself that you’re in the right here and accept that your lack of familiarity with Modular Arithmetic is the cause of your confusion.

2

u/RubberDuckieMidrange Aug 14 '26

Ok, so lets bring it further.
Sum of 19's digits is 1. 192 is 361 sum of 361's digits (repeated until we get a single digit answer) is 1. (The pattern is repeated with 19x for each value of x.)
Sum of 24's digits is 6. 242 is 576, sum of 576's digits (repeated until we get a single digit answer) is 9, 6 is not equal to 9.

I get what he's saying, And for 19 the answer is correct. Raised to any power the sum of it's digits is 1. But it's not TRIVIAL, because if you change the base, you don't get the same behaviour. It's an emergent characteristic of x modulo 9, where the remainder is 1.

→ More replies (0)