A366412 Number of nontrivial solutions to the P^*_k problem in base n.
0, 0, 1, 0, 5, 0, 2, 2, 8, 0, 12, 0, 9, 13, 7, 0, 16, 0, 13, 19, 15, 0, 17, 6, 14, 6, 24, 0, 46, 0, 4, 18, 21, 15, 48, 0, 14, 18, 35, 0, 56, 0, 17, 36, 32, 0, 28, 10, 35, 33, 29, 0, 32, 31, 46, 33, 28, 0, 79, 0, 21, 31, 21, 25, 114, 0, 17, 30, 109, 0, 36, 0, 16, 40, 48, 28, 132
Offset: 2
Examples
For n = 10, the a(10) = 8 solutions correspond to 16/64 = 1/4, 26/65 = 2/5, 19/95 = 1/5, 49/98 = 4/8, 217/775 = 21/75, 249/996 = 24/96, 1249/9992 = 124/992 and 34027/77776 = 3402/7776. For n = 9 = 3^2, the only two solutions are 14/43 and 28/86.
Links
- R. P. Boas, Anomalous Cancellation, The Two-Year College Mathematics Journal, Vol. 3, No. 2 (Autumn, 1972), pp. 21-24.
- Shalosh B. Ekhad, Automated Generation of Anomalous Cancellations, arXiv:1709.03379 [math.HO], 2017.
- Satvik Saha, Sohom Gupta, Sayan Dutta, and Sourin Chatterjee, Characterising Solutions of Anomalous Cancellation, arXiv:2302.00479 [math.HO], 2023.
Programs
-
Python
import math LEN = 79 carr=[] for base in range(2, LEN): k = int(2 * math.log(base - 1) / math.log(2) + 2) + 1 k = max(k, 5) I = (base ** k - 1) // (base - 1) - 1 count = 0 for b in range(2, base): for c_k in range(1, b): c = b * I + c_k a = b * c // (b * base - (base - 1) * c_k) if a < base ** (k - 1): continue if (a * base + b) * c == a * (b * base**k + c): count += 1 carr.append(count) print(carr)
Formula
a(p) = 0 if and only if p is a prime (see Theorem 3 of Saha et al. link).
a(n) <= (n-2)*(n-3)/2 (see Proposition 4 of Saha et al. link).
Comments