OFFSET
1,2
COMMENTS
FORMULA
A340795(a(n)) = 0.
EXAMPLE
One example for each type of terms that has k divisors:
-> k=1: 1 is the smallest number not Brazilian, hence 1 is the first term.
-> k=2: 17 is a prime non-Brazilian, hence 17 is a term.
-> k=3: 25 has three divisors {1, 5, 25} that are all not Brazilian, hence 25 is another term.
-> k=4: 6 has four divisors {1, 2, 3, 6} that are all not Brazilian, hence 6 is the term that has the largest number of divisors.
MATHEMATICA
brazQ[n_] := Module[{b = 2, found = False}, While[b < n - 1 && Length @ Union @ IntegerDigits[n, b] > 1, b++]; b < n - 1]; q[n_] := AllTrue[Divisors[n], ! brazQ[#] &]; Select[Range[300], q] (* Amiram Eldar, Feb 04 2021 *)
PROG
(PARI) isb(n) = for(b=2, n-2, my(d=digits(n, b)); if(vecmin(d)==vecmax(d), return(1))); \\ A125134
isok(n) = fordiv(n, d, if (isb(d), return(0))); return(1); \\ Michel Marcus, Feb 07 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Feb 04 2021
STATUS
approved