text
stringlengths
0
66.2k
S=20: 20^3=8000. Sum of digits: 8+0+0+0=8. Not 20. Reject.
S=21: 21^3=9261. Sum of digits: 9+2+6+1=18. Not 21. Reject.
So from all these, the valid numbers are 4913 (S=17) and 5832 (S=18).
Wait, let me check again for S=17 and S=18.
For S=17: 17^3 is 4913. Let me add the digits again: 4 + 9 + 1 + 3 = 17. Yes, correct.
For S=18: 18^3 is 5832. 5 + 8 + 3 + 2 = 18. Correct.
So those are the two numbers. Are there any others?
Wait, let me check if I missed any S. Let me go through each again:
S=10: 1000, sum 1. No.
S=11: 1331, sum 8. No.
S=12: 1728, sum 1+7+2+8=18. Not 12. Correct.
S=13: 2197, sum 2+1+9+7=19. Not 13.
S=14: 2744, sum 2+7+4+4=17. Not 14.
S=15: 3375, sum 3+3+7+5=18. Not 15.
S=16: 4096, sum 4+0+9+6=19. Not 16.
S=17: 4913, sum 17. Yes.
S=18: 5832, sum 18. Yes.
S=19: 6859, sum 6+8+5+9=28. No.
S=20: 8000, sum 8. No.
S=21: 9261, sum 9+2+6+1=18. No.
So only two numbers: 4913 and 5832.
Wait, but wait. Let me check if there are any other numbers outside of this range? Wait, earlier I thought S must be between 10 and 21 because S^3 must be four digits. Let me confirm that. For example, S=9: 9^3=729, which is a three-digit number. So not considered. S=22: 22^3=10648, which is five digits. So not conside...
So the sum of all such numbers is 4913 + 5832. Let me compute that.
4913 + 5832. Let's add:
4913 + 5832:
4000 + 5000 = 9000
900 + 800 = 1700
10 + 30 = 40
3 + 2 = 5
So total is 9000 + 1700 = 10700, plus 40 is 10740, plus 5 is 10745. Wait, but let me do it properly:
4913
+5832
= ?
Starting from the right:
3 + 2 = 5
1 + 3 = 4
9 + 8 = 17 (carry over 1)
4 + 5 + 1 = 10.
So the result is 10745.
Wait, let me check with another method. 4913 + 5832. Let me compute 4913 + 5000 = 9913. Then add 832: 9913 + 832 = 10745. Yes.
Therefore, the sum is 10745.
Wait, but let me check again if there are any other numbers. For example, maybe there's a four-digit number that is a cube of sum of digits, but the sum of digits is not between 10 and 21? Wait, but if N is a four-digit number, then N is between 1000 and 9999. So the sum of digits S must satisfy S^3 is between 1000 and...
So the answer should be 4913 + 5832 = 10745.
Wait, but I remember there's another number. Wait, let me check again. Maybe I made a mistake with S=19? Let me check 19^3 again. 19*19=361, 361*19. Let me compute that. 361*20=7220, minus 361 is 7220 - 361 = 6859. Sum of digits: 6+8+5+9=28. Which is not 19. So no.
What about S=16? 16^3=4096. Sum digits: 4+0+9+6=19. Not 16.
S=15: 3375. Sum digits 3+3+7+5=18. Not 15.
S=14: 2744. Sum digits 2+7+4+4=17. Not 14.
S=13: 2197. Sum digits 2+1+9+7=19. Not 13.
S=12: 1728. Sum digits 1+7+2+8=18. Not 12.
S=11: 1331. Sum digits 1+3+3+1=8. Not 11.