OFFSET
1,2
EXAMPLE
0, 4(>1=1^0), 20(>18=2^4), 4(>1=3^0), 258(>256=4^4), 26(>25=5^2), 38(>36=6^2), 344(>343=7^3), 513(>512=8^3), 10(>9=9^1), 4(>1=10^1), 14642(>14641=11^4), 14(>12=12^1), 14(>13=13^1), 15(>14=14^1), 16(>15=15^1), 18(>16=16^1), 18(>17=17^1), 20(>18=18^1), 4(>1=19^0), ?(>160000=20^4)
MATHEMATICA
nxt[{n_, a_}]:=Module[{k=n^Min[IntegerDigits[a]]+1}, While [PrimeQ[k], k++]; {n+1, k}]; Transpose[NestList[nxt, {1, 0}, 40]][[2]] (* Harvey P. Dale, Apr 17 2015 *)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Juri-Stepan Gerasimov, Mar 16 2009
EXTENSIONS
Corrected (a(3) replaced by 18, duplicate of a(20) removed) and extended by R. J. Mathar, May 19 2010
Definition corrected by Harvey P. Dale, Apr 17 2015
STATUS
approved