login
A089150
a(1) = 1; for > 1, a(n) = smallest m such that n^m - {(n-1)^a(n-1)} is a positive prime.
0
1, 2, 2, 2, 3, 4, 5, 13, 28, 31, 37, 58, 89, 747, 1252
OFFSET
1,2
MATHEMATICA
k = 1; Do[m = 1; While[n^m < (n-1)^k || !PrimeQ[n^m - (n-1)^k], m++ ]; k = m; Print[k], {n, 2, 15}] (* Ryan Propper, Jul 15 2005 *)
CROSSREFS
Sequence in context: A357384 A022865 A373785 * A056697 A132427 A176975
KEYWORD
more,nonn
AUTHOR
Naohiro Nomoto, Dec 06 2003
EXTENSIONS
Two more terms from Ryan Propper, Jul 15 2005
STATUS
approved