Can you please explain bases are. In your example you have written "71298 (the square of 267) to base 17" What does this mean and how did you know to divide it by 17 as the base? In the question they provide a base.
Like an example input would be 10 and the output would be:
1 1
2 4
3 9
11 121
22 484
26 676
101 10201
111 12321
121 14641
202 40804
212 44944
264 69696
Like my ideas right now in java would be
Main method(){
BufferedReader br = new BufferedReader(new FileReader("palindromic.in"));
String reader = br.readLine();
int A = Integer.parseInt(reader);
int [][] N; = new int[300] [2];
String [][] BC = new String[300] [20];
}
Right now this is all i have as i dont understand what to do in terms of bases and dont understand bases in general.
How any methods should i make besided the MATCHING one that checks if the number is actually palindromic and prints it.