The count is easy and try but there is a faster shortcut. You can count 1+2+3+4+5+6+... tiring right. There a shortcut for it is to take as 1+2+3+4+...+n First take n/2 next take n+1 then mutiply (n/2)(n+1) is 1+2+3+...+n n is an algebrabic unit. try 10 10/2=5 10+1=11 5*11=55 or take 1+2+...+n-1+n = take half of n then add half then take yor number after that multipy (n/2+1/2)n if x = sum (1...n) then x + (n + 1) = n * (n+1) / 2 + (n + 1) x + (n + 1) = (n * (n + 1) + 2n +2) / 2 x + (n + 1) = ((n*n + n) + 2n + 2) / 2 x + (n + 1) = (n*n + 3 *n + 2) / 2 x + (n + 1) = ((n + 1) * (n + 2)) / 2 Like 15+16+17+... =3030
Entity | Attribute | Value | Rank |
---|