@@ -0,0 +1,321 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int n = Integer.parseInt(scanner.nextLine());%0A%0A        int k = 1;%0A        while (k %3C= n) %7B%0A            System.out.println(k);%0A            k = 2 * k + 1;%0A        %7D%0A    %7D%0A%7D%0A

Create 05.Sequence2k+1.java