#Mathematica 77
Line 1 input gets a decimal number and a base (b) from standard input. Line 2 checks whether the number in base b is a palindrome.
{n, b} = ToExpression /@ StringSplit@InputString[];
(x = n~IntegerDigits~b) == Reverse@x
#Mathematica 77
Line 1 input gets a decimal number and a base (b) from standard input. Line 2 checks whether the number in base b is a palindrome.
{n, b} = ToExpression /@ StringSplit@InputString[];
(x = n~IntegerDigits~b) == Reverse@x