A337536 Numbers k for which there are only 2 bases b (2 and k+1) where the digits of k contain the digit b-1.
2, 3, 4, 10, 36, 40, 82, 256
Offset: 1
Examples
2 is a term because 2 = 10_2 = 2_3, so both have the digit b-1, and there are no other bases where this happens. 4 is a term because 4 = 100_2 = 4_5, so both have the digit b-1, and there are no other bases where this happens.
Links
- David A. Corneth, PARI program
Crossrefs
Programs
-
PARI
isok(n, b) = vecmax(digits(n, b)) == b-1; b(n) = if (n==1, return (1)); my(b=3); while(!isok(n, b), b++); b; \\ A337535 is(n) = b(n) == n+1;
-
PARI
\\ See Corneth link \\ David A. Corneth, Aug 31 2020
Comments