public static void main(String[] args) { System.out.println(get(15)); } public static long get(long n){ Map<long> map=new HashMap<>(); int chen=5; long num=1L; for (int i = 1; i <= 3; i++) { for (int j=1; j <= chen;j++){ map.put(num,j); num++; } chen=chen*2; } return map.get(n); }</long>