OFFSET
1,1
COMMENTS
Trivial cases are those numbers which upon conversion result in a number which is palindromic (m = reverse(m)), or a palindrome plus trailing zeros such that m = reverse(m)*10^z where z=number of lost zeros. Nontrivial digit loss occurs when a converted number has trailing zeros that drop off when the number is reversed.
LINKS
C. Seggelin, Numbers Divisible by Digit Permutations. [Broken link]
EXAMPLE
a(1) = 64 because: 64 in base 3 is 2101; 2101 reversed is 1012; 1012 converted back to base 10 is 32 and 64 mod 32 = 0.
PROG
(PARI) isok(n, b=3) = {m = subst(Polrev(digits(n, b)), x, b); if (n % m, return(0)); if ((n/m == 1), return (0)); vq = valuation(n, b); if (! vq, return (1)); qq = subst(Polrev(digits(m, b)), x, b); if (n == b^vq*qq, return (0)); return (1); } \\ Michel Marcus, Oct 10 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Chuck Seggelin (barkeep(AT)plastereddragon.com), Dec 18 2003
EXTENSIONS
More terms from Michel Marcus, Oct 10 2014
STATUS
approved