OFFSET
1,2
EXAMPLE
a(12) = 48 as gcd(48,84) = 12.
PROG
(PARI) a(n) = {if (n % 10 == 0, return (0)); k = 1; while (gcd(k, subst(Polrev(digits(k)), x, 10)) != n, k++); k; } \\ Michel Marcus, Sep 14 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Mar 22 2002
EXTENSIONS
Edited by David W. Wilson and Don Reble, Jun 04 2002
STATUS
approved