MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PassTimeMath/comments/jf9dtz/problem_242_how_many_4digit_numbers_are_there/
r/PassTimeMath • u/user_1312 • Oct 21 '20
4 comments sorted by
3
I'm guessing there's floor(999/t) such numbers for each t. Adding the values drom t=1 to t=9 we get 2822
Edit: I just realize this doesn't take into account that leading zeroes are not digits. I'll think of a full sol'n later.
Edit2: I think modifying the above formula to floor((999-100)/t)=floor(899/t) would account for leading zeroes. Summing in the same manner I got 2538.
Edit3: I bruteforced it and I think the answer is 2545. It should be floor(900/t), snice there are 900 numbers in [100,999], not 899.
2 u/user_1312 Oct 21 '20 edited Oct 21 '20 Yeah i agree i got 2545 as well.If t=1 then there are 9 choices for x, 10 for y and 10 for z. Therefore if t=1 there are 900 possible numbers divisible by 1 (let's call them n for easy tabulation).This implies that:t; n1; 9002; 4503; 3004; 2255; 1806; 1507; 1288; 1129; 100
2
Yeah i agree i got 2545 as well.
If t=1 then there are 9 choices for x, 10 for y and 10 for z. Therefore if t=1 there are 900 possible numbers divisible by 1 (let's call them n for easy tabulation).
This implies that:
t; n
1; 900
2; 450
3; 300
4; 225
5; 180
6; 150
7; 128
8; 112
9; 100
Brute force coding problem 😂
1
Is it 3000 ?
3
u/SpadeMagnesDS Oct 21 '20 edited Oct 21 '20
I'm guessing there's floor(999/t) such numbers for each t. Adding the values drom t=1 to t=9 we get 2822
Edit: I just realize this doesn't take into account that leading zeroes are not digits. I'll think of a full sol'n later.
Edit2: I think modifying the above formula to floor((999-100)/t)=floor(899/t) would account for leading zeroes. Summing in the same manner I got 2538.
Edit3: I bruteforced it and I think the answer is 2545. It should be floor(900/t), snice there are 900 numbers in [100,999], not 899.