অংকের যোগফল | Math Problem

Click here to read the complete problem statement.

Atar kahini ki kivabe thara bana bo

1 Like

4567 er por, 12345678 bar bar ase until total digits 2020 ta hoy.

[12345678] ata 2020 naki. Akta akta

only porthom 4 ta digits 4567, setar pore 12345678 bar bar until prothom 4 ta digit soho total 2020 ta digit hoy.

eikhane prottekta 1 digit, 12345678 eikhane 8 ta digit

Eta khub simple, this python code can make that more simple:

  1. a = 0
  2. b = 4
  3. for i in range(2020):
  4. ** a += b**
  5. ** b += 1**
  6. print(a) # 2047270 → 22 → 4
    Just in 6 lines of code.

এটা খুবই সিম্পল। প্রথমে ৪৫৬৭৷ ছাড়া সংখ্যা রয়েছে (2020-4)টি।অর্থাৎ ২০১৬ টি।এখন (2016÷8) বা 252 টি জোড়া 1 থেকে 8 এর।এবং ১ টি জোড়ার সমষ্টি 36।অতএব,252 টি জোড়ার সমষ্টি 9072।আবার প্রথমে সুবিধার জন্য বাদ দেয়া 4,5,6,7 এর সমষ্টি 22 যা আমাদের 9072 এর সাথে যোগ করতে হবে অর্থাৎ 9094 এখন বের হয়ে গেল 2020 টি অংকের যোগফল।

তারপর 9+0+9+4=22
Then 2+2=4
And hereis the answer 4