A269223 Factorial of the sum of digits of n in base 3.
1, 1, 2, 1, 2, 6, 2, 6, 24, 1, 2, 6, 2, 6, 24, 6, 24, 120, 2, 6, 24, 6, 24, 120, 24, 120, 720, 1, 2, 6, 2, 6, 24, 6, 24, 120, 2, 6, 24, 6, 24, 120, 24, 120, 720, 6, 24, 120, 24, 120, 720, 120, 720, 5040, 2, 6, 24, 6, 24, 120, 24, 120, 720, 6, 24, 120, 24, 120, 720, 120, 720
Offset: 0
Programs
-
Mathematica
Table[Total[IntegerDigits[n, 3]]!, {n, 0, 70}] (* Michael De Vlieger, Mar 15 2016 *)
-
PARI
A269223(n)=sumdigits(n,3)! \\ sumdigits(.,3) requires version > 2.7.1; see A053735 for a substitute.
-
PARI
a(n) = vecsum(digits(n,3))!; \\ Michel Marcus, Mar 15 2016
Comments