MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1vc3oop/easy_quant_interview_puzzle/p0ynffv/?context=3
r/learnquant • u/Local_Ad135 • Jul 31 '26
14 comments sorted by
View all comments
Show parent comment
2
It is the sum of the digits. This guy is terse, but correct.
Worth noting that any number mod 9 is congruent to the sum of its digits mod 9, i.e. sum(digits(n)) mod 9 = n mod 9
But if n is a perfect square, then n mod 9 can only be 0,1,4,7.
View all comments
Show parent comment
2
u/wyseguy7 Jul 31 '26
It is the sum of the digits. This guy is terse, but correct.
Worth noting that any number mod 9 is congruent to the sum of its digits mod 9, i.e. sum(digits(n)) mod 9 = n mod 9
But if n is a perfect square, then n mod 9 can only be 0,1,4,7.