OFFSET
1,1
EXAMPLE
13 can be written as 12 (in base 11) or 21 (in base 6)
PROG
(PARI) isok(n) = {for (b=3, n, db = vecsort(digits(n, b)); for (c = 2, b-1, dc = vecsort(digits(n, c)); if (dc == db, return (1)); ); ); } \\ Michel Marcus, Aug 03 2015
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Erich Friedman, Feb 24 2001
STATUS
approved