login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A110401
a(1) = 999, a(n) is the number obtained by concatenating product of neighboring digits of the previous term.
0
999, 8181, 888, 6464, 242424, 88888, 64646464, 24242424242424, 8888888888888, 646464646464646464646464, 2424242424242424242424242424242424242424242424, 888888888888888888888888888888888888888888888
OFFSET
1,1
COMMENTS
If one uses any other number as a(1), the sequence either comes to an end with a single-digit term or eventually contains increasing strings of 8, 64 and 24 repeatedly. E.g., a(1) = 1234 gives 1234, 2612, 1262, 21212, 2222, 444, 1616, 666, 3636, 181818, 88888, 64646464, 24242424242424, 8888888888888, ...
PROG
(PARI) f(n) = my(d=digits(n), nd=[]); for (k=1, #d-1, nd = concat(nd, digits(d[k]*d[k+1]))); fromdigits(nd);
a(n) = if (n==1, 999, f(a(n-1))); \\ Michel Marcus, Dec 08 2018
CROSSREFS
Sequence in context: A226752 A043527 A117720 * A213156 A164813 A164814
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Jul 29 2005
EXTENSIONS
Corrected and extended by Joshua Zucker, May 10 2006
Edited by Jon E. Schoenfield, Dec 08 2018
STATUS
approved