Here is the algorithm:
int sum = 0
for (int i = 2N; i > 0; i = i / 4) {
for (int j = 0; j < i; j+=2) {
sum++
}
}
I figured this would be linearithmic, but it's just linear. I would appreciate seeing a formalized summation and not a qualitative explanation. I have tried doing this but I fail to get linear runtime.