OFFSET
1,10
COMMENTS
a(n) = Binomial(n,reverse(n)) if n >= reverse(n); = Binomial(reverse(n),n) if n < reverse(n).
a(n) = 1 if n is a palindrome. a(n) = n if n = 10^k. - Amarnath Murthy, Jul 14 2005
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(10) = binomial(10,1) = 10, a(11) = 1, a(12) = binomial(21,12) = 293930.
MAPLE
R:=proc(n) local nn, nnn: nn:=convert(n, base, 10): add(nn[nops(nn)+1-j]*10^(j-1), j=1..nops(nn)) end: seq(binomial(max(n, R(n)), min(n, R(n))), n=1..27); # Emeric Deutsch, Jul 16 2005
MATHEMATICA
bmm[n_]:=Module[{ir=IntegerReverse[n]}, Binomial[Max[n, ir], Min[n, ir]]]; Array[ bmm, 30] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 13 2020 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Joseph L. Pe, Jun 14 2002
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, Jun 23 2007
STATUS
approved