OFFSET
1,1
EXAMPLE
6 is in the sequence because 4^2=16 and 6*1=6.
18 is in the sequence because 6^2=36 and 3*6=18.
Other similar sequences, starting from 3, 5 and 7, respectively:
. 3, 9, 8, 24, 210, 0 (0 continued);
. 5, 10, 0;
. 7, 36, 108, 144, 0.
MATHEMATICA
a[1] = 2; a[n_] := a[n] = Times @@ IntegerDigits[a[n - 1]^2]; Array[a, 100] (* Jean-François Alcover, May 29 2014 *)
NestList[Times@@IntegerDigits[#^2]&, 2, 80] (* Harvey P. Dale, Aug 23 2017 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Vincenzo Librandi, May 29 2014
STATUS
approved