+ 2

If you divide 365 by 1,2,3.....365, and then 366 by 1,2,3......366 what is the difference of the sum of the remainders of the 2

i wrote a code that i forgott and now this one does not work. https://code.sololearn.com/cKJbWnYg00Gd/?ref=app

7th Feb 2018, 7:39 AM
Magorex
Magorex - avatar
2 Answers
+ 16
make a method for summing up the remainders & then return the return then just print (method (366)-method (355))
7th Feb 2018, 7:47 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 15
#might be this is the solution of ur problem👇 x = 1 a = 365 totalscore = 0 while x < 366: a%x x = x+1 totalscore = totalscore + a print(totalscore ) """Do same for 366 and then follow Gaurav's instruction"""
7th Feb 2018, 8:00 AM
🌛DT🌜
🌛DT🌜 - avatar