SUMEVOD help

Hello guys!
I’m trouble with this question.
Contest Page | CodeChef .
Could you please help me to figure out the problem?
import java.util.Scanner;

public class Main {

public  static int evenSum(int n) {
	int sum = 0;
    int i = 1;
	int cursor = i;
	
	
	
	for( i = 1; i <= n ; i++) {
        cursor = i * 2;
		sum = sum+cursor ;

	}
	return sum;
}
public  static int oddSum(int n) {
	int sum = 0;
	int i = 1;
	int cursor = i;

	for(i = 1; i <=n ; i++) {
	 cursor = (i * 2) -1;
	 if( cursor %2 ==1){
	     sum  = sum + cursor;
	 }
	}
	return sum;

}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println();
int n = sc.nextInt();

	System.out.println( oddSum(n) + " " +evenSum(n));
}

}

You should provide the link to your problem and your submission .

This will help: