You're on the right track. Another solution would be to use only one for loop and use an if else test condition to test for the first 25, do whatever...
If you want to use only one loop, you don't need to use condition.
for(int i =0; i<25; i++) {
alpha[i] = i * i;
alpha[49-i] = (49-i) * 3;
}