Solution:
Let n be a four-digit number, so 1000≤n≤9999. Let sn denote the sum of the digits of n.
We are to find the smallest value of snn.
Let n=1000a+100b+10c+d, where a,b,c,d are digits and a≥1.
Then sn=a+b+c+d.
We want to minimize snn=a+b+c+d1000a+100b+10c+d.
To minimize this, for a fixed n, we want sn to be as large as possible, i.e., the digits as large as possible.
Let us try a=1 (the smallest possible value for a four-digit number):
If a=1, n=1000+100b+10c+d, sn=1+b+c+d.
To maximize sn, set b=c=d=9:
Then n=1000+100×9+10×9+9=1000+900+90+9=1999.
sn=1+9+9+9=28.
snn=281999≈71.39.
Try a=2, b=c=d=9:
n=2000+900+90+9=2999.
sn=2+9+9+9=29.
292999≈103.41.
So increasing a increases the ratio. So a=1 is best.
Try b=9,c=9,d=8:
n=1000+900+90+8=1998.
sn=1+9+9+8=27.
271998=74.
Try b=9,c=8,d=9:
n=1000+900+80+9=1989.
sn=1+9+8+9=27.
271989=73.666...
Try b=8,c=9,d=9:
n=1000+800+90+9=1899.
sn=1+8+9+9=27.
271899=70.333...
Try b=9,c=9,d=7:
n=1000+900+90+7=1997.
sn=1+9+9+7=26.
261997≈76.81
Try b=9,c=8,d=8:
n=1000+900+80+8=1988.
sn=1+9+8+8=26.
261988≈76.46
Try b=8,c=9,d=8:
n=1000+800+90+8=1898.
sn=1+8+9+8=26.
261898≈73.
Try b=8,c=8,d=9:
n=1000+800+80+9=1889.
sn=1+8+8+9=26.
261889≈72.65
Try b=9,c=7,d=9:
n=1000+900+70+9=1979.
sn=1+9+7+9=26.
261979≈76.12
Try b=7,c=9,d=9:
n=1000+700+90+9=1799.
sn=1+7+9+9=26.
261799≈69.19
Try b=8,c=8,d=8:
n=1000+800+80+8=1888.
sn=1+8+8+8=25.
251888=75.52
Try b=7,c=9,d=8:
n=1000+700+90+8=1798.
sn=1+7+9+8=25.
251798=71.92
Try b=7,c=8,d=9:
n=1000+700+80+9=1789.
sn=1+7+8+9=25.
251789=71.56
Try b=6,c=9,d=9:
n=1000+600+90+9=1699.
sn=1+6+9+9=25.
251699=67.96
Try b=7,c=8,d=8:
n=1000+700+80+8=1788.
sn=1+7+8+8=24.
241788=74.5
Try b=6,c=9,d=8:
n=1000+600+90+8=1698.
sn=1+6+9+8=24.
241698=70.75
Try b=6,c=8,d=9:
n=1000+600+80+9=1689.
sn=1+6+8+9=24.
241689=70.375
Try b=5,c=9,d=9:
n=1000+500+90+9=1599.
sn=1+5+9+9=24.
241599=66.625
Try b=6,c=8,d=8:
n=1000+600+80+8=1688.
sn=1+6+8+8=23.
231688≈73.39
Try b=5,c=9,d=8:
n=1000+500+90+8=1598.
sn=1+5+9+8=23.
231598≈69.48
Try b=5,c=8,d=9:
n=1000+500+80+9=1589.
sn=1+5+8+9=23.
231589≈69.09
Try b=4,c=9,d=9:
n=1000+400+90+9=1499.
sn=1+4+9+9=23.
231499≈65.17
Try b=5,c=8,d=8:
n=1000+500+80+8=1588.
sn=1+5+8+8=22.
221588=72.18
Try b=4,c=9,d=8:
n=1000+400+90+8=1498.
sn=1+4+9+8=22.
221498≈68.09
Try b=4,c=8,d=9:
n=1000+400+80+9=1489.
sn=1+4+8+9=22.
221489≈67.68
Try b=3,c=9,d=9:
n=1000+300+90+9=1399.
sn=1+3+9+9=22.
221399≈63.59
Try b=2,c=9,d=9:
n=1000+200+90+9=1299.
sn=1+2+9+9=21.
211299=61.857...
Try b=1,c=9,d=9:
n=1000+100+90+9=1199.
sn=1+1+9+9=20.
201199=59.95
Try b=0,c=9,d=9:
n=1000+0+90+9=1099.
sn=1+0+9+9=19.
191099≈57.84
Try b=0,c=8,d=9:
n=1000+0+80+9=1089.
sn=1+0+8+9=18.
181089=60.5
Try b=0,c=7,d=9:
n=1000+0+70+9=1079.
sn=1+0+7+9=17.
171079≈63.47
Try b=0,c=6,d=9:
n=1000+0+60+9=1069.
sn=1+0+6+9=16.
161069=66.8125
Try b=0,c=5,d=9:
n=1000+0+50+9=1059.
sn=1+0+5+9=15.
151059=70.6
Try b=0,c=4,d=9:
n=1000+0+40+9=1049.
sn=1+0+4+9=14.
141049≈74.93
Try b=0,c=3,d=9:
n=1000+0+30+9=1039.
sn=1+0+3+9=13.
131039≈79.92
Try b=0,c=2,d=9:
n=1000+0+20+9=1029.
sn=1+0+2+9=12.
121029=85.75
Try b=0,c=1,d=9:
n=1000+0+10+9=1019.
sn=1+0+1+9=11.
111019≈92.64
Try b=0,c=0,d=9:
n=1000+0+0+9=1009.
sn=1+0+0+9=10.
101009=100.9
Try b=0,c=0,d=8:
n=1000+0+0+8=1008.
sn=1+0+0+8=9.
91008=112
Try b=0,c=0,d=1:
n=1000+0+0+1=1001.
sn=1+0+0+1=2.
21001=500.5
So, the minimum value occurs when b=0,c=9,d=9:
n=1099, sn=19, 191099≈57.84.
But let's try b=0,c=8,d=9:
n=1089, sn=18, 181089=60.5 (larger).
Try b=0,c=9,d=8:
n=1000+0+90+8=1098, sn=1+0+9+8=18, 181098=61.
Try b=0,c=9,d=7:
n=1000+0+90+7=1097, sn=1+0+9+7=17, 171097≈64.53.
So, n=1099, sn=19, 191099≈57.84 is the minimum so far.
But let's try b=0,c=9,d=9 for a=1.
Now, try a=1,b=0,c=9,d=9:
n=1000+0+90+9=1099, sn=1+0+9+9=19, 191099≈57.84.
Now, try a=1,b=0,c=8,d=9:
n=1000+0+80+9=1089, sn=1+0+8+9=18, 181089=60.5.
Try a=1,b=0,c=7,d=9:
n=1000+0+70+9=1079, sn=1+0+7+9=17, 171079≈63.47.
Try a=1,b=0,c=6,d=9:
n=1000+0+60+9=1069, sn=1+0+6+9=16, 161069=66.8125.
Try a=1,b=0,c=5,d=9:
n=1000+0+50+9=1059, sn=1+0+5+9=15, 151059=70.6.
So, the minimum is 191099.
Therefore, the smallest value of snn for four-digit n is 191099≈57.84.