[go: up one dir, main page]

login
Base-n digit sum of A002034(n)!.
2

%I #12 Jun 11 2022 14:06:33

%S 1,2,3,8,1,12,3,16,3,30,2,48,22,8,15,80,6,126,6,20,63,198,1,24,50,50,

%T 18,364,4,360,20,64,165,8,20,432,182,92,3,520,38,504,72,16,225,690,15,

%U 96,56,250,105,988,42,108,35,280,399,1334,2,1500,524,18,63,128,105,1650,227,340,3,2030,10,2160,853,62

%N Base-n digit sum of A002034(n)!.

%o (PARI) \\ define the function a002034(n) as in A002034

%o a354861(n) = sumdigits(a002034(n)!, n); \\ _Felix Fröhlich_, Jun 09 2022

%o (Python) # uses A002034(n)

%o from math import factorial

%o from sympy.ntheory.digits import digits

%o def a(n): return sum(digits(factorial(A002034(n)), n)[1:])

%o print([a(n) for n in range(2, 76)]) # _Michael S. Branicky_, Jun 09 2022

%Y Cf. A000142, A002034, A354854.

%K base,nonn

%O 2,2

%A _Max Alekseyev_, Jun 09 2022