*sigh*
Lets analyze your first line
Since 1 can be on ones position....81 times..and all those count to--- 81*1??
you mean to say the sum off all the numbers that have 1 in units place is 81*1? Let me write and sum it for you,
111 + 121 + 131 + 141 + 151 + 161 + 171 + 181 + 191 + 211 + 221 + 231 + 241 + 251 + 261 + 271 + 281 + 291 + 311 + 321 + 331 + 341 + 351 + 361 + 371 + 381 + 391 + 411 + 421 + 431 + 441 + 451 + 461 + 471 + 481 + 491 + 511 + 521 + 531 + 541 + 551 + 561 + 571 + 581 + 591 + 611 + 621 + 631 + 641 + 651 + 661 + 671 + 681 + 691 + 711 + 721 + 731 + 741 + 751 + 761 + 771 + 781 + 791 + 811 + 821 + 831 + 841 + 851 + 861 + 871 + 881 + 891 + 911 + 921 + 931 + 941 + 951 + 961 + 971 + 981 + 991 = 44631
It certainly doesnt come to 81*1!
Since 1 can be on Tens postion....81 - 9(we counted this with ones) = 72 times
Since 1 can be on Hundered's postion...81 - 9(we counted this with ones) - 8(we counted this with hundreds) = 64 times
and if i keep on continuing this, it will be a nightmare for me to keep the numbers from not being repeated.
In btw, I created an excel file just now, deleted all the numbers having a 0 and did a quick sum and the result came to 404595
