Advertisement
Guest User

Actually Ryan's

a guest
Sep 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. (150 + 1)(150 / 2) = 11 325
  2.  
  3. 150 / 3 = 50
  4. // 50 multiples of 3
  5. (50 + 1)(50 / 2) * 3 = 3 825
  6.  
  7. 150 / 7 = 21,4285714286
  8. // 21 multiples of 7
  9. (21 + 1)(21 / 2) * 7 = 1 617
  10.  
  11. 150 / 21 = 7,1428571429
  12. // 7 multiples of 21
  13. // (multiples of both 3 and 7)
  14. (7 + 1)(7 / 2) * 21 = 588
  15.  
  16. 11325 - 3825 - 1617 + 588 = 6 471
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement