We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Algebra
- Number Groups
- Discussions
Number Groups
Number Groups
Sort by
recency
|
50 Discussions
|
Please Login in order to post a comment
public static long sumOfGroup(int k) {
seriuosly, Why does "k*k*K" solution work !?
I mean what the math explaination behind this?
return sum; }https://)
For th group, how many number were used in previous groups?
So, the first number in th group will be th odd number.
th odd number is given as . So, the first number in th group will be
Now, the group is an AP with first term given above and common difference (odd numbers).
In C++,
return 1L * k * k * k
.