Incremental sequence

import java.util.Scanner;

public class IncrementalSequenceExample {
	static void incrementalSequence(int n) {
		int current = 1;
		for (int i = 0; i < n; i++) {
			current += i;
			System.out.print(current + " ");
		}
	}

	public static void main(String[] args) {
		Scanner read = new Scanner(System.in);
		int n;

		System.out.print("Enter the number of values ​​to be output: ");
		n = read.nextInt();

		incrementalSequence(n);
	}
}
Output
Enter the number of values ​​to be output: 14
1 2 4 7 11 16 22 29 37 46 56 67 79 92