OFFSET
0,2
COMMENTS
This sequence is motivated by A271220 and A271268 (maybe others?) which give the trajectory of specific starting values under iterations of this map.
The fixed points of this map, (0, 10, ..., 90, 119, 1236, ...), are listed in sequence A062237 (except for 0).
Besides the fixed points, this map has also limiting cycles, for example:
* the cycle C(88) = (88, 1664, 17144, 17112, 1214) of length 5, first reached for initial values 8 (cf. A271268) and 38, 83, 88, 146, ....
* Another 5-cycle is C(18168) = (18168, 24384, 21768, 24672, 21672), first reached for initial values 188 and 233.
The infinite square array A380872 gives the trajectory of starting value r = 0, 1, 2, ... in row r.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
EXAMPLE
For n = 0, ..., 9, a(n) = 11*n because sum and product of digits of n are equal to n.
a(10) = concat(1+0, 1*0) = 10, a(11) = concat(1+1, 1*1) = 21, a(12) = concat(1+2, 1*2) = 32, etc.
MAPLE
a:= n-> (l-> parse(cat(add(i, i=l), mul(i, i=l))))(convert(n, base, 10)):
seq(a(n), n=0..60); # Alois P. Heinz, Apr 12 2025
MATHEMATICA
a[n_]:=FromDigits[Join[IntegerDigits[Total[IntegerDigits[n]]], IntegerDigits[Times@@IntegerDigits[n]]]]; Array[a, 61, 0] (* James C. McMahon, Apr 02 2025 *)
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Apr 01 2025
STATUS
approved
