A061582 a(1) = 1, a(n) = number obtained by replacing each digit of a(n-1) with three times its value.
1, 3, 9, 27, 621, 1863, 324189, 961232427, 2718369612621, 6213249182718361863, 1863961227324621324918324189, 32418927183662196121863961227324961232427, 961232427621324918186327183632418927183662196122718369612621
Offset: 1
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..20
Programs
-
Mathematica
NestList[FromDigits@ Flatten@ Map[IntegerDigits, 3 IntegerDigits@ #] &, 1, 12] (* Michael De Vlieger, Jun 24 2016 *)
-
PARI
A061582(n=2,a=1,m=3)={while(n--,a=eval(concat(apply(t->Str(t),digits(a)*m))));a} \\ If only the 2nd argument is given, then the operation is applied once to that argument. - M. F. Hasler, Jun 24 2016
Extensions
More terms from Larry Reeves (larryr(AT)acm.org), May 14 2001
Comments