

A062012


Decimal numbers k such that there is some base b such that (k regarded as a baseb number) = (1/b)*(k regarded as a base10 number).


0




OFFSET

1,1


LINKS



EXAMPLE

21_3 = 7 = 21/3, so 21 is a term.
30 is not a term because the base b would be 5 with 30_5 = 15, but 30 is not 5*15.


PROG

(PARI) isok(n) = {my (d = digits(n)); for (b=vecmax(d)+1, max(9, vecmax(d)1), if (n == b*fromdigits(d, b), return (1)); ); return (0); } \\ Michel Marcus, Dec 11 2017


CROSSREFS



KEYWORD

base,fini,full,nice,nonn


AUTHOR



EXTENSIONS



STATUS

approved



