A132129 Largest prime with distinct digits when written in base n.
2, 19, 19, 577, 7417, 114229, 2053313, 42373937, 987654103, 25678048763, 736867805209, 23136292864193, 789018236128391, 29043982525257901, 1147797409030815779, 48471109094902530293, 2178347851919531491093, 103805969587115219167613, 5228356786703601108008083
Offset: 2
Examples
a(9) = 42373937 as the prime 42373937 (base 10) = 87654102 (base 9), the largest prime number with distinct digits when represented in base 9.
Links
- Eric M. Schmidt, Table of n, a(n) for n = 2..200
Programs
-
Sage
def a(n) : if n==2 : return 2 if n==3 : return 19 for P in Permutations(range(n-1,-1,-1), n-1) : N = sum(P[-1-i]*n^i for i in range(n-1)) if is_prime(N) : return N # Eric M. Schmidt, Oct 26 2014
Extensions
Removed my claim of finiteness of the sequence. - R. J. Mathar, May 18 2010
a(11)-a(20) from Eric M. Schmidt, Oct 26 2014
Comments