OFFSET
1,3
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..26
EXAMPLE
a(6) = 37379 because the concatenation of a(4) and a(5) is 37379, a prime number.
a(7) = 130369 because the concatenation of a(5) and a(6) is 37937379 = 3 * 97 * 130369.
MATHEMATICA
nxt[{a_, b_}]:={b, FactorInteger[FromDigits[Flatten[IntegerDigits[ {a, b}]]]][[-1, 1]]}; Transpose[NestList[nxt, {1, 1}, 18]][[1]] (* Harvey P. Dale, Nov 24 2012 *)
CROSSREFS
KEYWORD
nonn,base,nice
AUTHOR
EXTENSIONS
Corrected and extended by Harvey P. Dale, Nov 24 2012
STATUS
approved