OFFSET
1,1
COMMENTS
Brazilian primes that have exactly one Brazilian representation as a repunit.
As these primes p satisfy beta(p) = tau(p) / 2 (= 1), where beta = A220136 and tau = A000005, this sequence is a subsequence of A326380.
Equals A085104 \ {31, 8191}, since according to the Goormaghtigh conjecture (link), 31 and 8191 which are both Mersenne numbers, are the only primes which are Brazilian in two different bases.
The three following sequences realize a partition of the set of primes: A220627 (primes not Brazilian), this sequence (primes 1-Brazilian) and {31,8191} (primes 2-Brazilian).
LINKS
EXAMPLE
7 = 111_2 is a term.
13 = 111_3 is a term.
19 = 11_18 is not a term.
31 = 11111_5 = 111_5 is not a term.
127 = 1111111_2 is a term.
8191 = 1111111111111_2 = 111_90 is not a term.
MATHEMATICA
q[n_] := Count[Range[2, n - 2], _?(Length[d = IntegerDigits[n, #]] > 2 && Length[Union[d]] == 1 &)] == 1;; Select[Prime[Range[3000]], q] (* Amiram Eldar, Mar 30 2023 *)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Bernard Schott, Mar 29 2023
STATUS
approved