Question about palindromic numbers in other bases .

Revision en1, by ZerocooL95, 2016-02-03 20:14:11

I was doing a problem on codechef and couldnt get to the solution . If anyone can help , it would be appreciated . Given a number N, write a program to compute the smallest base B such that N is palindromic when written in base B. 1<=N<=10**10. Link: https://www.codechef.com/problems/K2

Tags palindrome, easy, codechef

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ZerocooL95 2016-02-03 20:14:11 340 Initial revision (published)